/* DoShop UI Kit layout adaptations. Existing widgets remain the behavior owners. */
/* Let the rounded search form own its background; a square child otherwise paints over its corners. */
.doshop-search-bar .doshop-input-wrap{background:transparent}
:where(body[data-storefront-header]:not([data-storefront-header="current"])),:where(body[data-storefront-footer]:not([data-storefront-footer="current"])){--layout-accent:var(--theme-accent-strong);--layout-on-accent:var(--theme-on-accent)}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header{background:var(--theme-surface);color:var(--theme-text);border-block-end:1px solid var(--theme-border);z-index:1030;position:sticky;top:0;overflow:visible}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header-top{background:var(--theme-surface);color:var(--theme-text);padding:16px clamp(12px,3vw,48px);gap:18px}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right{gap:10px;min-width:0}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right .amz-nav-item,:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right .dropdown-toggle,:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-theme-toggle{color:var(--theme-text)!important;border-color:var(--theme-border)!important;background:transparent}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right .amz-text-small,:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right .amz-text-bold{color:inherit!important;overflow-wrap:anywhere}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .locale-selector__trigger{color:var(--theme-text)!important;border-color:var(--theme-border)!important;background:var(--theme-surface)}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header-bottom{background:var(--theme-surface-muted);color:var(--theme-text);border-block-start:1px solid var(--theme-border);padding:0 clamp(12px,3vw,48px);gap:8px;flex-wrap:wrap;overflow:visible}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header-bottom>.amz-bottom-item{color:var(--theme-text)!important;padding:12px 10px;white-space:normal;min-height:44px}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header-bottom>.amz-bottom-item:hover{background:var(--theme-hover);color:var(--layout-accent)!important}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) #storefront-header-search{min-width:0;max-width:none;margin:0}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header .amz-logo-light{display:block!important}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header .amz-logo-dark{display:none!important}
[data-theme="dark"] :where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header .amz-logo-light{display:none!important}
[data-theme="dark"] :where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header .amz-logo-dark{display:block!important}
.layout-search-toggle{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface);color:var(--theme-text)}
.layout-utility{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:8px clamp(12px,3vw,48px);background:var(--theme-chrome-bg);color:var(--theme-on-chrome-strong);font-size:.8rem}
.layout-utility a{color:inherit;margin-inline-start:16px;overflow-wrap:anywhere}
.layout-utility a:hover{color:var(--layout-accent);text-decoration:none}
.layout-utility i{color:var(--layout-accent);margin-inline-end:4px}
.amz-header-bottom>.amz-bottom-item[aria-current="page"],.amz-header-bottom>.amz-bottom-item.is-active{font-weight:700;color:var(--layout-accent)!important}
[data-theme="dark"] .amz-header-bottom>.amz-bottom-item[aria-current="page"],[data-theme="dark"] .amz-header-bottom>.amz-bottom-item.is-active{color:var(--layout-accent)!important}
.layout-wordmark{display:block;padding:24px clamp(12px,3vw,48px);font-size:clamp(2.5rem,9vw,8rem);font-weight:800;letter-spacing:-.055em;line-height:1.05;color:var(--theme-text-strong);overflow-wrap:anywhere}
.layout-wordmark:hover{color:var(--layout-accent);text-decoration:none}
.layout-side-rail{display:none}
body[data-storefront-header="classic-pro"] .amz-header-bottom{background:var(--theme-chrome-bg);border:0}
body[data-storefront-header="classic-pro"] .amz-header-bottom>.amz-bottom-item{color:var(--theme-on-chrome-strong)!important}
body[data-storefront-header="classic-pro"] .amz-header-bottom>.amz-bottom-item:is(:hover,:focus-visible){background:var(--theme-chrome-surface);color:var(--theme-on-chrome-strong)!important}
body[data-storefront-header="mega-menu"] .amz-header{border-block-start:4px solid var(--layout-accent)}
body[data-storefront-header="mega-menu"] .doshop-trigger{background:var(--layout-accent)!important;color:var(--layout-on-accent)!important;min-height:48px;border-radius:0}
body[data-storefront-header="floating-capsule"] .amz-header{width:calc(100% - clamp(24px,2.5vw,64px));max-width:none;margin:16px auto;border:1px solid var(--theme-border);border-radius:var(--theme-radius-5xl);top:12px;box-shadow:var(--theme-shadow-sm)}
body[data-storefront-header="floating-capsule"] .amz-header-top{border-radius:var(--theme-radius-5xl) var(--theme-radius-5xl) 0 0;padding:18px 24px}
body[data-storefront-header="floating-capsule"] .amz-header-bottom{border-radius:0 0 var(--theme-radius-5xl) var(--theme-radius-5xl);padding-inline:24px;gap:4px}
body[data-storefront-header="floating-capsule"] .amz-nav-right .amz-nav-item{border-color:transparent!important;border-radius:var(--theme-radius-lg)}
body[data-storefront-header="floating-capsule"] .amz-nav-right .amz-nav-item:hover{background:var(--theme-surface-muted)}
body[data-storefront-header="floating-capsule"] .doshop-search-bar{width:100%;max-width:none;min-width:0}
body[data-storefront-header="transparent-hero"][data-layout-hero="true"] .amz-header-top{background:color-mix(in srgb,var(--theme-surface) 82%,transparent);backdrop-filter:blur(14px)}
body[data-storefront-header="transparent-hero"][data-layout-hero="true"] .amz-header{background:transparent;box-shadow:none}
body[data-storefront-header="transparent-hero"][data-layout-hero="false"] .amz-header{background:var(--theme-surface);box-shadow:var(--theme-shadow-sm)}
body[data-storefront-header="bold-statement"] .amz-header-bottom{border-block:1px solid var(--theme-border);text-transform:uppercase;font-size:.8rem;letter-spacing:.04em}
@media(min-width:992px){
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header-top{display:grid;grid-template-columns:minmax(100px,190px) minmax(180px,1fr) auto;align-items:center}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-belt{width:auto;min-width:0;margin:0}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-logo{margin:0}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right{justify-content:flex-end}
body:is([data-storefront-header="minimal-one-line"],[data-storefront-header="transparent-hero"],[data-storefront-header="side-rail"]) .amz-header-top{grid-template-columns:minmax(120px,1fr) auto}
body:is([data-storefront-header="minimal-one-line"],[data-storefront-header="transparent-hero"],[data-storefront-header="side-rail"]) #storefront-header-search{display:none;grid-column:1/-1;grid-row:2;max-width:900px;justify-self:center;width:100%}
body:is([data-storefront-header="minimal-one-line"],[data-storefront-header="transparent-hero"],[data-storefront-header="side-rail"])[data-layout-search-open="true"] #storefront-header-search{display:block}
/* Expanded search must fill its centered row, not inherit the legacy 600px form cap. */
body:is([data-storefront-header="minimal-one-line"],[data-storefront-header="transparent-hero"],[data-storefront-header="side-rail"]) #storefront-header-search .doshop-search-bar{width:100%;max-width:none;min-width:0}
body[data-storefront-header="floating-capsule"] .amz-header-top{grid-template-columns:minmax(110px,160px) minmax(240px,1fr) auto;gap:24px}
body[data-storefront-header="floating-capsule"] #storefront-header-search{display:block;width:100%}
/* Ultra-wide container alignment for all storefront headers (>= 1400px) */
@media (min-width: 1400px) {
    :where(body[data-storefront-header]:not([data-storefront-header="side-rail"])) .amz-header-top {
        max-width: 1520px;
        margin-inline: auto;
    }
    :where(body[data-storefront-header]:not([data-storefront-header="side-rail"])) .amz-header-bottom {
        max-width: 1520px;
        margin-inline: auto;
    }
    .storefront-announcement-container {
        max-width: 1520px !important;
    }
}

/* Centered Boutique Header - Mobile / Tablet (< 992px) */
@media (max-width: 991.98px) {
    body[data-storefront-header="centered-boutique"] .amz-header-top {
        grid-template-columns: 1fr auto 1fr;
        padding-block: 14px;
    }
    body[data-storefront-header="centered-boutique"] .amz-nav-belt {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
    }
    body[data-storefront-header="centered-boutique"] .amz-nav-right {
        grid-column: 3;
        grid-row: 1;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    body[data-storefront-header="centered-boutique"] #storefront-header-search {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }
    body[data-storefront-header="centered-boutique"][data-layout-search-open="true"] #storefront-header-search {
        display: block;
    }
}

/* Centered Boutique Header - Comprehensive Desktop Polish (>= 992px) */
@media (min-width: 992px) {
    body[data-storefront-header="centered-boutique"] .amz-header-top {
        display: grid !important;
        grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr) !important;
        align-items: center !important;
        padding: 12px clamp(16px, 3vw, 48px) !important;
        gap: 20px !important;
        max-width: 1520px !important;
        margin: 0 auto !important;
    }

    /* Column 1: Elegant Live Search Bar on Left */
    body[data-storefront-header="centered-boutique"] #storefront-header-search {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        max-width: 380px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    body[data-storefront-header="centered-boutique"] #storefront-header-search .doshop-search-bar {
        width: 100% !important;
        max-width: 380px !important;
        min-width: 0 !important;
    }

    /* Hide redundant search toggle button on desktop */
    body[data-storefront-header="centered-boutique"] .layout-search-toggle {
        display: none !important;
    }

    /* Column 2: Logo in the exact horizontal center */
    body[data-storefront-header="centered-boutique"] .amz-nav-belt {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* Column 3: User actions on Right */
    body[data-storefront-header="centered-boutique"] .amz-nav-right {
        grid-column: 3 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        gap: 10px !important;
    }

    /* Row 2: Centered, Quiet, Single-Line Refined Navigation */
    body[data-storefront-header="centered-boutique"] .amz-header-bottom {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        padding: 6px clamp(16px, 3vw, 48px) !important;
        max-width: 1520px !important;
        margin: 0 auto !important;
        gap: 4px !important;
        background: transparent !important;
        border-top: 1px solid var(--theme-border) !important;
        overflow: visible !important;
        scrollbar-width: none !important;
    }

    body[data-storefront-header="centered-boutique"] .amz-header-bottom::-webkit-scrollbar {
        display: none !important;
    }

    /* Categories Trigger: Compact & Elegant */
    body[data-storefront-header="centered-boutique"] .mega-menu-wrap {
        flex: 0 0 auto !important;
    }
    body[data-storefront-header="centered-boutique"] .doshop-trigger {
        width: auto !important;
        min-width: unset !important;
        border-radius: var(--theme-radius-sm) !important;
        padding: 6px 14px !important;
        min-height: 34px !important;
        margin-right: 6px !important;
        font-size: 13px !important;
        flex-shrink: 0 !important;
    }

    /* Clean, Non-wrapping Nav Items */
    body[data-storefront-header="centered-boutique"] .amz-header-bottom > .amz-bottom-item {
        font-size: 13px !important;
        font-weight: 500 !important;
        letter-spacing: 0.01em !important;
        text-transform: none !important;
        padding: 6px 10px !important;
        border-radius: var(--theme-radius-sm) !important;
        color: var(--theme-text) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transition: all 0.18s ease !important;
    }

    body[data-storefront-header="centered-boutique"] .amz-header-bottom > .amz-bottom-item:hover {
        background: var(--theme-surface-muted) !important;
        color: var(--layout-accent) !important;
    }

    /* Sell on DoShop item: Inline, no wrap */
    body[data-storefront-header="centered-boutique"] .amz-header-bottom .amz-sell-link {
        margin-left: 10px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}
body[data-storefront-header="side-rail"]{padding-inline-start:88px}
body[data-storefront-header="side-rail"] .layout-side-rail{display:flex;position:fixed;inset-block:0;inset-inline-start:0;width:88px;z-index:1025;background:var(--theme-chrome-bg);color:var(--theme-on-chrome-strong);flex-direction:column;justify-content:flex-start;gap:12px;border-inline-end:1px solid var(--theme-chrome-border);padding-block:16px;overflow-y:auto}
.layout-side-rail a{flex-shrink:0}.layout-side-rail a:first-child{margin-block-start:auto}.layout-side-rail a:last-child{margin-block-end:auto}
.layout-side-rail a{color:var(--theme-on-chrome);display:grid;justify-items:center;gap:6px;padding:12px 3px;text-align:center;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.layout-side-rail a:hover,.layout-side-rail a[aria-current]{color:var(--theme-on-chrome-strong);background:var(--theme-chrome-surface);text-decoration:none}
.layout-side-rail i{font-size:20px}
body[data-storefront-header="bold-statement"] .amz-header-top{grid-template-columns:1fr auto}
body[data-storefront-header="bold-statement"] .amz-nav-belt{display:none}
body[data-storefront-header="bold-statement"] #storefront-header-search{max-width:700px}
}
/* Wide rail layouts have room for search beside the logo, not beneath the utilities. */
@media(min-width:1400px){
body[data-storefront-header="side-rail"] .amz-header-top{grid-template-columns:minmax(120px,160px) minmax(240px,1fr) auto}
body[data-storefront-header="side-rail"] .amz-nav-belt{grid-column:1;grid-row:1}
body[data-storefront-header="side-rail"] #storefront-header-search{display:block;grid-column:2;grid-row:1;max-width:none;justify-self:stretch}
body[data-storefront-header="side-rail"] .amz-nav-right{grid-column:3;grid-row:1}
body[data-storefront-header="side-rail"] .layout-search-toggle{display:none}
}
@media(min-width:992px) and (max-width:1399.98px){body[data-storefront-header="floating-capsule"] .amz-header-top{grid-template-columns:minmax(110px,1fr) auto;gap:14px}body[data-storefront-header="floating-capsule"] .amz-nav-right{grid-column:2;grid-row:1}body[data-storefront-header="floating-capsule"] #storefront-header-search{grid-column:1/-1;grid-row:2;max-width:none}}
@media(max-width:991.98px){
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header-top{display:flex;flex-wrap:wrap;gap:10px;padding:10px 12px}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-belt{flex:1 1 100px;min-width:0}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right{flex-wrap:wrap;justify-content:flex-end;gap:6px;flex:1 1 220px}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) #storefront-header-search{display:block;flex:1 0 100%;order:3;width:100%}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .layout-search-toggle{display:none}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-header-bottom{padding-inline:8px;gap:0}
body[data-storefront-header="floating-capsule"] .amz-header{width:calc(100% - 16px);top:4px;margin-block:8px;border-radius:var(--theme-radius-4xl)}
body[data-storefront-header="floating-capsule"] .amz-header-top{padding:12px;gap:10px}
body[data-storefront-header="floating-capsule"] .amz-nav-belt{flex:0 0 auto;max-width:120px;margin:0}
body[data-storefront-header="floating-capsule"] .amz-nav-right{flex:0 0 auto;max-width:calc(100% - 125px);margin-left:auto;justify-content:flex-end;flex-wrap:nowrap}
body[data-storefront-header="floating-capsule"] .amz-header-bottom{padding-inline:8px;border-radius:0 0 var(--theme-radius-4xl) var(--theme-radius-4xl)}
.layout-wordmark{padding-block:14px;font-size:clamp(2rem,12vw,5rem)}
}
/* Long signed-in names must not push the existing or new header off a phone. */
.amz-header #amz-account-dropdown{max-width:220px;min-width:0}
.amz-header #amz-account-dropdown .dropdown-toggle{max-width:100%;white-space:normal;position:relative;padding-inline-end:20px}
.amz-header #amz-account-dropdown .dropdown-toggle::after{position:absolute;inset-inline-end:6px;top:50%;width:0;height:0;margin:0;transform:translateY(-50%)}
.amz-header #amz-account-dropdown .amz-text-bold{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
@media(max-width:1199.98px){.amz-header-bottom{flex-wrap:wrap}}
@media(min-width:992px) and (max-width:1199.98px){
body:is([data-storefront-header="current"],[data-storefront-header="classic-pro"],[data-storefront-header="mega-menu"]) .amz-header-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:8px 16px!important}
body:is([data-storefront-header="current"],[data-storefront-header="classic-pro"],[data-storefront-header="mega-menu"]) .amz-nav-belt{flex:0 0 auto!important;margin:0!important}
body:is([data-storefront-header="current"],[data-storefront-header="classic-pro"],[data-storefront-header="mega-menu"]) #storefront-header-search{display:block!important;flex:1 1 auto!important;max-width:500px!important;margin:0 12px!important;order:unset!important}
body:is([data-storefront-header="current"],[data-storefront-header="classic-pro"],[data-storefront-header="mega-menu"]) .amz-nav-right{flex:0 0 auto!important;gap:8px!important;flex-wrap:nowrap!important}
body:is([data-storefront-header="current"],[data-storefront-header="classic-pro"],[data-storefront-header="mega-menu"]) .doshop-search-bar{width:100%!important;max-width:none!important;min-width:0!important}
body[data-storefront-header="bold-statement"] .amz-header-top{grid-template-columns:minmax(0,1fr)}
body[data-storefront-header="bold-statement"] .amz-nav-right{grid-column:1;grid-row:1;flex-wrap:wrap}
body[data-storefront-header="bold-statement"] #storefront-header-search{grid-column:1;grid-row:2;width:100%;max-width:none}
body[data-storefront-header="bold-statement"] .doshop-search-bar{width:100%;max-width:none;min-width:0}
}
@media(max-height:540px){body[data-storefront-header]:not([data-storefront-header="current"]) .amz-header{position:relative;top:auto}}
@media(max-width:575.98px){
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-belt{flex:0 0 auto;max-width:120px;margin:0}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) .amz-nav-right{flex:0 0 auto;max-width:calc(100% - 125px);margin-left:auto;justify-content:flex-end;align-items:center;flex-wrap:nowrap}
.amz-header-top{flex-wrap:wrap}.amz-header .amz-nav-right{max-width:100%;flex-wrap:wrap;min-width:0;gap:6px}.amz-header #amz-account-dropdown{max-width:150px;min-width:0}.amz-header #amz-account-dropdown .amz-text-bold{white-space:normal;overflow-wrap:anywhere}.amz-header-bottom{flex-wrap:wrap}.amz-header-bottom .amz-sell-link{margin-inline-start:0!important}
}
/* Every footer keeps the same links, subscription form, logos and social data. */
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer .amz-newsletter-label{color:var(--theme-text-muted)!important}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer{position:relative;isolation:isolate;background:var(--theme-surface);color:var(--theme-text);margin-block-start:48px;border-block-start:1px solid var(--theme-border)}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin:0;padding-block:48px}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-col{width:auto;max-width:none;padding:0;min-width:0}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-col h5{color:var(--theme-text-strong);font-size:1rem;margin-block-end:16px}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-col a,:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-bottom a{color:var(--theme-text-muted)!important;overflow-wrap:anywhere}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer a:hover{color:var(--layout-accent)!important}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-bottom{border-block-start:1px solid var(--theme-border);background:transparent;color:inherit;padding:24px 16px}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-back-to-top{background:var(--theme-surface-muted);color:var(--theme-text);padding:14px;border-block-end:1px solid var(--theme-border)}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-newsletter-input{background:var(--theme-surface-muted);border:1px solid var(--theme-border);color:var(--theme-text);min-width:0;width:100%;min-height:44px}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-newsletter-btn{background:var(--layout-accent);color:var(--layout-on-accent);border:0;min-height:44px;padding:10px 16px;white-space:normal;flex-shrink:0}
.layout-footer-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;padding:20px clamp(16px,4vw,64px);border-block-start:1px solid var(--theme-border);font-size:.875rem;overflow-wrap:anywhere}
.layout-footer-contact a{color:inherit;display:inline-flex;align-items:center}
.layout-footer-contact a:hover{color:var(--layout-accent)!important;text-decoration:none}
.layout-footer-contact span{display:inline-flex;align-items:center}
.layout-footer-contact i{color:var(--layout-accent);margin-inline-end:6px}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer .amz-logo-light{display:block!important}
:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer .amz-logo-dark{display:none!important}
[data-theme="dark"] :where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer .amz-logo-light{display:none!important}
[data-theme="dark"] :where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer .amz-logo-dark{display:block!important}
body:is([data-storefront-footer="dark-premium"],[data-storefront-footer="accordion-sitemap"]) .amz-footer{--theme-surface:var(--theme-chrome-bg);--theme-surface-muted:var(--theme-chrome-surface);--theme-text:var(--theme-on-chrome);--theme-text-strong:var(--theme-on-chrome-strong);--theme-text-muted:var(--theme-on-chrome-muted);--theme-border:var(--theme-chrome-border);--layout-accent:var(--theme-chrome-accent);--layout-on-accent:var(--theme-on-chrome-accent);background:var(--theme-chrome-bg);color:var(--theme-on-chrome)}
body:is([data-storefront-footer="dark-premium"],[data-storefront-footer="accordion-sitemap"]) .amz-footer .amz-logo-light{display:none!important}
body:is([data-storefront-footer="dark-premium"],[data-storefront-footer="accordion-sitemap"]) .amz-footer .amz-logo-dark{display:block!important}
body[data-storefront-footer="newsletter-cta"] .layout-newsletter-column{grid-column:1/-1;grid-row:1;background:var(--theme-surface-muted);border-inline-start:5px solid var(--layout-accent);padding:32px;border-radius:var(--theme-radius-3xl);display:grid;grid-template-columns:1fr 1fr;gap:0 28px}
body[data-storefront-footer="newsletter-cta"] .amz-footer-links{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-storefront-footer="newsletter-cta"] #newsletter-form-v2{grid-column:2;grid-row:1/4;align-self:center;margin:0!important}
body[data-storefront-footer="minimal-centered"] .amz-footer-links{display:flex;justify-content:center;flex-wrap:wrap;max-width:1000px;margin:auto;text-align:center;gap:32px 48px}
body[data-storefront-footer="minimal-centered"] .amz-footer-col{flex:1 1 250px}
body[data-storefront-footer="minimal-centered"] .layout-newsletter-column{flex-basis:100%;max-width:500px}
body[data-storefront-footer="minimal-centered"] .amz-footer-col>a{display:inline-block;margin:4px 9px}
body[data-storefront-footer="bento-grid"] .amz-footer{background:var(--theme-bg);border:0}
body[data-storefront-footer="bento-grid"] .amz-footer-col{background:var(--theme-surface-raised);border:1px solid var(--theme-border);border-radius:var(--theme-radius-4xl);padding:24px}
body[data-storefront-footer="bento-grid"] .amz-footer-links{gap:16px}
.layout-footer-heading{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:start;color:inherit;background:transparent;border:0;padding:4px 0;font:inherit;font-weight:700;min-height:44px}
.layout-footer-heading:disabled{color:inherit;opacity:1;cursor:default}
.layout-footer-heading[aria-expanded="false"] .layout-footer-chevron{transform:rotate(180deg)}
.layout-footer-panel[hidden]{display:none!important}
.layout-footer-wave{display:block;width:100%;height:76px;color:color-mix(in srgb,var(--theme-accent) 55%,#fff);margin-block-end:-1px}
body[data-storefront-footer="gradient-wave"] .amz-footer{background:linear-gradient(140deg,color-mix(in srgb,var(--theme-accent) 55%,#fff),color-mix(in srgb,var(--theme-accent) 8%,#fff) 72%);--theme-text:color-mix(in srgb,var(--theme-accent-strong) 40%,#000);--theme-text-strong:color-mix(in srgb,var(--theme-accent-strong) 25%,#000);--theme-text-muted:color-mix(in srgb,var(--theme-accent-strong) 50%,#000);--theme-surface-muted:var(--theme-accent-soft);--theme-border:color-mix(in srgb,var(--theme-accent-strong) 60%,#fff);color:var(--theme-text);border:0}
body[data-storefront-footer="gradient-wave"] .layout-newsletter-column{grid-column:1/-1;grid-row:1;max-width:640px;width:100%;justify-self:center;text-align:center}
body[data-storefront-footer="gradient-wave"] .amz-footer-links{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-storefront-footer="gradient-wave"] .amz-back-to-top{background:transparent}
[data-theme="dark"] body[data-storefront-footer="gradient-wave"] .amz-footer{background:linear-gradient(140deg,color-mix(in srgb,var(--theme-accent) 22%,#111),color-mix(in srgb,var(--theme-accent) 6%,#111) 72%);--theme-text:color-mix(in srgb,var(--theme-accent) 22%,#fff);--theme-text-strong:color-mix(in srgb,var(--theme-accent) 8%,#fff);--theme-text-muted:color-mix(in srgb,var(--theme-accent) 35%,#fff);--theme-surface-muted:color-mix(in srgb,var(--theme-accent) 14%,#1a1a1a);--theme-border:color-mix(in srgb,var(--theme-accent) 40%,#222);color:var(--theme-text)}
[data-theme="dark"] .layout-footer-wave{color:color-mix(in srgb,var(--theme-accent) 22%,#111)}
.layout-footer-wordmark{position:absolute;inset-inline:0;inset-block-start:20px;z-index:-1;overflow:hidden;text-align:center;white-space:nowrap;font-size:clamp(4rem,17vw,18rem);font-weight:800;line-height:1;letter-spacing:-.06em;color:transparent;-webkit-text-stroke:1px var(--theme-border);opacity:.7;pointer-events:none}
body[data-storefront-footer="watermark-wordmark"] .amz-footer-links{padding-block-start:clamp(100px,16vw,230px)}
body[data-storefront-footer="watermark-wordmark"] .amz-footer{background:var(--theme-surface-muted)}
@media(max-width:991.98px){:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;padding-inline:8px}body[data-storefront-footer="newsletter-cta"] .layout-newsletter-column{display:block;padding:24px}body[data-storefront-footer="newsletter-cta"] #newsletter-form-v2{margin-top:16px!important}body[data-storefront-footer="newsletter-cta"] .amz-footer-links,body[data-storefront-footer="gradient-wave"] .amz-footer-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){body[data-storefront-footer="accordion-sitemap"] .amz-footer-links{grid-template-columns:1fr;gap:8px}body[data-storefront-footer="accordion-sitemap"] .amz-footer-col{border-block-end:1px solid var(--theme-border)}body[data-storefront-footer="bento-grid"] .amz-footer-links{grid-template-columns:1fr}.layout-footer-contact{justify-content:flex-start}}
.layout-preview-notice{padding:10px 16px;background:#fff3cd;color:#664d03;border-bottom:1px solid #b58c2f;font-size:13px}
/* Fit category popovers to their actual anchor, including centered and rail layouts. */
.amz-header .doshop-mega-wrap:not(.is-open) .doshop-panel{display:none!important}
@media(min-width:768px){
.amz-header .mega-menu-panel.doshop-panel{left:auto;right:auto;inset-inline-start:0;max-width:var(--layout-menu-width,calc(100vw - 32px));max-height:min(var(--layout-menu-height,70vh),600px)}
.amz-header .doshop-panel .doshop-content,.amz-header .doshop-panel .doshop-sidebar,.amz-header .doshop-panel .doshop-promo{max-height:inherit;min-height:0;min-width:0}
.amz-header .doshop-pane-header,.amz-header .doshop-pane-title-wrap{flex-wrap:wrap}
.amz-header .doshop-pane-viewall{white-space:normal;overflow-wrap:anywhere;max-width:100%}
}
.amz-footer #newsletter-form-v2{flex-wrap:wrap;gap:8px}
.amz-footer #newsletter-form-v2 .amz-newsletter-input{flex:1 1 140px;min-width:0;max-width:100%;margin:0;border-radius:var(--theme-radius-xs)}
.amz-footer #newsletter-form-v2 .amz-newsletter-btn{flex:0 0 auto;max-width:100%;border-radius:var(--theme-radius-pill)}
body[data-layout-preview] form [type="submit"]{cursor:not-allowed}
:where(body[data-storefront-header]:not([data-storefront-header="current"])) :is(a,button):focus-visible,:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) :is(a,button,input):focus-visible{outline:3px solid var(--layout-accent);outline-offset:3px}
@media(prefers-reduced-motion:reduce){:where(body[data-storefront-header]:not([data-storefront-header="current"])) *,:where(body[data-storefront-footer]:not([data-storefront-footer="current"])) *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body[data-storefront-header="side-rail"]{padding-inline-start:0}.layout-side-rail,.layout-preview-notice,.layout-wordmark{display:none!important}}

/* Side Rail Hybrid Layout Enhancements */
body[data-storefront-header="side-rail"] .amz-nav-right > .amz-wishlist-nav,
body[data-storefront-header="side-rail"] .amz-nav-right > .amz-cart-nav {
    display: none !important;
}

.layout-side-rail .wishlist-count-badge,
.layout-side-rail .cart-count-badge {
    display: inline-block;
    min-width: 17px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: var(--theme-radius-pill);
    background: var(--layout-accent);
    color: var(--layout-on-accent);
    margin-inline-start: 4px;
}

.siderail-hybrid-subnav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    margin-inline-start: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.siderail-hybrid-subnav::-webkit-scrollbar {
    display: none;
}

.siderail-cat-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.siderail-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--theme-radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-text-strong) !important;
    background: var(--theme-hover);
    border: 1px solid var(--theme-border);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.amz-header a.siderail-cat-pill,
.siderail-cat-pill,
.siderail-cat-pill .siderail-cat-pill-name {
    color: var(--theme-text-strong) !important;
    text-decoration: none !important;
}

.amz-header a.siderail-cat-pill:hover,
.siderail-cat-pill:hover,
.siderail-cat-pill:hover .siderail-cat-pill-name {
    background: var(--layout-accent) !important;
    color: var(--layout-on-accent) !important;
    border-color: var(--layout-accent) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.siderail-cat-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--layout-accent);
    transition: background 0.2s;
}

.siderail-cat-pill:hover .siderail-cat-pill-dot {
    background: var(--layout-on-accent);
}

.siderail-ticker-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 1 1 240px;
    min-width: 0;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: 3px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

[data-theme="dark"] .siderail-ticker-wrap {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.siderail-ticker {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.siderail-ticker-slide {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform, opacity;
}

.siderail-ticker-slide.is-active {
    display: flex !important;
    position: relative;
    transform: translateX(0);
    opacity: 1;
}

/* Auto-sliding animations: Right to Left (Next & Auto-play) */
.siderail-ticker-slide.slide-out-left {
    display: flex !important;
    position: absolute;
    animation: siderailSlideOutLeft 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.siderail-ticker-slide.slide-in-right {
    display: flex !important;
    position: absolute;
    animation: siderailSlideInRight 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Left to Right (Prev button) */
.siderail-ticker-slide.slide-out-right {
    display: flex !important;
    position: absolute;
    animation: siderailSlideOutRight 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.siderail-ticker-slide.slide-in-left {
    display: flex !important;
    position: absolute;
    animation: siderailSlideInLeft 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes siderailSlideOutLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

@keyframes siderailSlideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes siderailSlideOutRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes siderailSlideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.siderail-ticker-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--theme-radius-2xs);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--theme-danger-bg);
    color: var(--theme-danger-text);
    flex-shrink: 0;
    line-height: 1.4;
}

.siderail-ticker-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--theme-text-strong) !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.amz-header a.siderail-ticker-link,
.siderail-ticker-text {
    color: var(--theme-text-strong) !important;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amz-header a.siderail-ticker-link:hover,
.siderail-ticker-link:hover {
    color: var(--layout-accent) !important;
    text-decoration: underline !important;
}

.siderail-ticker-arrow {
    font-size: 9px;
    opacity: 0.65;
    flex-shrink: 0;
}

.siderail-ticker-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.siderail-ticker-btn {
    background: transparent;
    border: none;
    padding: 2px 4px;
    font-size: 10px;
    color: var(--theme-text-muted);
    cursor: pointer;
    border-radius: var(--theme-radius-2xs);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.siderail-ticker-btn:hover {
    background: var(--theme-hover);
    color: var(--theme-text-strong);
}

@media(max-width:991.98px){
    body[data-storefront-header="side-rail"]{padding-inline-start:0}
    body[data-storefront-header="side-rail"] .layout-side-rail{display:none!important}
    body[data-storefront-header="side-rail"] .amz-nav-right > .amz-wishlist-nav,
    body[data-storefront-header="side-rail"] .amz-nav-right > .amz-cart-nav{display:inline-flex!important}
    .siderail-hybrid-subnav{margin-inline-start:4px}
}

/* Responsive Footer Enhancements across all layout variants */
@media(max-width:991.98px){
    :where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 16px!important;padding-inline:16px!important}
    body[data-storefront-footer="newsletter-cta"] .layout-newsletter-column{grid-column:1/-1!important;display:block!important;padding:20px!important}
    body[data-storefront-footer="minimal-centered"] .amz-footer-links{gap:24px 16px!important}
}

@media(max-width:767.98px){
    .amz-footer,
    :where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer{
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }
    :where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-links{
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 12px !important;
        padding-inline: 12px !important;
        padding-block: 28px !important;
    }
    :where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .layout-newsletter-column{
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
    body[data-storefront-footer="accordion-sitemap"] .amz-footer-links{grid-template-columns:1fr!important;gap:10px!important}
    body[data-storefront-footer="bento-grid"] .amz-footer-links{grid-template-columns:1fr!important;gap:12px!important}
    body[data-storefront-footer="bento-grid"] .amz-footer-col{border-radius:var(--theme-radius-3xl) !important;padding:16px!important}
    body[data-storefront-footer="watermark-wordmark"] .layout-footer-wordmark{font-size:clamp(2.5rem,14vw,5rem)!important;max-width:100vw!important;overflow:hidden!important}
    body[data-storefront-footer="watermark-wordmark"] .amz-footer-links{padding-block-start:60px!important}
    .layout-footer-contact{padding:14px 12px!important;gap:8px 16px!important;font-size:12px!important}
}

@media(max-width:479.98px){
    :where(body[data-storefront-footer]:not([data-storefront-footer="current"])) .amz-footer-links{
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    body[data-storefront-footer="minimal-centered"] .amz-footer-links{
        flex-direction: column !important;
        align-items: center !important;
    }
    body[data-storefront-footer="minimal-centered"] .amz-footer-col{
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    body[data-storefront-footer="gradient-wave"] .amz-footer-links{
        grid-template-columns: 1fr !important;
    }
    body[data-storefront-footer="gradient-wave"] .layout-footer-wave{
        height: 44px !important;
    }
}

/* Single-line alignment for side-rail bottom navigation bar */
body[data-storefront-header="side-rail"] .amz-header-bottom {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
    scrollbar-width: none !important;
}
body[data-storefront-header="side-rail"] .amz-header-bottom::-webkit-scrollbar {
    display: none !important;
}
body[data-storefront-header="side-rail"] .siderail-hybrid-subnav {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-inline: 8px 12px !important;
    overflow: hidden !important;
}
body[data-storefront-header="side-rail"] .siderail-cat-pills {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 1 !important;
    overflow: visible !important;
    scrollbar-width: none !important;
}
body[data-storefront-header="side-rail"] .siderail-cat-pills::-webkit-scrollbar {
    display: none !important;
}
body[data-storefront-header="side-rail"] .siderail-ticker-wrap {
    flex: 0 1 440px !important;
    max-width: 480px !important;
    min-width: 220px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}
body[data-storefront-header="side-rail"] .amz-sell-link {
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   Universal Storefront Announcement Topbar (Auto-sliding Right-to-Left)
   ========================================================================== */
.storefront-announcement-bar {
    background: var(--announcement-bg, var(--theme-chrome-bg));
    color: var(--announcement-fg, var(--theme-on-chrome));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(12px, 3vw, 32px);
    position: relative;
    z-index: 1040;
    font-size: 12px;
    overflow: hidden;
    width: 100%;
}

[data-theme="dark"] .storefront-announcement-bar {
    background: var(--announcement-bg, var(--theme-chrome-bg-strong));
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.storefront-announcement-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    position: relative;
    gap: 12px;
}

.storefront-announcement-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 24px;
    overflow: hidden;
    position: relative;
}

.storefront-announcement-slide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    top: 0;
    left: 0;
    color: var(--announcement-fg, var(--theme-on-chrome)) !important;
    will-change: transform, opacity;
}

.storefront-announcement-slide.is-active {
    display: flex !important;
    position: relative;
    transform: translateX(0);
    opacity: 1;
}

/* Slide Right-to-Left (Auto-play & Next button) */
.storefront-announcement-slide.slide-out-left {
    display: flex !important;
    position: absolute;
    animation: annSlideOutLeft 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.storefront-announcement-slide.slide-in-right {
    display: flex !important;
    position: absolute;
    animation: annSlideInRight 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Slide Left-to-Right (Prev button) */
.storefront-announcement-slide.slide-out-right {
    display: flex !important;
    position: absolute;
    animation: annSlideOutRight 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.storefront-announcement-slide.slide-in-left {
    display: flex !important;
    position: absolute;
    animation: annSlideInLeft 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes annSlideOutLeft {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}

@keyframes annSlideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes annSlideOutRight {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes annSlideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.storefront-announcement-badge {
    display: inline-flex;
    align-items: center;
    padding: 1.5px 7px;
    border-radius: var(--theme-radius-xs);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #fee2e2;
    color: #b91c1c;
    flex-shrink: 0;
    line-height: 1.3;
}

.storefront-announcement-link {
    color: var(--announcement-fg, var(--theme-on-chrome)) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-announcement-link:hover {
    color: var(--announcement-fg, var(--theme-on-chrome-strong)) !important;
    text-decoration: underline;
}

.storefront-announcement-text {
    color: var(--announcement-fg, var(--theme-on-chrome)) !important;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-announcement-arrow {
    color: var(--announcement-fg, var(--theme-on-chrome-muted));
    font-size: 11px;
    margin-left: 2px;
    flex-shrink: 0;
}

.storefront-announcement-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.storefront-announcement-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--announcement-fg, var(--theme-on-chrome-muted));
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    transition: all 0.2s ease;
}

.storefront-announcement-btn:hover {
    color: var(--announcement-fg, var(--theme-on-chrome-strong));
    background: rgba(255, 255, 255, 0.12);
}

/* Scrolling ticker style: the messages run right to left in an endless loop.
   Two identical groups, each at least as wide as the bar, slide by half the
   track, so the restart is invisible. The script sets a constant speed. */
.storefront-announcement-bar.is-ticker {
    height: 36px;
    min-height: 36px;
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 0 8px;
}

.storefront-announcement-marquee {
    container-type: inline-size;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.storefront-announcement-track {
    display: flex;
    width: max-content;
    animation: annTicker var(--announcement-duration, 30s) linear infinite;
    will-change: transform;
}

[dir="rtl"] .storefront-announcement-track {
    animation-name: annTickerRtl;
}

.is-ticker:hover .storefront-announcement-track,
.is-ticker:focus-within .storefront-announcement-track,
.is-ticker.is-paused .storefront-announcement-track {
    animation-play-state: paused;
}

.storefront-announcement-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    min-width: 100cqw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.storefront-announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-inline: 28px;
    white-space: nowrap;
}

.storefront-announcement-item::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
    margin-inline-end: 20px;
}

.is-ticker .storefront-announcement-text,
.is-ticker .storefront-announcement-link {
    overflow: visible;
    text-overflow: clip;
    font-size: 13px;
    font-weight: 600;
}

.storefront-announcement-toggle {
    flex-shrink: 0;
}

@keyframes annTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes annTickerRtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* Less motion: the messages stand still, and the copy and pause button go. */
@media (prefers-reduced-motion: reduce) {
    .storefront-announcement-track {
        animation: none;
        width: 100%;
    }
    .storefront-announcement-group {
        min-width: 0;
        width: 100%;
        overflow: hidden;
        justify-content: center;
    }
    .storefront-announcement-group[aria-hidden="true"],
    .storefront-announcement-toggle {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .storefront-announcement-bar.is-ticker {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 6px 0 0 !important;
    }
    .is-ticker .storefront-announcement-text,
    .is-ticker .storefront-announcement-link {
        font-size: 12px !important;
    }
    .storefront-announcement-item {
        padding-inline: 18px;
    }
}

@media (max-width: 767.98px) {
    .storefront-announcement-bar {
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }
    .storefront-announcement-text {
        font-size: 11px !important;
    }
    .storefront-announcement-badge {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }
    .storefront-announcement-btn {
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
    }
    .amz-header .amz-sell-link {
        display: none !important;
    }
}


/* ==========================================================================
   Mega Menu Panel Desktop Stacking Context & Overflow Elevation Fix
   ========================================================================== */
@media (min-width: 768px) {
    .amz-header:has(.mega-menu-wrap.is-open),
    .amz-header.amz-header--mega-open,
    .amz-header:has(.doshop-mega-wrap:hover) {
        z-index: 10510 !important;
    }

    .amz-header-bottom:has(.mega-menu-wrap.is-open),
    .amz-header-bottom:has(.doshop-mega-wrap:hover),
    .amz-header.amz-header--mega-open .amz-header-bottom {
        z-index: 10511 !important;
        overflow: visible !important;
    }

    .amz-header-bottom {
        overflow: visible !important;
    }

    .mega-menu-wrap.doshop-mega-wrap.is-open,
    .mega-menu-wrap.doshop-mega-wrap:hover {
        z-index: 10512 !important;
    }

    .mega-menu-panel.doshop-panel,
    .mega-menu-panel {
        z-index: 10520 !important;
    }
}
