.pem-privacy-panel[hidden],.pem-offer-strip[hidden]{display:none!important}
.pem-privacy-panel,.pem-offer-strip{position:fixed;z-index:10000;background:var(--wine);color:white;box-shadow:0 12px 40px #102a4055;border-radius:16px}
.pem-privacy-panel{inset:auto 1rem 1rem auto;width:min(30rem,calc(100% - 2rem));padding:1rem 1.2rem;box-sizing:border-box}
.pem-privacy-panel p{margin:0 0 .75rem;font-size:.9rem}.pem-privacy-panel a,.pem-offer-strip a{color:white;text-decoration:underline}
.pem-privacy-panel button,.pem-cookie-settings{background:white;color:var(--claret);border:1px solid currentColor;border-radius:8px;padding:.45rem .75rem;cursor:pointer}
.pem-privacy-panel button{margin:.2rem .25rem .2rem 0}.pem-cookie-settings{margin:.5rem 1rem;font-size:.85rem}
.pem-offer-strip{left:1rem;bottom:1rem;display:flex;gap:.65rem;align-items:center;padding:.45rem .7rem;max-width:calc(100vw - 2rem);box-sizing:border-box}
.pem-offer-strip a{font-weight:700;font-size:.9rem}.pem-offer-strip span{display:inline-block;margin-left:.4rem;font-variant-numeric:tabular-nums}.pem-offer-strip button,.pem-offer-copy button{border:0;background:none;color:inherit;font-size:1.6rem;cursor:pointer;padding:.15rem .5rem}
.pem-offer-modal{box-sizing:border-box;width:min(48rem,calc(100% - 2rem));border:1px solid #ede9e0;border-radius:22px;background:radial-gradient(ellipse at 85% 20%,#f3ede3,#f7f5f1 65%);color:var(--jm-color-ink);padding:clamp(1.4rem,4vw,2.5rem);overflow:auto;max-height:90vh}
.pem-offer-modal[open]{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:1rem}.pem-offer-modal::backdrop{background:#102b46aa}.pem-offer-modal img{width:100%;height:auto;object-fit:contain}.pem-offer-copy button{position:absolute;top:.35rem;right:.55rem}.pem-offer-copy h2{line-height:1.05;margin:.45rem 0;font-size:clamp(1.6rem,4vw,2.7rem)}.pem-offer-copy strong{display:block;color:#94723e;font-size:1.65em}.pem-offer-timer{font-weight:700;font-variant-numeric:tabular-nums}
@media(max-width:560px){.pem-offer-modal[open]{grid-template-columns:1fr}.pem-offer-modal img{max-height:26vh;width:auto;justify-self:center;grid-row:1}.pem-privacy-panel:not([hidden])~.pem-offer-strip{visibility:hidden}}

.pem-privacy-panel{display:block;line-height:1.5;overflow-wrap:anywhere;padding:1.15rem 1.25rem;border:1px solid #d2b892}
.pem-privacy-panel h2{font:700 1.25rem/1.25 var(--h-serif,serif);margin:0 0 .45rem;color:white}
.pem-privacy-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.pem-privacy-actions button{flex:1 1 11rem;min-width:0;max-width:100%;margin:0;white-space:normal;font-weight:700;padding:.55rem .65rem}
.pem-privacy-actions button:first-child{background:#e3d4bd;border-color:#e3d4bd;color:#3a3021}
.pem-privacy-actions button:last-child{background:transparent;color:#fff}
.pem-offer-modal{width:min(59rem,calc(100% - 2rem));background:radial-gradient(ellipse at 89% 22%,#ffe7a0 0,transparent 49%),linear-gradient(145deg,#fff9e9,#e2f2ee);border:2px solid #cdb186;box-shadow:0 24px 100px #102b4670}
.pem-offer-copy h2{font-size:clamp(2rem,5vw,3.65rem);color:var(--jm-color-ink)}
.pem-offer-copy h2 strong{font-size:1.7em;color:#93713e;text-shadow:0 3px #e3d3bb}
.pem-offer-copy p{font-size:clamp(1rem,2vw,1.2rem);line-height:1.45}
.pem-offer-clock{margin:1rem 0 1.25rem}.pem-offer-clock>p{margin:0 0 .45rem;font-weight:700;color:var(--jm-color-ink)}
.pem-offer-timer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.25rem,1vw,.55rem);text-align:center}
.pem-offer-timer>div{background:var(--wine);color:#fff;border-radius:12px;padding:.45rem .15rem}
.pem-offer-timer>div:first-child{background:#93713e;color:#fff9df}.pem-offer-timer>div:last-child{background:#e2d1b9;color:#3b2d19}
.pem-offer-timer b,.pem-offer-timer small{display:block}.pem-offer-timer b{font-size:clamp(1.55rem,4.8vw,2.65rem);line-height:1.05}.pem-offer-timer small{font-size:clamp(.66rem,1.6vw,.86rem);margin-top:.25rem}
.pem-offer-strip{background:var(--wine);border:1px solid #cdb186}.pem-offer-strip span{background:#e3d4bd;color:#3b2d19;border-radius:6px;padding:.15rem .35rem;font-weight:800}
@media(max-width:560px){.pem-offer-modal img{max-height:19vh}.pem-offer-modal{padding:1rem}.pem-privacy-panel{bottom:max(1rem,env(safe-area-inset-bottom))}}
.pem-offer-strip a{min-width:0;text-decoration:none}
.pem-offer-strip a:hover{text-decoration:underline}
.pem-offer-strip__note{display:block;margin-top:.3rem;color:#f3ece2;font-size:.77rem;font-weight:500;line-height:1.35}
.pem-offer-strip>img,.pem-offer-strip>button{flex:none}

/* Shared holiday card palette. */
.pem-offer-modal,.pem-offer-strip{
  --pem-offer-paper:linear-gradient(135deg,#fff9e9 0%,#faedc8 58%,#e7efe3 100%);
  --pem-offer-ink:var(--jm-color-ink);
  --pem-offer-red:#916f3d;
  background:var(--pem-offer-paper);
  color:var(--pem-offer-ink);
  border:1px solid #ccaf84;
}
.pem-offer-modal{width:min(50rem,calc(100% - 2rem));padding:clamp(1.25rem,3.4vw,2.25rem);border-radius:24px}
.pem-offer-modal[open]{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:1rem}
.pem-offer-copy>p:first-of-type{display:inline-block;margin:0 0 .35rem;padding:.3rem .65rem;border-radius:99px;background:#f9f5f0;color:#6f552e;font-size:.79rem;font-weight:750;letter-spacing:.035em}
.pem-offer-copy h2{font-size:clamp(1.65rem,4vw,2.8rem);margin:.35rem 0 .7rem;letter-spacing:-.025em}
.pem-offer-copy h2 strong{color:var(--pem-offer-red);font-size:1.65em}
.pem-offer-copy>p:nth-of-type(2){margin:.65rem 0;font-size:clamp(.94rem,1.6vw,1.06rem)}
.pem-offer-copy [data-pem-offer-close],.pem-offer-strip [data-pem-offer-hide]{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #ccb38e;border-radius:50%;background:#fff9e9;color:var(--pem-offer-ink);line-height:1}
.pem-offer-copy [data-pem-offer-close]{top:.65rem;right:.65rem}
.pem-offer-copy .h-btn{border-radius:12px;background:var(--pem-offer-red);color:#fff}
.pem-offer-copy .h-btn:hover{background:#72572f;color:#fff}
.pem-offer-timer>div:nth-child(3){background:var(--wine)}
.pem-offer-strip{padding:.55rem .65rem;border-radius:16px;box-shadow:0 8px 24px #183e5830}
.pem-offer-strip a{color:var(--pem-offer-ink)}
.pem-offer-strip span{background:#fff7e2;color:var(--pem-offer-red);margin:.12rem 0 .12rem .35rem}
.pem-offer-strip__note{color:var(--pem-offer-ink)}
@media(max-width:560px){
  .pem-offer-modal[open]{grid-template-columns:minmax(0,1fr);gap:.45rem}
  .pem-offer-modal{max-height:calc(100dvh - 2rem)}
  .pem-offer-modal img{max-height:16vh}
  .pem-offer-strip [data-pem-offer-hide]{width:32px;height:32px}
}

.pem-offer-copy > .pem-offer-deadline:first-of-type{
  max-width:100%;box-sizing:border-box;margin:0 0 .65rem;
  padding:.5rem .85rem;border-radius:10px;
  background:var(--wine);color:#fff9e9;
  font-size:clamp(1rem,2.3vw,1.3rem);font-weight:800;
  line-height:1.3;letter-spacing:0;
}

.pem-offer-home{background:linear-gradient(135deg,#fff9e9,#faedc8 58%,#e7efe3);color:var(--jm-color-ink);border-bottom:1px solid #ccaf84;padding:clamp(.8rem,2vw,1.35rem) 0}
.pem-offer-home[hidden]{display:none!important}
.pem-offer-home__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(14rem,20rem) auto;gap:clamp(.7rem,2vw,1.8rem);align-items:center}
.pem-offer-home__copy h2{margin:0;color:var(--jm-color-ink);font-size:clamp(1.3rem,3vw,2rem);line-height:1.15}
.pem-offer-home__copy h2 strong{color:#916f3d;font-size:1.35em}
.pem-offer-home__copy p{margin:.2rem 0 0;font-size:.9rem}
.pem-offer-home__copy .pem-offer-home__deadline{font-size:1.08rem;font-weight:800}
.pem-offer-home .pem-offer-clock{margin:0}
.pem-offer-home .pem-offer-timer b{font-size:clamp(1.15rem,2.6vw,1.6rem)}
.pem-offer-home .h-btn{background:#916f3d;color:white;border-radius:12px;justify-self:start}
@media(max-width:820px){.pem-offer-home__inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:560px){.pem-offer-home__inner{grid-template-columns:minmax(0,1fr);gap:.65rem}.pem-offer-home .pem-offer-timer{max-width:22rem}}

/* Homepage promotion: one banner, two layouts. */
.pem-offer-home{padding:0;border:0;background:none;font-family:var(--h-sans)}
.pem-offer-home__inner.h-shell{width:100%;max-width:none;margin:0;box-sizing:border-box;
  padding:1rem max(1rem,calc((100% - min(82%, 1320px))/2));
  grid-template-columns:clamp(68px,10vw,144px) minmax(15rem,1fr) minmax(12rem,19rem) auto;
  gap:clamp(.65rem,1.5vw,1.5rem);border-bottom:1px solid #caac80;
  background:radial-gradient(ellipse at 15% 0%,#fffdf5,transparent 55%),linear-gradient(105deg,#f3ece1,#f9e7b6 65%,#e3eee0)}
.pem-offer-home__art{display:block;width:100%;height:clamp(80px,9vw,125px);object-fit:contain}
.pem-offer-home__copy h2{font:700 clamp(1.25rem,2.25vw,2.05rem)/1.15 var(--h-serif)}
.pem-offer-home__copy h2 strong{font-family:var(--h-sans)}
.pem-offer-home__copy .pem-offer-home__deadline{display:inline-block;background:#f9f5ef;border:1px solid #caac80;border-radius:8px;color:#6a512c;padding:.18rem .5rem;font-size:.95rem;font-weight:700}
.pem-offer-home .h-btn{min-height:44px;white-space:nowrap;padding:.65rem 1rem;line-height:1.2}
.pem-offer-home .h-btn:hover{background:#745930;color:#fff}
.pem-offer-home .h-btn:focus-visible{outline:3px solid var(--jm-color-focus);outline-offset:3px}
.pem-offer-home.is-compact .pem-offer-home__inner{padding-block:.3rem;grid-template-columns:44px minmax(0,1fr) minmax(10rem,14rem) auto;box-shadow:0 4px 16px #132c2526}
.pem-offer-home.is-compact .pem-offer-home__art{height:44px}
.pem-offer-home.is-compact .pem-offer-home__copy h2{font-size:clamp(.88rem,1.55vw,1.25rem)}
.pem-offer-home.is-compact .pem-offer-home__copy p{display:none}
.pem-offer-home.is-compact .pem-offer-home__copy .pem-offer-home__deadline{display:block;border:0;padding:0;background:none;font-size:.78rem}
.pem-offer-home.is-compact .pem-offer-clock>p{display:none}
.pem-offer-home.is-compact .pem-offer-timer>div{padding:.2rem .15rem;border-radius:6px}
.pem-offer-home.is-compact .pem-offer-timer b{font-size:1rem}
.pem-offer-home.is-compact .pem-offer-timer small{font-size:.65rem}
@media(max-width:960px){
  .pem-offer-home__inner.h-shell{padding-inline:1rem;grid-template-columns:80px minmax(0,1fr) minmax(11rem,15rem)}
  .pem-offer-home:not(.is-compact) .h-btn{grid-column:2}
}
@media(max-width:640px){
  .pem-offer-home__inner.h-shell{grid-template-columns:60px minmax(0,1fr);padding:.75rem;gap:.5rem}
  .pem-offer-home:not(.is-compact) .pem-offer-clock{grid-column:1/-1}
  .pem-offer-home:not(.is-compact) .h-btn{grid-column:1/-1}
  .pem-offer-home.is-compact .pem-offer-home__inner{grid-template-columns:minmax(0,1fr) auto;gap:.3rem .5rem}
  .pem-offer-home.is-compact .pem-offer-home__art{display:none}
  .pem-offer-home.is-compact .pem-offer-clock{grid-row:2;grid-column:1/-1}
  .pem-offer-home.is-compact .h-btn{grid-row:1;grid-column:2;padding-inline:.55rem;font-size:.76rem}
}

.pem-offer-home.is-pinned .pem-offer-home__inner{position:fixed;inset:var(--pem-promo-top,0px) 0 auto;z-index:35}

@media(max-width:640px){
  .pem-offer-home.is-compact .pem-offer-home__inner{grid-template-columns:32px minmax(0,1fr) auto}
  .pem-offer-home.is-compact .pem-offer-home__art{display:block;grid-row:1;grid-column:1;height:32px}
  .pem-offer-home.is-compact .pem-offer-home__copy{grid-row:1;grid-column:2}
  .pem-offer-home.is-compact .h-btn{grid-column:3}
}

@media (max-width: 782px) {
    html:has(#pem-offer-home:not([hidden])) {
        scroll-padding-top: calc(3.25rem + var(--wp-admin--admin-bar--height, 0px));
    }
    #pem-offer-home .pem-offer-home__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
        padding: 3px max(12px, env(safe-area-inset-right)) 3px max(12px, env(safe-area-inset-left));
    }
    #pem-offer-home .pem-offer-home__art,
    #pem-offer-home .pem-offer-clock,
    #pem-offer-home .pem-preorder-banner-note {
        display: none;
    }
    #pem-offer-home .pem-offer-home__copy {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0 .35rem;
        min-width: 0;
    }
    #pem-offer-home h2 {
        margin: 0;
        font-size: 1rem;
        line-height: 1.2;
    }
    #pem-offer-home .pem-offer-home__deadline {
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--jm-color-ink);
        font-size: .875rem;
        line-height: 1.3;
        text-transform: lowercase;
    }
    /* Keep the full offer and the inclusive deadline in the accessible text. */
    #pem-offer-home .pem-offer-home__detail {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    #pem-offer-home .h-btn {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        padding-inline: .65rem;
        white-space: nowrap;
    }
}

#pem-cookie .pem-privacy-actions button {
    --control-bg: #fff;
    --control-hover: #f3efe7;
    --control-text: var(--claret);
    --control-border: #e2dac9;
}
@media (max-width: 640px) {
    #pem-cookie {
        inset: auto max(.5rem, env(safe-area-inset-right)) max(.5rem, env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
        width: auto;
        padding: .65rem .8rem;
    }
    #pem-cookie h2 { margin: 0 0 .2rem; font-size: 1rem; }
    #pem-cookie p { margin: 0 0 .45rem; font-size: .875rem; line-height: 1.35; }
    #pem-cookie .pem-privacy-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
    #pem-cookie .pem-privacy-actions button { padding: .35rem .45rem; }
}
@media (max-width: 782px) and (scripting: none) {
    html:has(#pem-offer-home:not([hidden])) {
        scroll-padding-top: auto;
    }
    #pem-offer-home .pem-offer-clock {
        display: none;
    }
}

.pem-product-card__image { position: relative; }
.pem-holiday-ornament,
.wc-block-components-product-sale-badge.pem-holiday-ornament {
    --pem-ornament-size:clamp(3.6rem, 14vw, 5.15rem);
    position:absolute; z-index:3; inset:.45rem .5rem auto auto;
    display:block; width:var(--pem-ornament-size); min-width:0; height:auto; min-height:0; aspect-ratio:90/94;
    padding:0; margin:0; border:0; border-radius:0; pointer-events:none; box-sizing:border-box;
    background:transparent none var(--pem-ornament-position, 0%) center / 300% 100% no-repeat;
    filter:drop-shadow(0 3px 4px rgba(33,24,17,.19));
}
.pem-holiday-ornament--soldier {--pem-ornament-position:50%}
.pem-holiday-ornament--bell {--pem-ornament-position:100%}
.pem-holiday-ornament :is(.pem-ornament-value,.wc-block-components-product-sale-badge__text) {
    position:absolute; left:0; right:0; top:58%; transform:translateY(-50%);
    color:#fff9e8; font:800 calc(var(--pem-ornament-size) * .215)/1 system-ui,sans-serif;
    text-align:center; text-transform:none; letter-spacing:-.025em; text-shadow:0 1px 2px #332715;
}
.pem-ornament-value small {position:absolute;bottom:100%;left:0;right:0;color:inherit;font-size:.63em;line-height:1.1}
.wc-block-components-product-sale-badge.pem-holiday-ornament {position:relative;inset:auto;}
.wc-block-components-product-sale-badge.pem-holiday-ornament .wc-block-components-product-sale-badge__text {font-size:calc(var(--pem-ornament-size) * .18);}
.pem-home-catalog__image,.pem-extra-image {position:relative;}
.pem-home-catalog__image>.pem-holiday-ornament {--pem-ornament-size:48px;inset:0 -2px auto auto}
.pem-quiz__media>.pem-holiday-ornament {--pem-ornament-size:52px;inset:0 0 auto auto}
.pem-extra-image {display:block;}
.pem-extra-image:has(.pem-holiday-ornament) {padding-bottom:18px;}
.pem-extra-image>.pem-holiday-ornament {--pem-ornament-size:43px;inset:auto 0 0 auto}
@media(forced-colors:active){.pem-holiday-ornament{forced-color-adjust:none;}}
.pem-holiday-from { display:block; font-size:.72em; font-weight:600; }
.pem-product-card__price del, .single-product .summary .price del,
.pem-size-choice__price del { color:var(--pem-price-before-sale); opacity:1; font-weight:500; font-size:.8em; }
.pem-product-card__price ins, .single-product .summary .price ins,
.pem-size-choice__price ins { color:#89693a; font-weight:800; text-decoration:none; }
.pem-size-choice__price del, .pem-size-choice__price ins { display:block; white-space:nowrap; }

.h-footer .pem-cookie-settings { background:transparent; color:inherit; border:0; margin:0; padding:.35rem .15rem; font:inherit; text-decoration:underline; text-underline-offset:.2em; }
.pem-product-card__price:has(ins) {display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:.15em .5em;background:#fbf9f5;padding:.45rem .8rem;border-radius:12px;border:1px solid #eee4d5}
.pem-product-card__price:has(ins) .pem-holiday-from {flex-basis:100%;color:#756246}
.pem-product-card__price:has(ins) ins {font-size:clamp(1.2rem,2vw,1.65rem)}
.pem-product__gallery {position:relative}
.pem-product__gallery .pem-holiday-ornament {inset:1rem auto auto 1rem;z-index:4}
.pem-product--variable .pem-product__summary:has(.pem-size-choices--has-prices)>p.price,
.pem-product--variable .pem-product__summary:has(.pem-size-choices--has-prices) .woocommerce-variation-price {display:none}
.pem-product__summary .pem-size-choice__price ins .amount {color:#89693a}

.pem-product__summary .reset_variations {display:inline-flex;border:1px solid #c4b69b;border-radius:8px;padding:.35rem .65rem;text-decoration:underline;text-underline-offset:.2em}
.pem-product__summary .pem-offer-product {display:inline-block;background:#f5efe6;color:#6f552f;border-radius:999px;padding:.35rem .75rem;font-weight:650;font-size:.875rem}
.pem-product .pem-product-service {background:none;border:0;padding:0;gap:clamp(12px,1.6vw,24px);margin-top:clamp(20px,2.4vw,32px);grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:700px) {
    .pem-product .pem-product-service {grid-template-columns:1fr}
}
.pem-product .pem-product-service > div {display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;background:#fff;border:1px solid #e3dbcb;border-radius:14px;padding:.85rem}
.pem-product .pem-product-service a {margin-top:auto;display:inline-block;border:1px solid #d1c3a8;border-radius:8px;padding:.45rem .65rem;text-decoration:underline;text-underline-offset:.18em}
.pem-product .pem-product-service a[href^="tel:"] {background:var(--wine);color:white;border-color:var(--wine)}


.pem-checkout-promo {
    margin:0; padding:8px 16px; border-bottom:1px solid #e7ddcf;
    background:#fcfaf7; color:#6e542e; text-align:center;
    font:600 13px/1.45 var(--h-sans,system-ui,sans-serif);
}
.pem-product__summary .pem-size-choices--priced > button[aria-pressed="true"] :is(ins,ins .amount,.pem-size-choice__height) {
    color:#fff;
}
.pem-product__summary .pem-size-choices--priced > button[aria-pressed="true"] del {
    color:#e2d9c7; opacity:1;
}
.pem-product__summary .pem-size-choices--priced > button .pem-size-choice__height {padding-right:16px;}
.pem-product__summary .pem-size-choices--priced > button[aria-pressed="true"]::after {
    content:""; position:absolute; top:10px; right:11px; width:6px; height:10px;
    border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg);
}
