/* =============================================================================
 * "Get the app" — top banner and the band above the footer.
 * Markup and the reasoning behind it: inc/app-promo.php.
 *
 * Colours are the app's tokens, each measured on white:
 *   ink #12292F headings and button 15.2:1 · #4C575D body 7.42:1 · #5F6A70 small text 5.55:1 ·
 *   brass #9A6209 "Coming soon" 5.09:1.
 * Not gold #EB9410 for text — it is 2.39:1 on white.
 * ========================================================================== */

/* --- Top banner ----------------------------------------------------------- */

.jd-app-banner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 4px;
    background: #fff;
    border-bottom: 1px solid #e3e1dc;
    text-align: left;
}

/* `hidden` is only a UA style, so display:flex above would beat it. */
.jd-app-banner[hidden] {
    display: none;
}

.jd-app-banner .jd-app-banner__close {
    flex: none;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #5F6A70;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.jd-app-banner__icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 22.5%;
}

.jd-app-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.jd-app-banner__name {
    overflow: hidden;
    color: #12292F;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jd-app-banner__store {
    color: #5F6A70;
    font-size: 13px;
}

.jd-app-banner .jd-app-banner__cta,
.jd-app-banner .jd-app-banner__cta:hover,
.jd-app-banner .jd-app-banner__cta:focus {
    flex: none;
    padding: 8px 20px;
    border-radius: 999px;
    background: #12292F;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

/* --- Band above the footer ----------------------------------------------- */

.jd-app-promo {
    padding: 40px 0 24px;
    background: #fff;
    border-top: 1px solid #ebe9e4;
    text-align: left;
}

.jd-app-promo__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.jd-app-promo__icon {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 22.5%;
}

.jd-app-promo__copy {
    flex: 1;
    min-width: 0;
}

.jd-app-promo .jd-app-promo__title {
    margin: 0 0 6px;
    padding: 0;
    color: #12292F;
    /* The page's section headings are Poppins; the theme's h2 default is Open Sans. */
    font-family: Poppins, "Open Sans", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.jd-app-promo .jd-app-promo__text {
    margin: 0;
    color: #4C575D;
    font-size: 15px;
    line-height: 1.55;
}

/* Gaps of 16px between badges and 12px to the caption keep the quarter-height clear
   space both Apple and Google ask for at a 48px badge. */
.jd-app-promo .jd-app-promo__badges {
    flex: none;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jd-app-promo .jd-app-promo__store {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.jd-app-promo__badge-link {
    display: block;
    border-radius: 8px;
}

.jd-app-promo__badge-link:focus-visible {
    outline: 2px solid #12292F;
    outline-offset: 4px;
}

/* Same height for both: Google asks for its badge to be no smaller than the others,
   Apple sets a 40px minimum. */
.jd-app-promo .jd-app-promo__badge {
    display: block;
    width: auto;
    max-width: none;
    height: 48px;
}

.jd-app-promo__status {
    color: #5F6A70;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.jd-app-promo__status--soon {
    color: #9A6209;
    font-weight: 600;
}

.jd-app-promo .jd-app-promo__legal {
    max-width: 720px;
    margin: 28px auto 0;
    color: #5F6A70;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 767px) {
    .jd-app-promo {
        padding: 32px 0 20px;
        text-align: center;
    }

    .jd-app-promo__inner {
        flex-direction: column;
        gap: 16px;
    }

    .jd-app-promo .jd-app-promo__badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}
