.ann-bar {
    --ann-brand: #244034;
    --ann-accent: #2563eb;
    --ann-lime: #D2F34C;
    position: relative;
    top: auto;
    z-index: 1;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12.5px;
    line-height: 1.35;
    color: #fff;
}

.ann-bar.is-hidden-scroll {
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
}

.ann-bar--pending {
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Push overlay header + hero spacing below the in-flow bar (set by announcement-bar.js). */
body.has-ann-bar .theme-main-menu.menu-overlay {
    top: var(--ann-bar-height, 0px);
}

body.has-ann-bar .theme-main-menu.fixed {
    top: var(--ann-bar-height, 0px);
}

body.has-ann-bar .hero-banner-seven {
    padding-top: calc(240px + var(--ann-bar-height, 0px)) !important;
}

body.has-ann-bar .inner-banner-one {
    padding-top: calc(190px + var(--ann-bar-height, 0px)) !important;
}

body.has-ann-bar .ph-page .ph-hero,
body.has-ann-bar .ps-page .ps-hero,
body.has-ann-bar .pd-page,
body.has-ann-bar .plus-header-clear {
    padding-top: calc(var(--ann-page-header-base, 210px) + var(--ann-bar-height, 0px)) !important;
}

@media (max-width: 991px) {
    body.has-ann-bar .ph-page .ph-hero,
    body.has-ann-bar .ps-page .ps-hero,
    body.has-ann-bar .pd-page,
    body.has-ann-bar .plus-header-clear {
        padding-top: calc(var(--ann-page-header-base-md, 190px) + var(--ann-bar-height, 0px)) !important;
    }
}

@media (max-width: 575px) {
    body.has-ann-bar .hero-banner-seven {
        padding-top: calc(220px + var(--ann-bar-height, 0px)) !important;
    }

    body.has-ann-bar .ph-page .ph-hero,
    body.has-ann-bar .ps-page .ps-hero,
    body.has-ann-bar .pd-page,
    body.has-ann-bar .plus-header-clear {
        padding-top: calc(var(--ann-page-header-base-sm, 170px) + var(--ann-bar-height, 0px)) !important;
    }
}

.ann-bar__shell {
    position: relative;
    overflow: hidden;
}

.ann-bar__shell::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.45), transparent);
    pointer-events: none;
}

