/* TweetCell official app migration and browser promotion prompt, v1.0.0 */
.official-app-prompt[hidden] {
    display: none !important;
}

.official-app-prompt-open {
    overflow: hidden !important;
}

.official-app-prompt {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    font-family: Cairo, "Segoe UI", Tahoma, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.official-app-prompt__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 19, 38, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .24s ease;
}

.official-app-prompt__dialog {
    position: absolute;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    width: auto;
    max-width: 440px;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 27, 52, .4);
    color: #102a43;
    opacity: 0;
    transform: translateY(34px) scale(.98);
    transition: opacity .24s ease, transform .34s cubic-bezier(.2, .8, .2, 1);
}

.official-app-prompt.is-visible .official-app-prompt__backdrop {
    opacity: 1;
}

.official-app-prompt.is-visible .official-app-prompt__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.official-app-prompt__visual {
    position: relative;
    min-height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(4, 47, 87, .16), transparent 58%),
        linear-gradient(135deg, #071b37 0%, #005e91 54%, #04a6ae 100%);
}

.official-app-prompt__visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 24px 24px;
}

.official-app-prompt__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: .58;
}

.official-app-prompt__orb--one {
    top: -56px;
    right: -28px;
    width: 150px;
    height: 150px;
    background: rgba(0, 225, 210, .42);
}

.official-app-prompt__orb--two {
    bottom: -70px;
    left: -38px;
    width: 180px;
    height: 180px;
    background: rgba(255, 193, 7, .28);
}

.official-app-prompt__brand {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 18, 36, .3);
}

.official-app-prompt__brand img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.official-app-prompt__fallback-logo {
    color: #006c9f;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.official-app-prompt__campaign {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}

.official-app-prompt__campaign[hidden] {
    display: none !important;
}

.official-app-prompt__store-mark {
    position: absolute;
    z-index: 3;
    right: calc(50% - 65px);
    bottom: 22px;
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 18, 36, .28);
}

.official-app-prompt__store-mark svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.official-app-prompt__store-mark--play {
    background: #18a866;
    color: #fff;
}

.official-app-prompt__store-mark--apple {
    display: none;
    background: #111827;
    color: #fff;
}

.official-app-prompt[data-mode="ios-browser"] .official-app-prompt__store-mark--play {
    display: none;
}

.official-app-prompt[data-mode="ios-browser"] .official-app-prompt__store-mark--apple {
    display: flex;
}

.official-app-prompt__close {
    position: absolute;
    z-index: 8;
    top: 12px;
    left: 12px;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 50%;
    background: rgba(0, 24, 47, .58);
    color: #fff;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.official-app-prompt__close[hidden] {
    display: none !important;
}

[dir="ltr"].official-app-prompt .official-app-prompt__close {
    right: 12px;
    left: auto;
}

.official-app-prompt__content {
    padding: 22px 22px max(20px, env(safe-area-inset-bottom));
    text-align: start;
}

.official-app-prompt__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f8fa;
    color: #007c8a;
    font-size: 12px;
    font-weight: 800;
}

.official-app-prompt[data-mode="legacy-webview"] .official-app-prompt__eyebrow {
    background: #fff1ec;
    color: #c2410c;
}

.official-app-prompt__title {
    margin: 0 0 8px;
    color: #002855;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.42;
}

.official-app-prompt__text {
    margin: 0;
    color: #536b7d;
    font-size: 14px;
    line-height: 1.85;
}

.official-app-prompt__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 16px 0 18px;
    padding: 0;
    list-style: none;
}

.official-app-prompt__benefits li {
    min-width: 0;
    padding: 9px 5px;
    border: 1px solid #e0edf4;
    border-radius: 11px;
    background: #f7fbfd;
    color: #3d5d73;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.official-app-prompt__download,
.official-app-prompt__later {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.official-app-prompt__download {
    min-height: 52px;
    gap: 10px;
    border: 0;
    background: linear-gradient(135deg, #00a7b8, #006aa2);
    box-shadow: 0 13px 27px rgba(0, 117, 155, .26);
    color: #fff !important;
    font-size: 15px;
}

.official-app-prompt__download svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

[dir="rtl"].official-app-prompt .official-app-prompt__download svg {
    transform: scaleX(-1);
}

.official-app-prompt__store-copy {
    display: block;
    margin-top: 9px;
    color: #7b8e9d;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.official-app-prompt__later {
    min-height: 41px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #617789;
    font-size: 13px;
}

.official-app-prompt__later[hidden] {
    display: none !important;
}

.official-app-prompt__download:focus-visible,
.official-app-prompt__later:focus-visible,
.official-app-prompt__close:focus-visible {
    outline: 3px solid rgba(255, 193, 7, .82);
    outline-offset: 3px;
}

.official-app-prompt[data-blocking="true"] .official-app-prompt__backdrop {
    background: rgba(1, 13, 27, .84);
}

@media (min-width: 560px) {
    .official-app-prompt__dialog {
        right: 50%;
        bottom: 50%;
        left: auto;
        width: 440px;
        transform: translate(50%, calc(50% + 25px)) scale(.98);
    }

    .official-app-prompt.is-visible .official-app-prompt__dialog {
        transform: translate(50%, 50%) scale(1);
    }
}

@media (max-height: 650px) {
    .official-app-prompt__visual {
        min-height: 118px;
    }

    .official-app-prompt__brand {
        width: 76px;
        height: 76px;
        border-radius: 22px;
    }

    .official-app-prompt__store-mark {
        right: calc(50% - 56px);
        bottom: 14px;
    }

    .official-app-prompt__content {
        padding-top: 17px;
    }

    .official-app-prompt__benefits {
        margin: 12px 0 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .official-app-prompt__backdrop,
    .official-app-prompt__dialog {
        transition: none;
    }
}
