/* ==========================================================================
   The discovery set (mu-plugins/vs-discovery-set.php). Own file, own cache key
   (VS_DSET_VERSION): extra.css is edited by other sessions at the same time.
   Tokens are the house tokens declared in extra.css (--vs-parchment is the ink,
   --vs-parchment-dim the muted ink, --vs-stone the warm stone, --vs-rule the
   hairline).
   ========================================================================== */

/* ── The quiet line under every scent's buy box ─────────────────────────── */
.vs-pdp-discover {
  margin: 0.55rem 4px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--vs-parchment-dim, #5D5148);
}
.vs-pdp-discover__link {
  color: var(--vs-parchment, #171311);
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(93, 81, 72, 0.45);
}
.vs-pdp-discover__link:hover,
.vs-pdp-discover__link:focus-visible {
  text-decoration-color: currentColor;
}

/* ── The set's page ─────────────────────────────────────────────────────── */
/* The scent-only modules return nothing here, and the template's section
   wrappers still draw their hairlines and padding. Fold them away, and the
   "The Tale" eyebrow with them; the set's description prints as the Tale's
   body. */
.vs-pdp-set .vs-pdp-tale__eyebrow { display: none; }
.vs-pdp-set .vs-shelf2-rail:empty { display: none; }
.vs-pdp-set main > .wp-block-group.alignwide:not(:has(*)) { display: none; }
.vs-pdp-set main > .wp-block-group.alignwide[style*="border-top"] { border-top: 0 !important; padding-top: 0 !important; }
/* No wallet buttons on the set's page: a wallet press buys the product by id
   and quantity only and would skip the picker. The gateway is told so in PHP
   (vs-discovery-set.php); this covers a page rendered before it was. */
.vs-pdp-set #wc-stripe-express-checkout-element,
.vs-pdp-set .vs-wallet-room { display: none !important; }

.vs-dset {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.vs-dset__legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0;
  margin: 0 0 0.3rem;
  font-family: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.74rem;
  letter-spacing: var(--vs-track-caps, 0.18em);
  text-transform: uppercase;
  color: var(--vs-parchment, #171311);
}
.vs-dset__count {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--vs-parchment-dim, #5D5148);
  font-variant-numeric: tabular-nums;
}
.vs-dset__count.is-short { color: #7A2E2E; }
.vs-dset__lede {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--vs-parchment-dim, #5D5148);
}
.vs-dset__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
@media (min-width: 560px) {
  .vs-dset__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vs-dset__item { margin: 0; min-width: 0; }
.vs-dset__box {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.vs-dset__tile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 0.7rem;
  min-height: 60px;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  background: #FFFBF5;
  border: 1px solid var(--vs-stone, #AFA098);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}
.vs-dset__thumb {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 3px;
  background: #EFE6DA;
  display: block;
}
.vs-dset__thumb--blank { background: #EFE6DA; }
.vs-dset__main { display: flex; flex-direction: column; min-width: 0; }
.vs-dset__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.15;
  color: var(--vs-parchment, #171311);
  letter-spacing: 0.03em;
}
.vs-dset__fam {
  font-family: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vs-parchment-dim, #5D5148);
  margin-top: 0.15rem;
}
.vs-dset__mark {
  width: 18px; height: 18px;
  border: 1px solid var(--vs-stone, #AFA098);
  border-radius: 50%;
  position: relative;
  justify-self: end;
}
.vs-dset__box:checked + .vs-dset__tile {
  border-color: var(--vs-parchment, #171311);
  background: #F7F1E8;
}
.vs-dset__box:checked + .vs-dset__tile .vs-dset__mark {
  border-color: var(--vs-parchment, #171311);
  background: var(--vs-parchment, #171311);
}
.vs-dset__box:checked + .vs-dset__tile .vs-dset__mark::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 4px; height: 9px;
  border: solid #F3ECE3;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.vs-dset__box:focus-visible + .vs-dset__tile {
  outline: 2px solid var(--vs-parchment, #171311);
  outline-offset: 2px;
}
.vs-dset__box:disabled + .vs-dset__tile {
  opacity: 0.45;
  cursor: not-allowed;
}
.vs-dset__credit {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.9rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--vs-parchment-dim, #5D5148);
}
.vs-dset__credit-mark { color: var(--vs-gold, #5D5148); flex: none; }
.vs-dset__note {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--vs-parchment-dim, #5D5148);
}
/* 1.4.0: a refused add, said inside the picker (discovery-set.js say()). Same
 * red as the short-count line. */
.vs-dset__msg {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: #7A2E2E;
}
.vs-dset__msg[hidden] { display: none; }

/* The account page and the thank-you page. */
.vs-dset-credit-soon {
  margin: 1.2rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--vs-parchment-dim, #5D5148);
}
