/* The two body classes override legacy snippet backgrounds only during this campaign. */
body.pgbf-active.pgbf-background {
    --pgbf-accent: #ffad39;
    --pgbf-paper: #fff7e9;
    background-color: #080808 !important;
    background-image: url('discount-pattern.svg'), radial-gradient(ellipse at 50% 0, #241a0c, #080808 65%) !important;
    background-position: center top !important;
    background-repeat: repeat, no-repeat !important;
    background-size: 390px 290px, 100% 950px !important;
    background-attachment: scroll !important;
    color: var(--pgbf-paper);
}
body.pgbf-active.pgbf-background #page,
body.pgbf-active.pgbf-background #content,
body.pgbf-active.pgbf-background #primary,
body.pgbf-active.pgbf-background #main,
body.pgbf-active.pgbf-background .site-content,
body.pgbf-active.pgbf-background .content-area,
body.pgbf-active.pgbf-background .site-main,
body.pgbf-active.pgbf-background .ast-container,
body.pgbf-active.pgbf-background .ast-woocommerce-container,
body.pgbf-active.pgbf-background .entry-content,
body.pgbf-active.pgbf-background article.page { background: transparent !important; }
body.pgbf-active.pgbf-background #content { color: var(--pgbf-paper); }
body.pgbf-active.pgbf-background .entry-content > .wp-block-group.has-background,
body.pgbf-active.pgbf-background .entry-content .pg-about,
body.pgbf-active.pgbf-background .entry-content .pgsp,
body.pgbf-active.pgbf-background .wpcf7 form {
    background: linear-gradient(145deg, #17140f, #0c0c0c) !important;
}
body.pgbf-active.pgbf-background #masthead .main-header-bar,
body.pgbf-active.pgbf-background #masthead .ast-primary-header-bar,
body.pgbf-active.pgbf-background #masthead .ast-mobile-header-wrap .ast-mobile-header-content {
    background: linear-gradient(110deg, #0b0b0b, #19140d) !important;
    border-bottom-color: #59401e !important;
}
body.pgbf-active.pgbf-background #masthead .main-header-bar::after { opacity: .25 !important; }
body.pgbf-active.pgbf-background.ast-theme-transparent-header #masthead { position: relative !important; top: auto !important; }
body.pgbf-active.pgbf-background #colophon,
body.pgbf-active.pgbf-background #pg-footer-custom { background: #0c0b09 !important; }
body.pgbf-active.pgbf-background ul.products li.product,
body.pgbf-active.pgbf-background .pg-home-card {
    background: linear-gradient(145deg, #1b1813, #0d0d0d) !important;
    border-color: #544026 !important;
}
body.pgbf-active #pgbf-banner,
body.pgbf-active #pgbf-banner * { box-sizing: border-box; }
body.pgbf-active #pgbf-banner {
    position: relative;
    display: block !important;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #d08727;
    background: url('discount-pattern.svg') center / 390px 290px repeat, radial-gradient(ellipse at 85% 50%, #42290d, #171109 35%, #080808 75%);
    color: var(--pgbf-paper);
}
body.pgbf-active .pgbf-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1220px;
    margin: auto;
    padding: 32px 30px;
}
body.pgbf-active #pgbf-banner .pgbf-banner__eyebrow {
    margin: 0 0 10px;
    color: #e6bc80 !important;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
body.pgbf-active #pgbf-banner .pgbf-banner__title {
    margin: 0 0 13px;
    color: var(--pgbf-paper) !important;
    font-family: Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(32px, 4.1vw, 58px);
    font-weight: 800;
    line-height: .99;
    letter-spacing: .025em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
body.pgbf-active .pgbf-banner__title span { display: block; color: var(--pgbf-accent); }
body.pgbf-active #pgbf-banner .pgbf-banner__description {
    margin: 0 0 8px;
    color: #f5ebdc !important;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
}
body.pgbf-active .pgbf-banner__deadline {
    display: inline-block;
    color: #d3c1a8;
    font-size: 12px;
    line-height: 1.5;
}
body.pgbf-active .pgbf-banner__discount {
    flex-shrink: 0;
    color: var(--pgbf-accent);
    font: 800 clamp(70px, 10vw, 138px)/.85 Impact, 'Arial Narrow', sans-serif;
    letter-spacing: -.02em;
    transform: rotate(-7deg);
    text-align: center;
}
body.pgbf-active .pgbf-banner__discount > span { font-size: .55em; }
body.pgbf-active .pgbf-banner__discount small {
    display: block;
    margin-top: 15px;
    color: #f8ead3;
    font: 700 10px/1.4 sans-serif;
    letter-spacing: .18em;
}
body.pgbf-active .pgbf-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
    max-width: 100%;
    padding-top: 12px;
}
body.pgbf-active .pgbf-price del {
    display: inline-block !important;
    position: relative;
    isolation: isolate;
    color: #ffe3b0 !important;
    opacity: 1 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    text-decoration: line-through !important;
    text-decoration-color: #ff7947 !important;
    text-decoration-thickness: 2px !important;
    text-shadow: 0 0 3px #ff6a24, 0 -2px 8px #ff4d00;
    animation: pgbf-ember-glow 2.4s ease-in-out infinite alternate;
}
/* Decorative flames sit behind the readable original price, without extra markup. */
body.pgbf-active .pgbf-price del::before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: -4px;
    right: -4px;
    bottom: 1px;
    height: 36px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop stop-color='%23e83209'/%3E%3Cstop offset='.48' stop-color='%23ff781b'/%3E%3Cstop offset='1' stop-color='%23ffe9a0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23f)' d='M0 48C1 35 6 40 7 29C9 20 4 20 10 8C9 22 23 20 17 35C23 31 27 25 24 14C33 24 26 30 34 35C34 22 43 24 41 1C56 16 42 25 55 34C54 20 65 25 64 11C78 26 62 31 73 36C76 25 86 24 86 5C98 25 87 28 96 38L100 48Z'/%3E%3Cpath fill='%23ffdb71' opacity='.8' d='M8 48Q8 39 13 34Q12 43 23 48ZM32 48Q32 37 41 27Q38 40 50 48ZM61 48Q60 39 66 34Q65 42 75 48ZM80 48Q79 37 87 29Q85 41 95 48Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    opacity: .8;
    transform-origin: center bottom;
    animation: pgbf-flame-sway 1.8s ease-in-out infinite alternate;
}
body.pgbf-active .pgbf-price del::after {
    content: '';
    position: absolute;
    pointer-events: none;
    inset: -14px 0 4px;
    background: radial-gradient(circle at 16% 65%, #ffbc66 0 1px, transparent 1.5px), radial-gradient(circle at 53% 44%, #ffe6ac 0 1px, transparent 1.5px), radial-gradient(circle at 84% 75%, #ff9c48 0 1px, transparent 1.5px);
    animation: pgbf-sparks-rise 2.7s ease-out infinite;
}
@keyframes pgbf-flame-sway {
    0% { transform: scaleY(.76) skewX(-3deg); opacity: .58; }
    45% { transform: scaleY(1) skewX(2deg); opacity: .8; }
    100% { transform: scaleY(.88) skewX(-1deg); opacity: .68; }
}
@keyframes pgbf-ember-glow {
    from { text-shadow: 0 0 3px #ff6a24, 0 -2px 7px #ff4d00; }
    to { text-shadow: 0 0 4px #ffb454, 0 -3px 11px #f4510b; }
}
@keyframes pgbf-sparks-rise {
    0% { transform: translateY(4px); opacity: 0; }
    25% { opacity: .85; }
    100% { transform: translateY(-9px); opacity: 0; }
}
body.pgbf-active .pgbf-price del * {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    opacity: 1 !important;
}
body.pgbf-active .pgbf-price ins {
    display: inline !important;
    color: var(--pgbf-accent) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    background: transparent !important;
}
body.pgbf-active .pgbf-price ins * { color: inherit !important; font-size: inherit !important; }
/* Keep the campaign badge; hide duplicate theme labels only on eligible cards. */
body.pgbf-active .pgbf-sale-card .pgbf-replaced-sale-label { display: none !important; }
body.pgbf-active .pgbf-thumbnail { position: relative; }
body.pgbf-active .pgbf-badge,
body.pgbf-active .woocommerce span.onsale.pgbf-badge {
    position: absolute !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    top: 9px !important;
    left: 9px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 4;
    min-width: 62px !important;
    min-height: 31px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid #ffcd84 !important;
    border-radius: 3px !important;
    background: linear-gradient(120deg, #ff8f25, #ffc163) !important;
    color: #160c00 !important;
    box-shadow: 0 3px 12px #0008;
    font: 800 13px/1.2 sans-serif !important;
    text-align: center;
    text-decoration: none !important;
    pointer-events: none;
}
body.pgbf-active .pgbf-footer-strip {
    padding: 17px 20px;
    border-top: 1px solid #59401e;
    background: #0b0b0b;
    color: #c8bca9;
    text-align: center;
    font: 500 11px/1.7 sans-serif;
    letter-spacing: .07em;
}
body.pgbf-active .pgbf-footer-strip span { color: var(--pgbf-accent); font-weight: 800; margin: 0 10px; }
@media (prefers-reduced-motion: reduce) {
    body.pgbf-active .pgbf-price del,
    body.pgbf-active .pgbf-price del::before,
    body.pgbf-active .pgbf-price del::after { animation: none !important; }
    body.pgbf-active .pgbf-price del::after { display: none; }
}
@media (max-width: 767px) {
    body.pgbf-active .pgbf-banner__inner { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 0 10px; padding: 24px 14px; }
    body.pgbf-active .pgbf-banner__copy { display: contents; }
    body.pgbf-active #pgbf-banner .pgbf-banner__eyebrow { grid-column: 1 / -1; }
    body.pgbf-active #pgbf-banner .pgbf-banner__title { grid-column: 1 / -1; }
    body.pgbf-active #pgbf-banner .pgbf-banner__description { grid-column: 1; grid-row: 3; }
    body.pgbf-active .pgbf-banner__deadline { grid-column: 1; grid-row: 4; }
    body.pgbf-active .pgbf-banner__discount { grid-column: 2; grid-row: 3 / 5; }
    body.pgbf-active .pgbf-banner__copy { min-width: 0; }
    body.pgbf-active #pgbf-banner .pgbf-banner__eyebrow { font-size: 9px; letter-spacing: .1em; }
    body.pgbf-active #pgbf-banner .pgbf-banner__title { font-size: clamp(26px, 6.8vw, 40px); }
    body.pgbf-active #pgbf-banner .pgbf-banner__description { font-size: 12px; }
    body.pgbf-active .pgbf-banner__deadline { font-size: 10px; }
    body.pgbf-active .pgbf-banner__discount { font-size: clamp(52px, 15vw, 90px); }
    body.pgbf-active .pgbf-banner__discount small { font-size: 8px; letter-spacing: .04em; margin-top: 9px; }
    body.pgbf-active .pgbf-badge { min-width: 52px !important; min-height: 27px !important; top: 6px !important; left: 6px !important; padding: 5px 7px !important; font-size: 11px !important; }
}
@media print {
    body.pgbf-active .pgbf-price del { animation: none !important; text-shadow: none !important; }
    body.pgbf-active .pgbf-price del::before,
    body.pgbf-active .pgbf-price del::after { display: none !important; }
    body.pgbf-active #pgbf-banner,
    body.pgbf-active .pgbf-badge,
    body.pgbf-active .pgbf-footer-strip { display: none !important; }
}
