/**
 * App Download Promotion Banner — promotional presentation.
 *
 * Self-contained, responsive styles (plain CSS, no new UI framework). Reuses
 * AdForest's palette (dark #242424 buttons, red accent). Hidden by default; the
 * banner script adds `.is-visible` once it confirms the visitor hasn't
 * dismissed it (prevents a flash of a dismissed banner). The reveal/dismiss
 * behaviour and the #adforest-app-banner / #adforest-app-banner-close hooks are
 * unchanged — this file only restyles the existing markup.
 *
 * Desktop: illustration (left) · content + feature list (middle) · store
 * badges (right) · close (top-right).  Mobile: everything stacks vertically.
 */

.adforest-app-banner {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    z-index: 9999;
    box-sizing: border-box;
}

.adforest-app-banner * {
    box-sizing: border-box;
}

.adforest-app-banner--bottom {
    bottom: 16px;
}

.adforest-app-banner--top {
    top: 16px;
}

.adforest-app-banner.is-visible {
    display: block;
    animation: adforest-app-banner-in 0.28s ease-out;
}

@keyframes adforest-app-banner-in {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ---- Card ---- */
.adforest-app-banner__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: 1180px;
    min-height: 116px;
    margin: 0 auto;
    padding: 14px 28px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}

/* ---- Illustration ---- */
.adforest-app-banner__media {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adforest-app-banner__media img {
    display: block;
    max-height: 88px;
    width: auto;
    border-radius: 10px;
}

.adforest-app-banner__phone {
    display: block;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.14));
}

/* ---- Content ---- */
.adforest-app-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.adforest-app-banner__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: #1c1c1c;
    margin: 0 0 5px;
}

.adforest-app-banner__desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: #5b5b5b;
    margin: 0 0 9px;
    max-width: 620px;
}

.adforest-app-banner__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.adforest-app-banner__features li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
}

.adforest-app-banner__check {
    flex: 0 0 auto;
    color: #ef2853; /* AdForest red accent */
}

/* ---- Store badges ---- */
.adforest-app-banner__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.adforest-app-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 158px;
    padding: 10px 18px;
    background: #242424;
    border: 1px solid #242424;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.adforest-app-banner__badge:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.adforest-app-banner__badge svg {
    flex: 0 0 auto;
    fill: #ffffff;
}

.adforest-app-banner__badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
    text-align: left;
}

.adforest-app-banner__badge-text small {
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.adforest-app-banner__badge-text strong {
    font-size: 15px;
    font-weight: 600;
}

/* ---- Close ---- */
.adforest-app-banner__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #666666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.adforest-app-banner__close:hover {
    background: #e6e6e6;
    color: #222222;
}

/* ---- Tablet ---- */
@media (max-width: 991px) and (min-width: 768px) {
    .adforest-app-banner__inner {
        gap: 18px;
        padding: 16px 24px;
    }
    .adforest-app-banner__actions {
        flex-direction: column;
        gap: 8px;
    }
    .adforest-app-banner__badge {
        width: 100%;
    }
    .adforest-app-banner__desc {
        margin-bottom: 7px;
    }
}

/* ---- Mobile: stack vertically ---- */
@media (max-width: 767px) {
    .adforest-app-banner {
        left: 10px;
        right: 10px;
    }
    .adforest-app-banner--bottom {
        bottom: 10px;
    }
    .adforest-app-banner__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        min-height: 0;
        padding: 24px 18px 20px;
    }
    .adforest-app-banner__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .adforest-app-banner__features {
        justify-content: center;
    }
    .adforest-app-banner__actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    .adforest-app-banner__badge {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
    .adforest-app-banner__badge-text {
        text-align: left;
    }
}
