/* Mobile app install / open prompt */
.app-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 0 max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    pointer-events: none;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.app-install-banner.is-visible {
    pointer-events: auto;
    transform: translateY(0);
    opacity: 1;
}

.app-install-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 640px;
    margin: 0 auto;
    padding: 0.75rem 0.875rem;
    background: var(--amazon-nav, #232f3e);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 17, 17, 0.28);
}

.app-install-banner__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-install-banner__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-install-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    color: #fff;
    line-height: 1.25;
}

.app-install-banner__text strong {
    font-size: 0.875rem;
    font-weight: 700;
}

.app-install-banner__text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
}

.app-install-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.app-install-banner__btn {
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.65rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.app-install-banner__btn--open {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.app-install-banner__btn--open:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.app-install-banner__btn--install {
    background: var(--primary-color, #ff9900);
    color: #111 !important;
}

.app-install-banner__btn--install:hover {
    background: #e88b00;
    color: #111 !important;
}

.app-install-banner__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.app-install-banner__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.has-app-install-banner {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

body.has-app-install-banner .fab-container {
    bottom: calc(76px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .app-install-banner {
        display: none !important;
    }

    body.has-app-install-banner {
        padding-bottom: 0;
    }

    body.has-app-install-banner .fab-container {
        bottom: max(15px, env(safe-area-inset-bottom));
    }
}
