/* DW Animated Headline Header - Frontend v1.2.4
   Compatibility update: no body padding injection, no DOM moving, no scroll locking. */


@property --dwah-countdown-border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.dwah-bar,
.dwah-bar * {
    box-sizing: border-box;
}

.dwah-bar {
    --dwah-bg-start: #050505;
    --dwah-bg-end: #181818;
    --dwah-text: #ffffff;
    --dwah-muted: #d8d8d8;
    --dwah-accent: #caa759;
    --dwah-max: 1180px;
    --dwah-height: 54px;

    width: 100%;
    min-height: var(--dwah-height);
    color: var(--dwah-text);
    background:
        radial-gradient(circle at 8% 10%, rgba(202,167,89,.20), transparent 28%),
        linear-gradient(135deg, var(--dwah-bg-start), var(--dwah-bg-end));
    border-bottom: 1px solid rgba(202, 167, 89, .34);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
    z-index: 90;
    overflow: hidden;
    isolation: isolate;
    font-family: inherit;
    pointer-events: auto;
    transition: min-height .34s cubic-bezier(.22, 1, .36, 1), box-shadow .34s ease;
}

.dwah-position-sticky {
    position: sticky;
    top: 0;
}

.admin-bar .dwah-position-sticky {
    top: 32px;
}

.dwah-position-static {
    position: relative;
}

.dwah-position-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.admin-bar .dwah-position-fixed {
    top: 32px;
}

.dwah-fallback {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}

.admin-bar .dwah-fallback {
    top: 32px;
}

/* Keep common theme sidebars, carts, menus, and popups above the headline bar. */
body .widget_shopping_cart,
body .woocommerce-mini-cart,
body .cart-sidebar,
body .side-cart,
body .off-canvas,
body .offcanvas,
body .offcanvas-menu,
body .mobile-menu,
body .mobile-menu-wrapper,
body .menu-mobile,
body .nasa-static-sidebar,
body .nasa-side-sidebar,
body .nasa-side-sidebar-overlay,
body .mfp-wrap,
body .mfp-bg,
body .dialog-widget,
body .elementor-popup-modal,
body .elementor-location-popup,
body .modal,
body .modal-backdrop,
body .drawer,
body .drawer-overlay {
    z-index: 99999;
}

.dwah-bar.is-hidden {
    display: none !important;
}

.dwah-bar.has-countdown {
    min-height: calc(var(--dwah-height) + 34px);
}

.dwah-countdown {
    --dwah-countdown-scale: 1;
    position: absolute;
    top: 5px;
    left: 50%;
    z-index: 5;
    width: max-content;
    max-width: none;
    transform: translateX(-50%) scale(var(--dwah-countdown-scale));
    transform-origin: center top;
    min-height: 25px;
    padding: 3px 11px 3px 12px;
    --dwah-countdown-border-angle: 0deg;
    --dwah-countdown-surface: rgba(255,255,255,.075);
    border: 1px solid rgba(202,167,89,.30);
    border-radius: 999px;
    background: var(--dwah-countdown-surface);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 8px 22px rgba(0,0,0,.14);
    animation: dwahCountdownBorderPulse 2.8s ease-in-out infinite;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transform-style: preserve-3d;
    will-change: transform, top, padding;
    transition:
        transform .34s cubic-bezier(.22, 1, .36, 1),
        top .34s cubic-bezier(.22, 1, .36, 1),
        min-height .34s cubic-bezier(.22, 1, .36, 1),
        padding .34s cubic-bezier(.22, 1, .36, 1),
        background .28s ease,
        box-shadow .28s ease;
}

.dwah-countdown::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: -32%;
    width: 18%;
    border-radius: inherit;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
    animation: dwahCountdownShine 4.6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Border-only moving layer: the conic light is masked to the outer ring and never paints the timer interior. */
.dwah-countdown::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 1.35px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--dwah-countdown-border-angle),
        rgba(202,167,89,.08) 0deg,
        rgba(202,167,89,.16) 38deg,
        rgba(202,167,89,.58) 64deg,
        #CAA759 82deg,
        rgba(255,230,170,.96) 92deg,
        #CAA759 104deg,
        rgba(202,167,89,.46) 124deg,
        rgba(202,167,89,.10) 158deg,
        rgba(202,167,89,.08) 224deg,
        rgba(202,167,89,.40) 252deg,
        #CAA759 270deg,
        rgba(255,230,170,.90) 280deg,
        #CAA759 292deg,
        rgba(202,167,89,.30) 316deg,
        rgba(202,167,89,.08) 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: dwahCountdownBorderFlow 3.6s linear infinite;
    pointer-events: none;
}

.dwah-countdown[hidden] {
    display: none !important;
}

.dwah-countdown-label,
.dwah-countdown-values {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    white-space: nowrap;
}

