.install-banner {
    display: none;
    position: relative;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #e8431b;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.install-banner.is-visible {
    display: flex;
}

.install-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #fff;
    object-fit: contain;
}

.install-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.install-banner-text strong {
    font-size: 13.5px;
}

.install-banner-text span {
    font-size: 12px;
    opacity: .9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.install-banner-btn {
    border: 0;
    border-radius: 999px;
    padding: 7px 16px;
    background: #fff;
    color: #e8431b;
    font-weight: 700;
    font-size: 12.5px;
    white-space: nowrap;
    cursor: pointer;
}

.install-banner-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    opacity: .85;
    flex-shrink: 0;
}

.install-banner-close:hover {
    opacity: 1;
}

.install-banner-close-msg {
    display: none;
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.35;
}

.install-banner.is-closing .install-banner-icon,
.install-banner.is-closing .install-banner-text,
.install-banner.is-closing .install-banner-btn,
.install-banner.is-closing .install-banner-close {
    display: none;
}

.install-banner.is-closing .install-banner-close-msg {
    display: block;
}

.install-banner-ios-hint {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    background: #1f1a17;
    color: #fff;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    z-index: 30;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.install-banner-ios-hint.is-visible {
    display: block;
}

.install-banner-ios-hint .install-banner-share-icon {
    display: inline-block;
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin: 0 1px;
}

@media (min-width: 900px) {
    /* Extra safety net — install-banner.js already gates this to mobile
       user agents, but a wide viewport (e.g. a resized desktop browser
       spoofing a mobile UA) should still not show it. */
    .install-banner.is-visible {
        display: none;
    }
}

div#installBanner {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
}
.page-checkout .install-banner {
    display: none !important;
}

/* "Install app" prompt shown in the footer (under the brand logo/
   description), hidden until install-banner.js decides the visitor is
   eligible (mobile, not already installed) and has dismissed the top banner
   at least once, so the option stays reachable afterwards. Kept as a slim
   icon + label + button row rather than a full card. */
.install-banner-footer-promo {
    display: block !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, .78);
    font-size: 13.5px;
}

.rf-footer .rf-brand-desc {
    margin-bottom: 0;
}

.install-banner-footer-promo.is-visible {
    display: inline-flex;
}

.install-banner-footer-promo:hover {
    color: #fff;
}

.install-banner-footer-promo-btn {
    padding: 5px 14px;
    border-radius: 999px;
    background: #e8431b;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

.install-banner-footer-wrap {
    position: relative;
    display: inline-block;
}

/* iOS manual-install steps, anchored to the footer prompt itself — clicking
   "Install" there must not jump up to the top banner. */
.install-banner-footer-hint {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    width: 260px;
    max-width: 80vw;
    padding: 10px 12px;
    background: #1f1a17;
    color: #fff;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    z-index: 30;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.install-banner-footer-hint.is-visible {
    display: block;
}

.install-banner-footer-hint .install-banner-share-icon {
    display: inline-block;
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin: 0 1px;
}

@media (min-width: 769px) {
    .install-banner-footer-promo {
        display: none !important;
    }
}