.android-app-offer[hidden],
.android-app-footer-link[hidden] {
    display: none !important;
}

.android-app-offer {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    position: fixed;
    z-index: 100500;
}

.android-app-offer__backdrop {
    background: rgba(4, 19, 38, .68);
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity .22s ease;
}

.android-app-offer__dialog {
    background: #fff;
    border: 1px solid rgba(11, 47, 91, .12);
    border-radius: 22px;
    box-sizing: border-box;
    box-shadow: 0 28px 80px rgba(4, 19, 38, .3);
    color: #142238;
    max-height: calc(100dvh - 32px);
    max-width: 520px;
    opacity: 0;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(14px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
    width: 100%;
    z-index: 1;
}

.android-app-offer.is-visible .android-app-offer__backdrop,
.android-app-offer.is-visible .android-app-offer__dialog {
    opacity: 1;
}

.android-app-offer.is-visible .android-app-offer__dialog {
    transform: translateY(0) scale(1);
}

.android-app-offer__dialog:focus {
    outline: none;
}

.android-app-offer__close {
    align-items: center;
    background: #f2f5f8;
    border: 0;
    border-radius: 50%;
    color: #536174;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
}

.android-app-offer__close svg,
.android-app-offer__download svg,
.android-app-footer-link svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 21px;
}

.android-app-offer__close:hover {
    background: #e7edf3;
    color: #0b2f5b;
}

.android-app-offer__brand {
    align-items: center;
    display: flex;
    gap: 13px;
    margin: 0 48px 24px 0;
}

.android-app-offer__brand img {
    height: 58px;
    object-fit: contain;
    width: 58px;
}

.android-app-offer__brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.android-app-offer__brand strong {
    color: #0b2f5b;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.android-app-offer__brand small {
    color: #6c7889;
    font-size: 12px;
    margin-top: 4px;
}

.android-app-offer h2 {
    color: #0b2f5b;
    font-size: clamp(23px, 5vw, 30px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.16;
    margin: 0 0 14px;
}

.android-app-offer__dialog > p {
    color: #5f6e80;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.android-app-offer__version {
    display: inline-block;
    font-size: 12px !important;
    margin-top: 10px !important;
}

.android-app-offer__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.android-app-offer__download,
.android-app-offer__continue {
    align-items: center;
    border-radius: 11px;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    justify-content: center;
    min-height: 50px;
    padding: 11px 18px;
    text-align: center;
    text-decoration: none !important;
}

.android-app-offer__download {
    background: #c51f2b;
    border: 1px solid #c51f2b;
    box-shadow: 0 8px 20px rgba(197, 31, 43, .2);
    color: #fff !important;
    gap: 9px;
}

.android-app-offer__download:hover {
    background: #ab1722;
    border-color: #ab1722;
    color: #fff !important;
}

.android-app-offer__continue {
    background: #f5f7fa;
    border: 1px solid #dfe5ec;
    color: #263a54;
    width: 100%;
}

.android-app-offer__continue:hover {
    background: #eaf0f5;
}

.android-app-offer__note {
    font-size: 11px !important;
    line-height: 1.45 !important;
    margin-top: 15px !important;
    text-align: center;
}

.android-app-offer button:focus-visible,
.android-app-offer a:focus-visible,
.android-app-footer-link:focus-visible {
    outline: 3px solid #4b86c5;
    outline-offset: 3px;
}

html.android-app-offer-open,
html.android-app-offer-open body {
    overflow: hidden !important;
}

.android-app-footer-entry {
    list-style: none;
}

.android-app-footer-link {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: 8px;
    min-height: 36px;
    text-decoration: none !important;
}

.android-app-footer-link svg {
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
}

#footer .android-app-footer-link {
    color: #dce5ee;
}

#footer .android-app-footer-link:hover {
    color: #fff;
}

@media (max-width: 479.98px) {
    .android-app-offer {
        align-items: flex-end;
        padding: 10px;
    }

    .android-app-offer__dialog {
        border-radius: 18px;
        max-height: calc(100dvh - 20px);
        padding: 24px 20px 20px;
    }

    .android-app-offer__brand {
        margin-bottom: 20px;
    }

    .android-app-offer__brand img {
        height: 50px;
        width: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .android-app-offer__backdrop,
    .android-app-offer__dialog {
        transition: none;
    }
}
