.app-install-prompt[hidden] {
    display: none !important;
}

.app-install-prompt {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 10000;
}

.app-install-prompt__backdrop {
    backdrop-filter: blur(4px);
    background: rgba(15, 23, 42, 0.64);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 220ms ease;
}

.app-install-prompt__card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
    color: #202124;
    max-width: 420px;
    opacity: 0;
    padding: 26px 24px 20px;
    position: relative;
    transform: translateY(18px) scale(0.98);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    z-index: 1;
}

.app-install-prompt.is-visible .app-install-prompt__backdrop,
.app-install-prompt.is-visible .app-install-prompt__card {
    opacity: 1;
}

.app-install-prompt.is-visible .app-install-prompt__card {
    transform: translateY(0) scale(1);
}

.app-install-prompt__close {
    align-items: center;
    background: #f1f3f4;
    border: 0;
    border-radius: 50%;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    font-size: 25px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
}

.app-install-prompt__close:focus-visible,
.app-install-prompt__later:focus-visible,
.app-install-prompt__download:focus-visible {
    outline: 3px solid rgba(20, 143, 60, 0.28);
    outline-offset: 3px;
}

.app-install-prompt__app {
    align-items: center;
    display: flex;
    gap: 16px;
    padding-right: 36px;
}

.app-install-prompt__icon {
    background: #fab028;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    flex: 0 0 76px;
    object-fit: cover;
}

.app-install-prompt__identity {
    min-width: 0;
}

.app-install-prompt__title-row {
    align-items: center;
    display: flex;
    gap: 7px;
}

.app-install-prompt__title-row h2 {
    color: #202124;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin: 0;
}

.app-install-prompt__verified {
    display: inline-flex;
    height: 19px;
    width: 19px;
}

.app-install-prompt__verified svg {
    fill: #148f3c;
    height: 100%;
    width: 100%;
}

.app-install-prompt__verified .app-install-prompt__check {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-install-prompt__identity p,
.app-install-prompt__identity span,
.app-install-prompt__facts span,
.app-install-prompt__message,
.app-install-prompt__safe {
    color: #5f6368;
}

.app-install-prompt__identity p {
    font-size: 14px;
    line-height: 1.35;
    margin: 3px 0 1px;
}

.app-install-prompt__identity > span {
    font-size: 12px;
}

.app-install-prompt__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 24px 0 18px;
}

.app-install-prompt__facts > div {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0 8px;
    text-align: center;
}

.app-install-prompt__facts > div + div {
    border-left: 1px solid #e3e6e8;
}

.app-install-prompt__facts strong {
    color: #202124;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.app-install-prompt__facts strong span {
    color: #148f3c;
}

.app-install-prompt__facts span {
    font-size: 11px;
    margin-top: 2px;
}

.app-install-prompt__message {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 18px;
    text-align: center;
}

.app-install-prompt__download {
    align-items: center;
    background: #148f3c;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(20, 143, 60, 0.24);
    color: #ffffff !important;
    display: flex;
    font-size: 16px;
    font-weight: 700;
    gap: 9px;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px;
    text-decoration: none !important;
    transition: background 160ms ease, transform 160ms ease;
    width: 100%;
}

.app-install-prompt__download:hover {
    background: #0f7c33;
    color: #ffffff;
    transform: translateY(-1px);
}

.app-install-prompt__download svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 21px;
}

.app-install-prompt__later {
    background: transparent;
    border: 0;
    color: #148f3c;
    cursor: pointer;
    display: block;
    font-size: 14px;
    font-weight: 650;
    margin: 11px auto 0;
    padding: 7px 14px;
}

.app-install-prompt__safe {
    font-size: 10px;
    line-height: 1.4;
    margin: 2px 0 0;
    text-align: center;
}

body.app-install-prompt-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .app-install-prompt {
        align-items: flex-end;
        padding: 12px;
    }

    .app-install-prompt__card {
        border-radius: 24px 24px 20px 20px;
        padding: 24px 20px calc(17px + env(safe-area-inset-bottom));
        transform: translateY(36px);
    }

    .app-install-prompt__icon {
        border-radius: 16px;
        flex-basis: 68px;
        height: 68px;
        width: 68px;
    }

    .app-install-prompt__title-row h2 {
        font-size: 22px;
    }

    .app-install-prompt__facts {
        margin-top: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-install-prompt__backdrop,
    .app-install-prompt__card,
    .app-install-prompt__download {
        transition: none;
    }
}
