/*
 * Banner skin, in the module rather than the dhb2 theme so installing the module
 * installs the banner (see view/frontend/layout/default.xml for the reasoning).
 *
 * Colours are the dhb2 design tokens of 2026-09-04 (HANDOFF-dhb-redesign): logo blue
 * #0053a1, ink #1a2233, 6px radii, Work Sans is already the site font so nothing is
 * declared here and it inherits. --brand-blue is the ONE custom property the live
 * skin publishes (impl/dhb2/web/css/source/_redesign.less :root), so reading it with
 * the hex as a fallback means a future re-brand recolours this banner for free while
 * a theme-less page (an error page, a maintenance screen) still renders correctly.
 *
 * GOTCHA: no `position: fixed`. The checkout, the mini-cart drawer and MageBig's
 * mobile bottom bar all use fixed positioning with their own z-index ladder; a fixed
 * banner joins that fight and lands on top of the basket drawer on a phone. Sticky
 * at the top of normal flow scrolls with the page, stays visible, and never covers a
 * control.
 */
.status218-geo-notice {
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--brand-blue, #0053a1);
    color: #fff;
    box-shadow: 0 1px 3px rgba(26, 34, 51, .18);
}

.status218-geo-notice[hidden] {
    display: none;
}

.status218-geo-notice__inner {
    /* 1200px is the dhb2 content width; the banner lines up with the header below it. */
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status218-geo-notice__text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #fff;
}

.status218-geo-notice__close {
    flex: 0 0 auto;
    /* 44px is the dhb2 minimum touch target. */
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.status218-geo-notice__close:hover,
.status218-geo-notice__close:focus {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.status218-geo-notice__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

/*
 * At 390px (iPhone 12/13/14 logical width, the phone Chetas reviews on) the text
 * needs the full width and the close button must not squash it onto four lines.
 */
@media (max-width: 480px) {
    .status218-geo-notice__inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .status218-geo-notice__text {
        font-size: 13px;
    }
}
