/* Storefront keyboard focus: one visible outline, with no stacked theme shadow. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid #202923;
    outline-offset: 2px;
    box-shadow: none;
}

/* MStore's top-right icon links suppress :focus with a more specific rule. */
.navbar-btns .navbar-btn:focus-visible {
    outline: 2px solid #202923;
    outline-offset: 2px;
    box-shadow: none;
}

/* Bootstrap suppresses tabindex=-1 focus with !important; preserve programmatic focus visibility. */
[tabindex="-1"]:focus-visible {
    outline: 2px solid #202923 !important;
    outline-offset: 2px;
    box-shadow: none;
}

/* Pointer focus should not keep Chrome's native blue ring or theme shadow. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Keep the input border crisp while the outline carries the focus state. */
:is(input, select, textarea, .form-control, .custom-select):focus-visible {
    border-color: #202923;
    box-shadow: none;
}

/* White remains clear on the storefront's dark surfaces and green actions. */
.btn-primary:focus-visible,
.product-rating-summary:focus-visible {
    outline-color: #fff;
}

/* MStore gives filled buttons a decorative base shadow that competes with focus. */
.btn:not([class*="btn-outline"]):not(.btn-secondary):focus-visible {
    box-shadow: none;
}

:where(.bg-dark, .navbar-dark, .page-footer) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-color: #fff;
}

@media (forced-colors: active) {
    :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
    .btn-primary:focus-visible {
        outline-color: Highlight;
        box-shadow: none;
    }

    [tabindex="-1"]:focus-visible {
        outline: 2px solid Highlight !important;
    }
}

.btn-primary { color: #fff; background-color: #0f7c40; border-color: #0f7c40; }
.btn-primary:hover, .btn-primary:active { color: #fff; background-color: #0b6031; border-color: #0b6031; }
.storefront-announcement { position: sticky; top: 0; z-index: 1032; padding: 10px 1rem; background: #000; color: #fff; font-size: .9375rem; line-height: 1.4; text-align: center; }
.storefront-announcement a { color: #fff !important; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.storefront-announcement a:hover { color: #fff !important; text-decoration-thickness: .15em; }
.storefront-announcement a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.storefront-sticky-header { position: sticky; top: var(--storefront-announcement-height, 0px); z-index: 1031; }
/* Keep the header in normal flow while preserving the containing block for its controls. */
@media (min-width: 992px) {
    .storefront-sticky-header { position: relative; top: auto; }
    .storefront-sticky-header .navbar-inner { flex-direction: column; }
    .storefront-sticky-header #menu { position: static; width: 100%; }
}
.navbar-btn-badge.basket-quantity-badge { background-color: #b87333; color: #fff; font-weight: 700; }
.basket-quantity-badge[hidden] { display: none !important; }
.basket-quantity-badge.animated { animation-duration: 1s; }
.storefront-footer-links .widget-links ul { margin: 0; padding: 0; }
.storefront-footer-links .widget-links li { margin: .25rem 0; }
.storefront-footer-links .widget-title { font-size: 1.1rem; }
@media (max-width: 575.98px) {
    .storefront-announcement { padding: 10px .75rem; }
    .storefront-footer-links .widget-links li { margin: .375rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    .basket-quantity-badge.animated { animation: none !important; }
}
.storefront-skip-link { position: fixed; top: 0; left: 1rem; transform: translateY(-150%); z-index: 2000; background: #fff; color: #111; padding: .75rem 1rem; }
.storefront-skip-link:focus { transform: translateY(0); }
html { scroll-padding-top: calc(var(--storefront-announcement-height, 0px) + var(--storefront-header-height, 0px) + 1rem); }
/* Optional banner scroll cue sits in its own strip below the banner. */
html.campaign-page { scroll-behavior: smooth; }
.campaign-hero picture,
.campaign-hero img { display: block; }
.banner-scroll-strip {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: center;
    background: #232323;
}
.banner-scroll-arrow { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.banner-scroll-arrow-animation { display: block; width: 3rem; height: 3rem; }
.banner-scroll-arrow-static { display: none; color: #fff; font-size: 2.5rem; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
    html.campaign-page { scroll-behavior: auto; }
    .banner-scroll-arrow-animation { display: none; }
    .banner-scroll-arrow-static { display: block; }
}

/* Listing card prices should not inherit the brand link color in any state. */
.product-card .product-card-body strong { color: #000000; }

/* Override the theme's desktop hover-only dropdown visibility. */
#menu .storefront-submenu-toggle { border: 0; background: transparent; text-align: left; width: 100%; }
#menu .storefront-submenu-toggle[aria-expanded="false"] + .dropdown-menu { display: none; }
#menu .storefront-submenu-toggle[aria-expanded="true"] + .dropdown-menu { display: block; }
#menu .dropdown-menu a:focus-visible { background-color: transparent; }