.dwah-countdown-label {
    color: var(--dwah-muted);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.dwah-countdown-values {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: var(--dwah-text);
    font-variant-numeric: tabular-nums;
}

.dwah-countdown-values[hidden] {
    display: none !important;
}

.dwah-time-part {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.dwah-time-part strong {
    min-width: 16px;
    color: var(--dwah-text);
    font-size: 11.5px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
    letter-spacing: .02em;
}

.dwah-time-part small {
    color: var(--dwah-accent);
    font-size: 7px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
}

.dwah-countdown-values > i {
    color: rgba(255,255,255,.42);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.dwah-countdown.is-expired {
    --dwah-countdown-surface: rgba(202,167,89,.12);
}

.dwah-countdown.is-expired .dwah-countdown-label {
    color: var(--dwah-accent);
}

.dwah-inner {
    width: min(100% - 28px, var(--dwah-max));
    min-height: var(--dwah-height);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 3;
    padding: 8px 0;
    transition: opacity .22s ease, transform .28s ease, max-height .28s ease, padding .28s ease, min-height .28s ease;
}

.dwah-bar.has-countdown .dwah-inner {
    min-height: calc(var(--dwah-height) + 34px);
    padding-top: 37px;
}

.dwah-shine-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dwah-accent), #fff5ca, var(--dwah-accent), transparent);
    box-shadow: 0 0 18px rgba(202,167,89,.55);
    transform: translateX(-120%);
    z-index: 4;
    animation: dwahLineTravel 4.8s ease-in-out infinite;
    pointer-events: none;
}

.dwah-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(202,167,89,.62);
    background: rgba(255,255,255,.06);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 8px 22px rgba(0,0,0,.18);
    overflow: hidden;
    white-space: nowrap;
}

.dwah-badge::before {
    content: "";
    position: absolute;
    top: -70%;
    bottom: -70%;
    left: -65%;
    width: 44%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.74), transparent);
    animation: dwahBadgeShine 3.8s ease-in-out infinite;
}

.dwah-badge span {
    position: relative;
    z-index: 2;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--dwah-accent);
}

.dwah-content {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.dwah-kicker {
    color: var(--dwah-muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .86;
    white-space: nowrap;
}

.dwah-headline {
    position: relative;
    min-height: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dwah-text {
    position: absolute;
    inset: auto 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(105%);
    color: var(--dwah-text);
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .45s ease, transform .55s cubic-bezier(.22, 1, .36, 1), visibility .45s ease;
    pointer-events: none;
}

.dwah-text.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dwah-animation-fade .dwah-text {
    transform: translateY(0);
}

.dwah-animation-flip .dwah-headline {
    perspective: 650px;
}

.dwah-animation-flip .dwah-text {
    transform: rotateX(82deg) translateY(8px);
    transform-origin: center bottom;
}

.dwah-animation-flip .dwah-text.is-active {
    transform: rotateX(0deg) translateY(0);
}

.dwah-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 15px 0 17px;
    border-radius: 999px;
    color: #080808 !important;
    text-decoration: none !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .01em;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,.75), transparent 26%),
        linear-gradient(135deg, #fff7d7 0%, var(--dwah-accent) 46%, #8f7029 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.70),
        inset 0 -2px 8px rgba(83, 58, 8, .25),
        0 10px 24px rgba(202,167,89,.25),
        0 0 0 1px rgba(255,255,255,.12);
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.dwah-cta::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background:
        linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 26%, rgba(255,255,255,.68) 44%, rgba(255,255,255,.14) 58%, transparent 100%);
    transform: translateX(-145%) skewX(-18deg);
    animation: dwahButtonInnerShine 2.7s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.dwah-cta::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,.38), transparent 42%),
        radial-gradient(circle at 50% 115%, rgba(255,255,255,.30), transparent 42%);
    opacity: .88;
    z-index: 0;
    pointer-events: none;
}

.dwah-cta span,
.dwah-cta svg {
    position: relative;
    z-index: 2;
}

.dwah-cta:hover {
    transform: translateY(-1px);
    filter: saturate(1.12) brightness(1.03);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.78),
        inset 0 -2px 10px rgba(83, 58, 8, .22),
        0 15px 34px rgba(202,167,89,.34),
        0 0 0 1px rgba(255,255,255,.18);
}

.dwah-cta:hover::before {
    animation-duration: 1.35s;
}

.dwah-cta svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex: 0 0 auto;
    transition: transform .22s ease;
}

.dwah-cta:hover svg {
    transform: translateX(3px);
}

.dwah-close {
    width: 31px;
    height: 31px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
    padding: 0;
    flex: 0 0 auto;
}

.dwah-close:hover {
    transform: rotate(90deg);
    background: rgba(255,255,255,.12);
    border-color: rgba(202,167,89,.46);
}

.dwah-close span {
    width: 13px;
    height: 2px;
    border-radius: 99px;
    background: var(--dwah-text);
    position: absolute;
}

