/* ncllc-storefront — sale callouts (card https://trello.com/c/4rGogB4L; sale-callout.php). Every rule here
   styles an element that module prints ONLY for a product Woo Discount Rules discounts for this viewer, so
   for anyone else this sheet changes nothing. The storefront theme is light-only; contrast as approved:
   white on the coral 5.1:1, the ink on the yellow >= 10:1, the green on white 5.1:1 (on the soft yellow 4.5:1),
   the sale red on the soft yellow 4.6:1 at 1.8rem bold. Every link and button is >= 44 px tall. */
:root {
  --ncllc-sale-banner: #ffd23f;
  --ncllc-sale-ink: #3b2100;
  --ncllc-sale-accent: #e0453c;
  --ncllc-sale-accent-ink: #ffffff;
  --ncllc-sale-soft: #fff1b8;
  --ncllc-sale-save: #2e7d32;
  --ncllc-sale-now: #c8372f;
  --ncllc-sale-muted: #6b6b6b;
  --ncllc-sale-card: #ffffff;
  --ncllc-sale-card-ink: #333333;
  --ncllc-sale-glow: #ffffff;
  --ncllc-sale-teal: #39a0a7;
}

/* ── The pill and the tag ──────────────────────────────────────────────────────────────────────────── */
.ncllc-sale-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--ncllc-sale-accent); color: var(--ncllc-sale-accent-ink);
  font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: 0.04em; white-space: nowrap; vertical-align: middle;
}
.ncllc-sale-tag {
  position: absolute; top: 8px; left: 8px; z-index: 10; pointer-events: none;
  padding: 4px 8px; border-radius: 999px; background: var(--ncllc-sale-accent); color: var(--ncllc-sale-accent-ink);
  font-size: 11px; font-weight: 900; line-height: 1.2; letter-spacing: 0.02em; white-space: nowrap;
}
/* The box each tag sits in (a menu table's photo link, a block grid's photo, a classic card), and the
   theme's own black "Sale!" flash hidden where ours is. */
.wcpt-product-image-wrapper a:has(> .ncllc-sale-tag) { position: relative; display: inline-block; max-width: 100%; }
.wc-block-grid__product-image:has(> .ncllc-sale-tag) { position: relative; }
.wc-block-grid__product:has(.ncllc-sale-tag) .wc-block-grid__product-onsale { display: none; }
ul.products li.product:has(.ncllc-sale-tag) { position: relative; }
ul.products li.product:has(.ncllc-sale-tag) .onsale { display: none; }

/* ── The stamp ─────────────────────────────────────────────────────────────────────────────────────── */
.ncllc-sale-stamp {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 112px; height: 112px; border-radius: 50%; box-sizing: border-box;
  background: var(--ncllc-sale-accent); color: var(--ncllc-sale-accent-ink);
  transform: rotate(-8deg); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12); text-align: center; line-height: 1;
}
.ncllc-sale-stamp__pct { font-size: 38px; font-weight: 900; }
.ncllc-sale-stamp__off { margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: 0.12em; }

/* ── The sale page: the banner above the table ─────────────────────────────────────────────────────── */
.ncllc-sale-banner {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  margin: 0 0 24px; padding: 28px 32px; border-radius: 20px; box-sizing: border-box; max-width: 100%;
  background: var(--ncllc-sale-banner); color: var(--ncllc-sale-ink);
}
.ncllc-sale-banner::before,
.ncllc-sale-banner::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ncllc-sale-banner::before { top: -70px; right: -50px; width: 220px; height: 220px; background: var(--ncllc-sale-glow); opacity: 0.35; }
.ncllc-sale-banner::after { bottom: -80px; left: 38%; width: 170px; height: 170px; background: var(--ncllc-sale-teal); opacity: 0.25; }
.ncllc-sale-banner > * { position: relative; z-index: 1; }
.ncllc-sale-banner__text { flex: 1 1 260px; min-width: 0; }
.ncllc-sale-banner .ncllc-sale-banner__eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ncllc-sale-ink); }
.ncllc-sale-banner .ncllc-sale-banner__title { margin: 0 0 6px; padding: 0; font-size: 2rem; font-weight: 900; line-height: 1.15; color: var(--ncllc-sale-ink); overflow-wrap: anywhere; }
.ncllc-sale-banner .ncllc-sale-banner__line { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ncllc-sale-ink); }
.ncllc-sale-banner__ends { flex: 0 0 auto; padding: 12px 18px; border-radius: 14px; background: var(--ncllc-sale-card); text-align: center; }
.ncllc-sale-banner__ends-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ncllc-sale-muted); }
.ncllc-sale-banner__ends-value { display: block; margin-top: 2px; font-size: 1.1rem; font-weight: 800; color: var(--ncllc-sale-card-ink); white-space: nowrap; }

