/* Lash Room on the shop core: her look on the core's own markup (core/THEME.md). Her site.css, themes.css and
   next.css stay as they were; this file only dresses what the core writes: the draft mark on a DEMO Worker, the buy
   box, the cart drawer's lines and toast, the checkout form, the thanks page's order box, the legal documents and
   the cancellation form. Same tokens as site.css (light = duo, dark = the dark site). */

/* The core's draft mark (DEMO=1) is hidden: the owner, 1.11.2026, before the payment companies review the preview.
   DEMO stays on (noindex, emails only to the developer); only the mark is gone. */
.draft-banner { display: none; }

/* Visually hidden, for screen readers (the crossed-out price's "במקום"). */
.was .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The buy box (product page): her price, quantity and button ---------- */
.prod__buybox { margin-top: 14px; }
.prod__buybox .price { margin: 0; font-size: 1.5rem; font-weight: 600; }
.prod__buybox .was { margin-inline-end: 8px; color: var(--fg-2); font-weight: 400; font-size: 1.125rem; }
.prod__buybox fieldset.opt { display: block; margin: 22px 0 0; padding: 0; border: 0; background: none; cursor: auto; }
.prod__buybox fieldset.opt:hover { border: 0; }
.prod__buybox .opt legend { margin-bottom: 10px; color: var(--fg-2); font-size: .9375rem; }
.prod__buybox .opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.prod__buybox .chip { position: relative; cursor: pointer; }
.prod__buybox .chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.prod__buybox .chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; transition: border-color .3s, background-color .3s; }
.prod__buybox .chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.prod__buybox .chip input:disabled + span { opacity: .45; }
.prod__buybox .chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.prod__buybox .chip small { color: var(--fg-2); font-weight: 400; }
.prod__buybox .swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); }
.prod__buybox .qty-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.prod__buybox .qty-row > span { color: var(--fg-2); font-size: .9375rem; }
.prod__buybox .qty { height: 52px; }
.prod__buybox .qty button { width: 48px; }
.prod__buybox > .btn { width: 100%; margin-top: 14px; }
.prod__buybox .buy__ship { margin: 14px 0 0; color: var(--fg-2); font-size: .9375rem; }

