/* Christmas sales tools (season.js, 31 Oct 2026): the order-by banner, the email pop-up, the gift finder and the
   Recently painted strip. Brand tokens from brand.css; coral only on the buttons. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- 1. the banner: slim, dark, one line on desktop */
.mc-xmas { background: var(--mc-stage-2, #16171D); color: var(--mc-stage-muted, #A3A7B4); border-bottom: 1px solid var(--mc-stage-line, #262A36); font: 500 .84rem/1.4 var(--mc-sans); }
.mc-xmas .xb-in { max-width: var(--mc-wrap, 1200px); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px 14px; justify-content: center; }
.mc-xmas .xb-t { margin: 0; text-align: center; flex: 0 1 auto; }
.mc-xmas b { color: var(--mc-stage-ink, #F2F0EB); font-weight: 600; }
.mc-xmas .xb-find { color: var(--mc-stage-ink, #F2F0EB); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; white-space: nowrap; }
.mc-xmas .xb-cc { display: inline-flex; border: 1px solid var(--mc-stage-line, #262A36); border-radius: 999px; overflow: hidden; flex: none; }
.mc-xmas .xb-cc button { background: none; border: 0; color: var(--mc-stage-muted, #A3A7B4); font: 600 .72rem/1 var(--mc-mono); letter-spacing: .06em; padding: 6px 10px; cursor: pointer; min-height: 28px; }
.mc-xmas .xb-cc button[aria-pressed="true"] { background: var(--mc-stage-ink, #F2F0EB); color: var(--mc-stage, #0A0B0F); }
.mc-xmas .xb-x { background: none; border: 0; color: var(--mc-stage-muted, #A3A7B4); font-size: 1.25rem; line-height: 1; padding: 4px 8px; cursor: pointer; flex: none; min-width: 32px; min-height: 32px; }
.mc-xmas .xb-short { display: none; }
.mc-xmas button:focus-visible, .mc-xmas a:focus-visible { outline: 2px solid var(--mc-accent, #FF5A3C); outline-offset: 2px; }
@media (max-width: 640px) {
  .mc-xmas .xb-in { justify-content: space-between; padding: 7px 8px 7px 16px; }
  .mc-xmas .xb-t { text-align: left; font-size: .8rem; }
  .mc-xmas .xb-long, .mc-xmas .xb-books { display: none; }
  .mc-xmas .xb-short { display: inline; }
  .mc-xmas .xb-find { margin-left: 4px; }
}

/* ---- 2. the pop-up: a quiet card (desktop), a small bottom slide-in under 30% of the screen (phones) */
.mc-pop-shade { position: fixed; inset: 0; background: rgba(10, 11, 15, .45); z-index: 9998; }
.mc-pop { position: fixed; z-index: 9999; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; transition: opacity .25s ease, transform .25s ease;
  width: min(440px, calc(100vw - 32px)); background: var(--mc-card, #FFFDF8); color: var(--mc-ink, #16151B); border: 1px solid var(--mc-line, #E6DCCB); border-radius: var(--mc-radius, 18px);
  padding: 28px 26px 20px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); font-family: var(--mc-sans); }
.mc-pop.on { opacity: 1; transform: translate(-50%, -50%); }
.mc-pop h2 { font: 400 1.6rem/1.15 var(--mc-serif); margin: 0 28px 10px 0; }
.mc-pop p { margin: 0 0 14px; color: var(--mc-muted, #5E5A55); font-size: .95rem; line-height: 1.5; }
.mc-pop .mc-pop-f { display: flex; gap: 8px; margin: 0 0 8px; }
.mc-pop input[type="email"] { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid var(--mc-line, #E6DCCB); border-radius: 999px; background: #fff; color: var(--mc-ink, #16151B); }
.mc-pop input[type="email"]:focus-visible { outline: 2px solid var(--mc-ink, #16151B); outline-offset: 1px; }
.mc-pop .mc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mc-pop .mc-pop-s { margin: 0 0 6px; color: var(--mc-ink, #16151B); }
.mc-pop .mc-pop-s:empty { display: none; }
.mc-pop .mc-pop-s a { color: var(--mc-accent-text, #C73A22); font-weight: 600; }
.mc-pop .mc-pop-fine { font-size: .78rem; margin: 0; }
.mc-pop-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--mc-muted, #5E5A55); cursor: pointer; min-width: 40px; min-height: 40px; border-radius: 50%; }
.mc-pop-x:focus-visible { outline: 2px solid var(--mc-ink, #16151B); }
.mc-pop.is-phone { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; transform: translateY(110%); max-height: 30vh; overflow: auto; padding: 14px 16px 10px; border-radius: 16px; }
.mc-pop.is-phone.on { transform: none; }
.mc-pop.is-phone h2 { font-size: 1.08rem; margin: 0 36px 8px 0; }
.mc-pop.is-phone #mc-pop-d, .mc-pop.is-phone .mc-pop-fine { display: none; }
.mc-pop.is-phone .mc-pop-x { top: 4px; right: 4px; }
@media (prefers-reduced-motion: reduce) { .mc-pop { transition: none; } }

/* ---- 3. the gift finder */
.gf .gf-head { max-width: 640px; margin: 0 0 22px; }
.gf .gf-head h2, .mc-gal .gf-head h2 { font: 400 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--mc-serif); margin: 8px 0 10px; }
.gf-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.gf-q { border: 1px solid var(--mc-line, #E6DCCB); border-radius: 18px; padding: 18px 16px 16px; margin: 0; background: var(--mc-card, #FFFDF8); min-width: 0;
  box-shadow: 0 1px 0 rgba(60, 40, 20, .03), 0 14px 30px -26px rgba(60, 40, 20, .45); transition: border-color .2s, box-shadow .2s; }
.gf-q.done { border-color: var(--mc-ink, #16151B); }
.gf-q legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 14px; }
.gf-q legend + * { clear: both; }
.gf-num { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font: 600 .8rem/1 var(--mc-mono); background: var(--mc-paper, #F7F2E9); color: var(--mc-ink, #16151B); border: 1px solid var(--mc-line, #E6DCCB); transition: background .2s, color .2s; }
.gf-q.done .gf-num { background: var(--mc-ink, #16151B); color: var(--mc-paper, #F7F2E9); border-color: var(--mc-ink, #16151B); }
.gf-ask { font: 400 1.3rem/1.15 var(--mc-serif); color: var(--mc-ink, #16151B); }
.gf-opts { display: grid; gap: 8px; }
.gf-opts label { cursor: pointer; display: block; }
.gf-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gf-tile { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--mc-line, #E6DCCB); border-radius: 12px; background: #fff; color: var(--mc-ink, #16151B); transition: border-color .15s, background .15s, transform .12s; }
.gf-tile svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gf-t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.gf-t b { font-weight: 600; font-size: .95rem; }
.gf-t small { font-size: .8rem; color: var(--mc-muted, #5E5A55); }
.gf-tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--mc-line, #E6DCCB); flex: none; position: relative; transition: background .15s, border-color .15s; }
.gf-opts label:hover .gf-tile { border-color: var(--mc-ink, #16151B); }
.gf-opts label:active .gf-tile { transform: scale(.985); }
.gf-opts input:checked + .gf-tile { background: var(--mc-ink, #16151B); color: var(--mc-paper, #F7F2E9); border-color: var(--mc-ink, #16151B); }
.gf-opts input:checked + .gf-tile small { color: rgba(247, 242, 233, .72); }
.gf-opts input:checked + .gf-tile .gf-tick { background: var(--mc-accent, #FF5A3C); border-color: var(--mc-accent, #FF5A3C); }
.gf-opts input:checked + .gf-tile .gf-tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gf-opts input:focus-visible + .gf-tile { outline: 2px solid var(--mc-accent, #FF5A3C); outline-offset: 2px; }
.gf-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--mc-line, #E6DCCB); border-radius: 14px; color: var(--mc-muted, #5E5A55); font-size: .92rem; }
.gf-progress.ready { border-style: solid; border-color: transparent; padding-left: 0; color: var(--mc-ink, #16151B); font-weight: 600; }
.gf-dots { display: inline-flex; gap: 6px; }
.gf-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--mc-line, #E6DCCB); transition: background .2s, transform .2s; }
.gf-dots i.on { background: var(--mc-accent, #FF5A3C); transform: scale(1.1); }
.gf-out:empty { display: none; }
.gf-out { margin-top: 20px; }
.gf-note { margin: 0 0 10px; color: var(--mc-ink, #16151B); font-weight: 600; }
.gf-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gf-card { border: 1px solid var(--mc-line, #E6DCCB); border-radius: 16px; padding: 18px; background: var(--mc-card, #FFFDF8); display: flex; flex-direction: column; gap: 6px; }
.gf-card h3 { font: 400 1.25rem/1.2 var(--mc-serif); margin: 0; }
.gf-card p { margin: 0; color: var(--mc-muted, #5E5A55); font-size: .92rem; }
.gf-card .gf-price { color: var(--mc-ink, #16151B); font-weight: 600; font-size: 1.05rem; margin: 6px 0 10px; }
.gf-card .gf-price small { font-weight: 400; color: var(--mc-muted, #5E5A55); font-size: .8rem; }
.gf-card .mc-btn { margin-top: auto; align-self: flex-start; }
.gf-card.gf-more { background: transparent; border-style: dashed; }
.gf-kind { font: 500 .68rem/1 var(--mc-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mc-muted, #5E5A55); }
.gf-fine { font-size: .8rem; color: var(--mc-muted, #5E5A55); margin: 10px 0 0; }
@media (max-width: 820px) { .gf-form, .gf-cards { grid-template-columns: 1fr; } }

/* ---- 4. Recently painted */
.mc-gal .gal-row { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.mc-gal .gal-row li { scroll-snap-align: start; }
.mc-gal figure { margin: 0; }
.mc-gal .gal-pic { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--mc-tint, #F1EADD); }
.mc-gal .gal-pic img { display: block; width: 100%; height: auto; }
.mc-gal .gal-before { position: absolute !important; left: 10px; bottom: 10px; width: 30% !important; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.mc-gal figcaption { font-size: .85rem; color: var(--mc-muted, #5E5A55); margin-top: 6px; }
.mc-gal .gal-cta { margin: 18px 0 0; }