/* ── The sale page: each row's price ───────────────────────────────────────────────────────────────── */
.ncllc-sale-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.ncllc-sale-row__price { min-width: 0; overflow-wrap: anywhere; }
.ncllc-sale-row__price del { color: var(--ncllc-sale-muted); font-size: 15px; }
.ncllc-sale-row__price ins { color: var(--ncllc-sale-accent); font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.ncllc-sale-row .ncllc-sale-save { flex: 1 1 100%; }
.ncllc-sale-save { display: block; color: var(--ncllc-sale-save); font-size: 13px; font-weight: 700; line-height: 1.35; }

/* ── A product page: the strip, the stamp over the photo, the callout under the price ──────────────── */
.ncllc-sale-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  margin: 0 0 20px; padding: 12px 24px; border-radius: 12px; box-sizing: border-box; max-width: 100%;
  background: var(--ncllc-sale-banner); color: var(--ncllc-sale-ink); text-align: center;
}
.ncllc-sale-strip .ncllc-sale-pill { font-size: 13px; font-weight: 900; }
.ncllc-sale-strip__text { min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ncllc-sale-strip .ncllc-sale-strip__link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ncllc-sale-ink);
  font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.ncllc-sale-strip .ncllc-sale-strip__link:hover,
.ncllc-sale-strip .ncllc-sale-strip__link:focus { color: var(--ncllc-sale-ink); }
.ncllc-sale-strip .ncllc-sale-strip__link:focus-visible { outline: 3px solid var(--ncllc-sale-ink); outline-offset: 2px; }
div.product:has(> .ncllc-sale-stamp--product) { position: relative; }
div.product:has(> .ncllc-sale-stamp--product) > .onsale { display: none; }
.ncllc-sale-stamp--product { position: absolute; top: 20px; left: 20px; z-index: 20; width: 104px; height: 104px; pointer-events: none; }
.ncllc-sale-callout {
  display: flex; align-items: flex-start; gap: 14px; margin: 12px 0 18px; padding: 18px 20px;
  border-radius: 16px; box-sizing: border-box; max-width: 100%; background: var(--ncllc-sale-soft); color: var(--ncllc-sale-ink);
}
.ncllc-sale-callout__icon {
  flex: 0 0 52px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--ncllc-sale-accent); color: var(--ncllc-sale-accent-ink);
}
.ncllc-sale-callout__text { min-width: 0; }
.ncllc-sale-callout .ncllc-sale-callout__title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: var(--ncllc-sale-ink); }
.ncllc-sale-callout .ncllc-sale-callout__body { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ncllc-sale-ink); }

/* ── The quick-add pop-up (quick-add.js; only when its answer carries the sale) ────────────────────── */
.ncllc-sf-qa__sale {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-right: 40px; padding: 12px 16px;
  border-radius: 10px; background: var(--ncllc-sale-banner); color: var(--ncllc-sale-ink);
  font-size: 14px; font-weight: 700; line-height: 1.35;
}
.ncllc-sf-qa__sale-text { min-width: 0; overflow-wrap: anywhere; }
.ncllc-sf-qa__yours[hidden] { display: none; }
.ncllc-sf-qa__yours { padding: 14px 16px; border-radius: 14px; background: var(--ncllc-sale-soft); color: var(--ncllc-sale-ink); }
.ncllc-sf-qa__yours p { margin: 0; }
.ncllc-sf-qa__yours-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ncllc-sf-qa__yours-amounts { margin-top: 4px !important; line-height: 1.15; overflow-wrap: anywhere; }
.ncllc-sf-qa__yours-was { color: var(--ncllc-sale-muted); font-size: 1.05rem; }
.ncllc-sf-qa__yours-now { color: var(--ncllc-sale-now); font-size: 1.8rem; font-weight: 900; text-decoration: none; }
.ncllc-sf-qa__yours-save { margin-top: 4px !important; color: var(--ncllc-sale-save); font-size: 14px; font-weight: 700; }
.ncllc-sf-qa__yours-note { margin-top: 6px !important; font-size: 13px; line-height: 1.4; }

/* ── Tablets and phones: the banner stacks, nothing wider than the screen ──────────────────────────── */
@media (max-width: 600px) {
  .ncllc-sale-banner { gap: 14px 16px; padding: 20px 18px; border-radius: 16px; }
  .ncllc-sale-banner .ncllc-sale-stamp { width: 84px; height: 84px; }
  .ncllc-sale-banner .ncllc-sale-stamp__pct { font-size: 28px; }
  .ncllc-sale-banner .ncllc-sale-stamp__off { font-size: 12px; }
  .ncllc-sale-banner__text { flex-basis: 160px; }
  .ncllc-sale-banner .ncllc-sale-banner__title { font-size: 1.5rem; }
  .ncllc-sale-banner .ncllc-sale-banner__line { font-size: 15px; }
  .ncllc-sale-banner__ends { flex: 1 1 100%; text-align: left; }
  .ncllc-sale-banner__ends-value { white-space: normal; }
  .ncllc-sale-strip { padding: 10px 14px; gap: 6px 12px; }
  .ncllc-sale-stamp--product { top: 10px; left: 10px; width: 76px; height: 76px; }
  .ncllc-sale-stamp--product .ncllc-sale-stamp__pct { font-size: 26px; }
  .ncllc-sale-stamp--product .ncllc-sale-stamp__off { font-size: 11px; }
  .ncllc-sale-callout { padding: 14px 16px; gap: 12px; }
  .ncllc-sale-callout__icon { flex-basis: 44px; width: 44px; height: 44px; }
}