.dwah-close span:first-child {
    transform: rotate(45deg);
}

.dwah-close span:last-child {
    transform: rotate(-45deg);
}


/* Compact countdown-only state after the configured scroll distance. */
.dwah-bar.is-scroll-compact,
.dwah-bar.has-countdown.is-scroll-compact {
    min-height: 37px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .20);
}

.dwah-bar.has-countdown.is-scroll-compact .dwah-inner {
    min-height: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    overflow: hidden;
    pointer-events: none;
}

.dwah-bar.is-scroll-compact .dwah-countdown {
    position: absolute;
    top: 4px;
    left: 50%;
    width: max-content;
    max-width: none;
    min-height: 29px;
    margin: 0;
    padding: 4px 13px;
    transform: translateX(-50%) scale(var(--dwah-countdown-scale));
}

.dwah-bar.is-scroll-compact .dwah-shine-line {
    opacity: 0;
    visibility: hidden;
    animation-play-state: paused;
}

@keyframes dwahLineTravel {
    0% { transform: translateX(-120%); opacity: 0; }
    15% { opacity: 1; }
    72% { opacity: 1; }
    100% { transform: translateX(260%); opacity: 0; }
}

@keyframes dwahBadgeShine {
    0%, 42% { left: -65%; opacity: 0; }
    52% { opacity: 1; }
    76%, 100% { left: 125%; opacity: 0; }
}


@keyframes dwahCountdownBorderFlow {
    to {
        --dwah-countdown-border-angle: 360deg;
    }
}

@keyframes dwahCountdownBorderPulse {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.12),
            0 8px 22px rgba(0,0,0,.14);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14),
            0 8px 24px rgba(0,0,0,.16);
    }
}

@keyframes dwahCountdownShine {
    0%, 48% { left: -32%; opacity: 0; }
    58% { opacity: 1; }
    78%, 100% { left: 118%; opacity: 0; }
}

@keyframes dwahButtonInnerShine {
    0%, 38% {
        transform: translateX(-145%) skewX(-18deg);
        opacity: 0;
    }
    48% {
        opacity: 1;
    }
    72%, 100% {
        transform: translateX(145%) skewX(-18deg);
        opacity: 0;
    }
}

@media (max-width: 782px) {
    .admin-bar .dwah-position-sticky,
    .admin-bar .dwah-position-fixed,
    .admin-bar .dwah-fallback {
        top: 46px;
    }
}

@media (max-width: 768px) {
    .dwah-bar.has-countdown {
        min-height: calc(var(--dwah-height) + 38px);
    }

    .dwah-countdown {
        top: 5px;
        max-width: none;
        min-height: 27px;
        padding: 4px 9px 4px 10px;
        gap: 6px;
    }

    .dwah-countdown-label {
        font-size: 9px;
        letter-spacing: .055em;
    }

    .dwah-time-part strong {
        min-width: 15px;
        font-size: 11px;
    }

    .dwah-bar.has-countdown .dwah-inner {
        min-height: calc(var(--dwah-height) + 38px);
        padding-top: 41px;
    }

    .dwah-inner {
        width: min(100% - 22px, var(--dwah-max));
        grid-template-columns: 58px minmax(0, 1fr) 58px;
        gap: 8px;
        padding: 9px 0;
    }

    .dwah-badge {
        grid-column: 1;
        justify-self: start;
        max-width: 58px;
    }

    .dwah-badge span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dwah-content {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        text-align: center;
        justify-items: center;
    }

    .dwah-kicker {
        width: 100%;
        font-size: 10px;
        letter-spacing: .07em;
        text-align: center;
    }

    .dwah-headline {
        width: 100%;
        min-height: 20px;
        height: auto;
        justify-content: center;
        text-align: center;
        overflow: hidden;
    }

    .dwah-text {
        width: 100%;
        max-width: 100%;
        font-size: 12.5px;
        line-height: 1.38;
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .dwah-cta {
        display: none;
    }

    .dwah-badge {
        min-height: 30px;
        padding: 0 10px;
    }

    .dwah-badge span {
        font-size: 10px;
    }

    .dwah-close {
        grid-column: 3;
        justify-self: end;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 420px) {
    .dwah-countdown {
        max-width: none;
        gap: 5px;
    }

    .dwah-countdown-label {
        max-width: none;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        line-height: 1;
        text-align: center;
    }

    .dwah-inner {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 4px;
    }

    .dwah-badge {
        display: none;
    }

    .dwah-content {
        grid-column: 2;
    }

    .dwah-close {
        grid-column: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dwah-shine-line,
    .dwah-badge::before,
    .dwah-countdown,
    .dwah-countdown::before,
    .dwah-countdown::after,
    .dwah-cta::before {
        animation: none !important;
    }

    .dwah-text,
    .dwah-cta,
    .dwah-close,
    .dwah-cta svg {
        transition: none !important;
    }
}
