.lpwps-group { width: 100%; }
.lpwps-group-bar { position: relative; z-index: 99998; }
.lpwps-group-bar.is-sticky-group { position: sticky; top: 0; z-index: 99999; }
.admin-bar .lpwps-group-bar.is-sticky-group { top: 32px; }
.lpwps-group-bar:empty, .lpwps-group-product:empty { display: none !important; }
.lpwps-fallback { position: relative; }

.lpwps-promo {
    --lpwps-bg: #111827;
    --lpwps-text: #fff;
    --lpwps-accent: #f59e0b;
    --lpwps-surface: #fff8e7;
    --lpwps-radius: 12px;
    display: none;
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
}
.lpwps-promo.is-active { display: block; }
.lpwps-promo *, .lpwps-promo *::before, .lpwps-promo *::after { box-sizing: border-box; }

.lpwps-promo-bar {
    background: var(--lpwps-bg);
    color: var(--lpwps-text);
    box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 18px rgba(0,0,0,.10);
}

.lpwps-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    min-height: 46px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
}
.lpwps-copy { min-width: 0; text-align: center; }
.lpwps-message { font-size: 15px; font-weight: 750; line-height: 1.25; letter-spacing: .005em; }
.lpwps-subtext { margin-top: 2px; font-size: 12.5px; line-height: 1.3; opacity: .86; }

.lpwps-countdown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
}
.lpwps-countdown-label { opacity: .82; }
.lpwps-time {
    padding: 6px 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.12);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: .025em;
}

.lpwps-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 31px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--lpwps-accent);
    color: #111 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 800;
    transition: transform .14s ease, filter .14s ease;
}
.lpwps-cta:hover { filter: brightness(.96); transform: translateY(-1px); }
.lpwps-cta:focus-visible, .lpwps-close:focus-visible, .lpwps-code:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.lpwps-code {
    appearance: none;
    border: 1px dashed currentColor;
    background: transparent;
    color: inherit;
    border-radius: 8px;
    padding: 5px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    font: inherit;
}
.lpwps-code-label { font-size: 10px; opacity: .72; text-transform: uppercase; letter-spacing: .06em; }
.lpwps-code strong { font-size: 12px; letter-spacing: .035em; }

.lpwps-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .72;
    font-size: 24px;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}
.lpwps-close:hover { opacity: 1; }

.lpwps-promo-product {
    color: #242424;
    background: var(--lpwps-surface);
    border: 1px solid rgba(0,0,0,.10);
    border-color: color-mix(in srgb, var(--lpwps-accent) 42%, transparent);
    border-left: 4px solid var(--lpwps-accent);
    border-radius: var(--lpwps-radius);
    margin: 10px 0 18px;
    box-shadow: 0 7px 24px rgba(0,0,0,.055);
}
.lpwps-promo-product .lpwps-inner {
    min-height: 0;
    padding: 13px 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
}
.lpwps-promo-product .lpwps-copy { text-align: left; flex: 1 1 220px; }
.lpwps-promo-product .lpwps-message { font-size: 15px; }
.lpwps-promo-product .lpwps-subtext { color: #555; opacity: 1; }
.lpwps-promo-product .lpwps-countdown { color: #333; }
.lpwps-promo-product .lpwps-time { background: rgba(0,0,0,.06); }
.lpwps-promo-product .lpwps-code { color: #333; }
.lpwps-promo-product .lpwps-close { color: #333; margin-left: auto; }

@media (max-width: 782px) {
    .admin-bar .lpwps-group-bar.is-sticky-group { top: 46px; }
}

@media (max-width: 700px) {
    .lpwps-promo-bar .lpwps-inner {
        min-height: 0;
        padding: 8px 36px 8px 10px;
        gap: 7px 9px;
        flex-wrap: wrap;
    }
    .lpwps-promo-bar .lpwps-copy { flex: 1 1 100%; padding: 0 2px; }
    .lpwps-promo-bar .lpwps-message { font-size: 13.5px; line-height: 1.25; }
    .lpwps-promo-bar .lpwps-subtext { font-size: 11.5px; }
    .lpwps-promo-bar .lpwps-countdown { font-size: 11px; }
    .lpwps-promo-bar .lpwps-countdown-label { display: none; }
    .lpwps-promo-bar .lpwps-time { padding: 5px 7px; }
    .lpwps-promo-bar .lpwps-code { padding: 4px 7px; }
    .lpwps-promo-bar .lpwps-cta { min-height: 28px; padding: 5px 9px; font-size: 11.5px; }
    .lpwps-promo-bar .lpwps-close { position: absolute; right: 4px; top: 4px; }
}

@media (max-width: 420px) {
    .lpwps-promo-bar .lpwps-inner { gap: 6px; }
    .lpwps-promo-bar .lpwps-subtext { display: none; }
    .lpwps-promo-bar .lpwps-time { font-size: 10.5px; letter-spacing: 0; }
    .lpwps-code-label { display: none; }
    .lpwps-promo-product .lpwps-inner { padding: 12px; }
    .lpwps-promo-product .lpwps-copy { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .lpwps-cta { transition: none; }
}