/* ---------- The cart drawer ---------- */
/* The toast after adding stays hidden while the drawer it opened is showing (cart.js opens the drawer on every add). */
#cart [data-toast] { display: none; }
.toast {
  position: fixed; inset-inline: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 420px; margin-inline: auto; padding: 12px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--ivory); font-size: .9375rem;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast button { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.drawer__foot > .btn { width: 100%; margin-top: 18px; }
.drawer__foot > .link { display: block; margin: 14px auto 0; }
.line__ctrl { display: flex; align-items: center; gap: 14px; grid-column: 2 / -1; }

/* ---------- The checkout (the core's form in her page frame) ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; } /* one column on phones, never wider than the screen (a long line name overflowed it: the parity run, 31.10) */
@media (min-width: 960px) {
  .co { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; align-items: start; }
  .co > .co__summary { order: 2; position: sticky; top: calc(var(--hdr-h) + 24px); }
}
.co > *, .field-row > *, .address > *, [data-co-form] > *, [data-co-form] .field > * { min-width: 0; } /* grid items may shrink to the column (an input's own width overflowed it) */
.field-row .input { width: 100%; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.address, .delivery { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.address legend, .delivery legend { margin-bottom: 4px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.radio-card { position: relative; display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .3s, background-color .3s; }
.radio-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.radio-card input { position: absolute; inset-block-start: 18px; inset-inline-end: 16px; accent-color: var(--accent); }
.radio-card span { font-weight: 600; }
.coupon__row { display: flex; gap: 10px; }
.coupon__row .input { flex: 1 1 0; min-width: 0; } /* not its own intrinsic width: that made the whole form 541px wide on a phone (parity, 31.10) */
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.co-pay, .shop-closed { margin: 0; }
.shop-closed__ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- The thanks page's order box ---------- */
.th__in { display: grid; gap: 20px; }
.th__in .muted { color: var(--fg-2); }
.th-next { margin-top: 8px; }
.legal-block { margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: .9375rem; }
.legal-block p { margin: 6px 0 0; }

/* ---------- The legal documents and the cancellation form (the core's il-services pack) ---------- */
.legal__body [data-cx-form] { margin: clamp(32px, 5vw, 48px) 0 clamp(48px, 8vw, 96px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); }
/* The core's yellow [למילוי] marks until her business details are in: readable in light and dark (qa contrast). */
.fill { background: #f6e7a6; color: #3a2f00; padding: 0 .25em; border-radius: 3px; font-weight: 600; }
.cx-done { margin-bottom: 24px; }
.cx-done__t { font-weight: 600; }
/* The cancellation details the law wants next to the cancel link on the home page (14ט(ה)(2)). */
.legal-short { display: block; margin-top: 10px; color: var(--fg-2); font-size: .8125rem; line-height: 1.5; }
.url { unicode-bidi: isolate; }

/* ---------- Her form pieces on the core's markup ---------- */
/* Her .note is a row (an icon, then the text); the core's notes are text blocks with inline marks, which a row would
   split into columns. */
:is(.cx-notice, .cx-done, .co-pay, .co-vat, .co-privacy, .legal-tr, .th-next, .shop-closed).note { display: block; } /* co-vat/co-privacy: the legal pack's checkout notes (their marks overflowed a phone, parity 31.10) */
/* A hint or error under a checkbox's label sits under the label, not in the box's narrow column. */
.check > :is(.field__hint, .field__err, p, .check__links) { grid-column: 2; margin: 0; } /* check__links: the terms box links, under its label (they wrapped into the 24px column, 1.11) */

/* ---------- Courses (digital and contact products) ---------- */
/* Her Telegram note above the checkout form while the cart holds a mini-course. */
.co-tg { margin: 0 0 clamp(24px, 4vw, 40px); }
/* The thanks page's access block: per mini-course its title, the link to her bot (her button) and the steps. */
.th-access { margin-top: clamp(28px, 4vw, 40px); padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.th-access__line + .th-access__line { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.th-access__line p { margin: 0 0 10px; }
.th-access .btn { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-line); }
.th-access ol { margin: 10px 0 0; padding-inline-start: 1.2em; color: var(--fg-2); }
/* A contact product's buy box: the WhatsApp booking button (her course page draws her own; this is the no-script one). */
.buy--contact { margin: 18px 0 0; }

/* ---------- Her photos and texts on the core's markup (core 1.1's theme kit) ---------- */
/* The crop of a photo the core places (data-shop-photo writes no data-focus): by slot, as her img[data-focus] did
   (content/photos.json focus "top"; the other slots are centred). */
:is([data-shop-photo="about"], [data-shop-photo="inperson"]) img { object-position: 50% 18%; }
/* An edited text's *accent* (theme/texts.js marks): her .it. */
.accent { font-style: italic; }
:root:lang(he) .accent { font-style: normal; font-synthesis: none; color: var(--accent); }

/* 7.11: a designed banner as a course's cover (views.js isWide: her course covers of 3.11.2026, the course's name in
   three languages on the left half) is shown whole on the course page at every width: no soft edges, vignette, arch,
   zoom or parallax (each of them cut letters). The cards and the collage's centre crop it to its photo side. */
.course__media.course__media--wide { aspect-ratio: 16 / 9; -webkit-mask-image: none; mask-image: none; border-radius: 4px; }
:root[data-theme] .course__media.course__media--wide.has-photo { border-radius: 4px; }
:root[data-theme]:not([data-ph]) .course__media.course__media--wide.has-photo::after { content: none; }
.js .course__media.course__media--wide.has-photo img { animation: none; }
.collage__cover img[data-focus="end"] { object-position: 100% 50%; }

/* 8.11: on the course cards her banner is shown whole (16:9, every width and column count), with no dark shade and no
   hover zoom over its letters; the title and the lessons line sit under it in the page's colours (blocks.js). */
.ccard--banner .ccard__media,
.cards:has(> :nth-child(2):last-child) .ccard--banner .ccard__media { aspect-ratio: 16 / 9; border-radius: 4px; }
.ccard--banner .ccard__media::after, :root[data-theme] .ccard--banner .ccard__media::after { content: none; }
.ccard--banner .ccard__over { position: static; padding: 18px 0 0; }
.ccard--banner .ccard__over, :root[data-theme] .ccard--banner .ccard__over { color: var(--fg); }
.ccard--banner .ccard__meta, :root[data-theme] .ccard--banner .ccard__meta { color: var(--fg-2); }
.ccard--banner .ccard__summary { margin-top: 12px; }
@media (hover: hover) { .ccard--banner:hover .ccard__img { transform: none; } }

/* 8.11: a lesson without its own picture shows its words across the card's full width (pages/course-next.js). */
:root[data-f][data-f~="1"] .nx-ep__head.nx-ep__head--text { grid-template-columns: minmax(0, 1fr); }