.ann-bar--premium .ann-bar__shell {
    background: linear-gradient(90deg, #0B1220 0%, #111827 45%, #1a1f2e 100%);
}

.ann-bar--offer .ann-bar__shell {
    background: linear-gradient(90deg, var(--ann-brand) 0%, #1a3d32 55%, #0f172a 100%);
}

.ann-bar--offer .ann-bar__shell::after {
    background: linear-gradient(90deg, transparent, rgba(210, 243, 76, 0.35), transparent);
}

.ann-bar--alert .ann-bar__shell {
    background: linear-gradient(90deg, #78350f 0%, #92400e 50%, #451a03 100%);
    color: #fffbeb;
}

.ann-bar--festive .ann-bar__shell {
    background: linear-gradient(90deg, #0f2e1f 0%, #14532d 50%, #0b1220 100%);
}

.ann-bar--festive .ann-bar__shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(201, 162, 39, 0.08) 50%, transparent 60%);
    animation: ann-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* ── Reference design: Product Launch (navy + sky badge + yellow CTA) ── */
.ann-bar--product-launch .ann-bar__shell {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #172554 100%);
}
.ann-bar--product-launch .ann-bar__shell::after {
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.25), transparent);
}
.ann-bar--product-launch .ann-bar__badge {
    background: #bae6fd;
    color: #0c4a6e;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    padding: 4px 10px;
}
.ann-bar--product-launch .ann-bar__message { color: #f8fafc; }
.ann-bar--product-launch .ann-bar__cta {
    background: #facc15;
    border-color: #facc15;
    color: #111827;
    border-radius: 8px;
    font-weight: 700;
}

/* ── Reference design: New Store (light gray + outlined badge + link CTA) ── */
.ann-bar--new-store .ann-bar__shell {
    background: #f3f4f6;
    color: #111827;
}
.ann-bar--new-store .ann-bar__shell::after { display: none; }
.ann-bar--new-store .ann-bar__badge {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 6px;
    font-size: 10px;
}
.ann-bar--new-store .ann-bar__message { color: #374151; }
.ann-bar--new-store .ann-bar__icon {
    background: rgba(15, 23, 42, 0.08);
    color: #374151;
}
.ann-bar--new-store .ann-bar__dismiss { color: #6b7280; }
.ann-bar--new-store .ann-bar__cta--link {
    background: transparent;
    border: none;
    color: #2563eb;
    text-decoration: underline;
    padding: 0 4px;
    border-radius: 0;
    font-weight: 600;
    box-shadow: none;
}
.ann-bar--new-store .ann-bar__cta--link:hover {
    transform: none;
    color: #1d4ed8;
    box-shadow: none;
}

/* ── Reference design: Free Shipping (dark + gold badge + yellow CTA) ── */
.ann-bar--free-shipping .ann-bar__shell {
    background: linear-gradient(90deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
}
.ann-bar--free-shipping .ann-bar__shell::after {
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.35), transparent);
}
.ann-bar--free-shipping .ann-bar__badge {
    background: transparent;
    color: #fde047;
    border: 1px solid #fde047;
    border-radius: 6px;
}
.ann-bar--free-shipping .ann-bar__message { color: #f8fafc; }
.ann-bar--free-shipping .ann-bar__cta {
    background: #facc15;
    border-color: #facc15;
    color: #111827;
    border-radius: 8px;
    font-weight: 700;
}

/* ── Reference design: Update (light + green badge + black pill CTA) ── */
.ann-bar--update .ann-bar__shell {
    background: #f3f4f6;
    color: #111827;
}
.ann-bar--update .ann-bar__shell::after { display: none; }
.ann-bar--update .ann-bar__badge {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 10px;
}
.ann-bar--update .ann-bar__message { color: #374151; }
.ann-bar--update .ann-bar__icon {
    background: rgba(15, 23, 42, 0.08);
    color: #374151;
}
.ann-bar--update .ann-bar__dismiss { color: #6b7280; }
.ann-bar--update .ann-bar__cta {
    background: #111827;
    border-color: #111827;
    color: #fff;
    border-radius: 999px;
}

/* ── Reference design: Sale (black + red badge + red CTA) ── */
.ann-bar--sale .ann-bar__shell {
    background: #000;
}
.ann-bar--sale .ann-bar__shell::after {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.35), transparent);
}
.ann-bar--sale .ann-bar__badge {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 10px;
}
.ann-bar--sale .ann-bar__message { color: #fff; }
.ann-bar--sale .ann-bar__message strong { font-weight: 700; }
.ann-bar--sale .ann-bar__cta {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
}

/* ── Reference design: Special Deal (pink-purple gradient + white CTA) ── */
.ann-bar--special-deal .ann-bar__shell {
    background: linear-gradient(90deg, #db2777 0%, #9333ea 55%, #4f46e5 100%);
}
.ann-bar--special-deal .ann-bar__shell::after { display: none; }
.ann-bar--special-deal .ann-bar__badge {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 6px;
}
.ann-bar--special-deal .ann-bar__message { color: #fff; }
.ann-bar--special-deal .ann-bar__message strong { font-weight: 700; }
.ann-bar--special-deal .ann-bar__cta {
    background: #fff;
    border-color: #fff;
    color: #111827;
    border-radius: 8px;
    font-weight: 700;
}

/* ── Reference design: Birthday / Limited (festive gradient + segmented text) ── */
.ann-bar--birthday .ann-bar__shell {
    background:
        radial-gradient(circle at 12% 20%, rgba(236, 72, 153, 0.35) 0%, transparent 35%),
        radial-gradient(circle at 88% 75%, rgba(99, 102, 241, 0.35) 0%, transparent 40%),
        linear-gradient(90deg, #7c3aed 0%, #c026d3 45%, #9333ea 100%);
}
.ann-bar--birthday .ann-bar__shell::after { display: none; }
.ann-bar--birthday .ann-bar__badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.ann-bar--birthday .ann-bar__message,
.ann-bar--birthday .ann-bar__message--segments {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}
.ann-bar--birthday .ann-bar__seg-divider {
    margin: 0 10px;
    opacity: 0.55;
    font-weight: 400;
}
.ann-bar--birthday .ann-bar__cta {
    background: #000;
    border-color: #000;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Adidas-style utility bar (black, centered, inline underlined link) ── */
.ann-bar--adidas {
    font-size: 12px;
    letter-spacing: 0.04em;
}

.ann-bar--adidas .ann-bar__shell {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ann-bar--adidas .ann-bar__shell::after {
    display: none;
}

.ann-bar--adidas .ann-bar__inner {
    padding: 5px 40px 5px 16px;
    gap: 5px;
}

.ann-bar--adidas .ann-bar__badge,
.ann-bar--adidas .ann-bar__icon {
    display: none;
}

.ann-bar--adidas .ann-bar__message-wrap {
    flex: 0 1 auto;
}

.ann-bar--adidas .ann-bar__message {
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ann-bar--adidas .ann-bar__promo {
    font-size: 10.5px;
    padding: 2px 8px;
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ann-bar--adidas .ann-bar__countdown {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ann-bar--adidas .ann-bar__cta--link {
    background: transparent;
    border: none;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0 2px;
    border-radius: 0;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: none;
}

.ann-bar--adidas .ann-bar__cta--link:hover,
.ann-bar--adidas .ann-bar__cta--link:focus-visible {
    color: #fff;
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

.ann-bar--adidas .ann-bar__dismiss {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0;
}

.ann-bar--adidas .ann-bar__dismiss:hover,
.ann-bar--adidas .ann-bar__dismiss:focus-visible {
    background: transparent;
    color: #fff;
}

.ann-bar--adidas .ann-bar__actions {
    gap: 6px;
}

.ann-bar--adidas.ann-bar--compact .ann-bar__inner {
    padding: 5px 40px 5px 14px;
}

.ann-bar--adidas.ann-bar--compact .ann-bar__compact-link {
    gap: 6px;
}

.ann-bar--adidas.ann-bar--compact .ann-bar__cta--compact {
    background: transparent;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0 2px;
    border-radius: 0;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: none;
}

.ann-bar--adidas.ann-bar--compact .ann-bar__dismiss {
    position: absolute;
    right: 10px;
}

@media (max-width: 767.98px) {
    .ann-bar--adidas .ann-bar__inner {
        padding-right: 40px;
        justify-content: center;
    }

    .ann-bar--adidas .ann-bar__message {
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .ann-bar--adidas .ann-bar__cta--link,
    .ann-bar--adidas.ann-bar--compact .ann-bar__cta--compact {
        font-size: 11px;
    }
}

/* ── Flannels-style rotating utility bar ── */
.ann-bar--flannels {
    font-size: 12px;
    letter-spacing: 0.04em;
}

.ann-bar--flannels .ann-bar__shell {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ann-bar--flannels .ann-bar__shell::after {
    display: none;
}

.ann-bar--flannels .ann-bar__inner--rotator {
    padding: 5px 44px;
    gap: 0;
    min-height: 32px;
}

.ann-bar--flannels .ann-bar__badge,
.ann-bar--flannels .ann-bar__icon {
    display: none;
}

.ann-bar--flannels .ann-bar__message {
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ann-bar--flannels .ann-bar__cta--link {
    background: transparent;
    border: none;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0 0 0 8px;
    border-radius: 0;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: none;
    white-space: nowrap;
}

.ann-bar--flannels .ann-bar__cta--link:hover,
.ann-bar--flannels .ann-bar__cta--link:focus-visible {
    color: #fff;
    opacity: 0.85;
    transform: none;
    box-shadow: none;
}

.ann-bar--flannels .ann-bar__dismiss {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0;
    z-index: 2;
}

.ann-bar--flannels .ann-bar__dismiss:hover,
.ann-bar--flannels .ann-bar__dismiss:focus-visible {
    background: transparent;
    color: #fff;
}

.ann-bar--rotator .ann-bar__inner--rotator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
}

.ann-bar__rot-viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 1.35em;
    overflow: hidden;
}

.ann-bar__rot-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
}

.ann-bar__rot-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ann-bar__rot-nav {
    all: unset;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: color 0.15s ease;
}

.ann-bar__rot-nav:hover,
.ann-bar__rot-nav:focus-visible {
    color: #fff;
    outline: none;
}

.ann-bar--flannels .ann-bar__rot-nav {
    font-size: 14px;
}

@media (max-width: 767.98px) {
    .ann-bar--flannels .ann-bar__inner--rotator {
        padding: 5px 36px;
    }

    .ann-bar--flannels .ann-bar__message {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .ann-bar--flannels .ann-bar__cta--link {
        font-size: 10px;
        padding-left: 6px;
    }

    .ann-bar__rot-nav {
        width: 24px;
        height: 24px;
    }
}

.ann-bar__message--segments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ann-bar__cta--link {
    box-shadow: none !important;
}

.ann-bar__cta--link:hover,
.ann-bar__cta--link:focus-visible {
    transform: none;
    box-shadow: none;
}

@keyframes ann-shimmer {
    0%, 100% { opacity: 0.3; transform: translateX(-30%); }
    50% { opacity: 0.7; transform: translateX(30%); }
}

.ann-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.ann-bar--compact .ann-bar__inner {
    padding: 5px 16px;
    gap: 8px;
}

.ann-bar__link-wrap {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.ann-bar__compact-link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.ann-bar--compact .ann-bar__compact-link {
    gap: 10px;
}

.ann-bar__cta--compact {
    flex: 0 0 auto;
    cursor: pointer;
}

.ann-bar--compact-clickable .ann-bar__inner {
    cursor: pointer;
}

.ann-bar__icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
}

.ann-bar__badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(201, 162, 39, 0.18);
    color: #f5e6a8;
    border: 1px solid rgba(201, 162, 39, 0.35);
    white-space: nowrap;
}

.ann-bar--offer .ann-bar__badge {
    background: rgba(210, 243, 76, 0.15);
    color: var(--ann-lime);
    border-color: rgba(210, 243, 76, 0.35);
}

.ann-bar__message-wrap {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

.ann-bar__message {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.005em;
    color: rgba(255, 255, 255, 0.92);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ann-bar--compact .ann-bar__message {
    font-size: 12px;
}

.ann-bar__promo {
    all: unset;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ann-bar__promo:hover,
.ann-bar__promo:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
    outline: none;
}

.ann-bar__promo.is-copied {
    border-style: solid;
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
}

.ann-bar__countdown {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.3);
    white-space: nowrap;
}

.ann-bar__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: #0B1220;
    background: #fff;
    border: 1px solid #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.ann-bar__cta:hover,
.ann-bar__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
    color: #0B1220;
    text-decoration: none;
    outline: none;
}

.ann-bar--offer .ann-bar__cta {
    background: var(--ann-lime);
    border-color: var(--ann-lime);
    color: var(--ann-brand);
}

.ann-bar--offer .ann-bar__cta:hover {
    background: #e8f96a;
}

.ann-bar__cta svg {
    transition: transform 0.15s ease;
}

.ann-bar__cta:hover svg {
    transform: translateX(2px);
}

.ann-bar__dismiss {
    all: unset;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ann-bar__dismiss:hover,
.ann-bar__dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
}

.ann-bar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .ann-bar__inner {
        padding: 5px 12px;
        gap: 6px;
        justify-content: flex-start;
    }

    .ann-bar__compact-link {
        gap: 8px;
        justify-content: flex-start;
    }

    .ann-bar__message-wrap {
        text-align: left;
    }

    .ann-bar__message {
        font-size: 12px;
        line-height: 1.35;
    }

    .ann-bar__cta {
        padding: 4px 10px;
        font-size: 11.5px;
    }

    .ann-bar__badge {
        font-size: 9.5px;
        padding: 2px 7px;
    }
}

@media (max-width: 479.98px) {
    .ann-bar__inner {
        padding: 5px 10px;
        gap: 5px;
    }

    .ann-bar__message {
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ann-bar,
    .ann-bar__cta,
    .ann-bar__cta svg,
    .ann-bar__rot-slide {
        transition: none;
    }

    .ann-bar--festive .ann-bar__shell::before {
        animation: none;
    }
}
