/* ===== Skylight product-card overlay =====
   Ported from the itemized-appointment "Skylight" card built for the Allied Digestive Health
   case study (allied-digestive-case-study.vercel.app, .sky/.sky__* classes) — that version is
   real-world tested at narrow widths and deliberately avoids aspect-ratio/container-query CSS.
   This version follows the same philosophy: fixed px per tier, two plain viewport breakpoints,
   nothing fluid. (An earlier cqi/container-type-based version of this overlay broke on at least
   one real mobile browser — don't reintroduce that approach.)

   `.sko`/`.sko-card` force a `height` (not `min-height` — a percentage min-height doesn't resolve
   against an ancestor whose own height also came from min-height/padding-top; only plain `height`
   counts as "specified" for a descendant's percentage height to resolve against, so min-height
   here would silently collapse back to content size and stop covering the reference card's
   footprint underneath). Content is distributed within that fixed box via
   `justify-content: space-between` so it always fully covers the baked-in reference card in
   assets/skylight*.png regardless of exactly how tall the content is at a given font-size tier —
   don't switch this back to auto/min-height sizing. */

.sko { position: absolute; left: 2%; top: 16%; width: 42%; height: 64%; font-family: -apple-system, "Helvetica Neue", Arial, sans-serif; color: rgb(23,23,23); }
.sko-card {
  width: 100%; height: auto; min-height: 100%;
  border-radius: 21px;
  background:
    radial-gradient(circle at 50% 50%, rgba(242,243,248,1) 42%, rgba(242,243,248,0) 100%),
    linear-gradient(rgb(225,239,254), rgb(225,239,254));
  box-shadow: 0 14px 30px -8px rgba(0,0,0,.25);
  padding: 15px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
}
.sko-list { flex-shrink: 0; }

.sko-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.sko-chip { border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.6); border-radius: 999px; padding: 4px 9px; font-size: 11px; color: rgb(82,82,82); font-family: inherit; }
.sko-chip--ghost { background: transparent; border: none; font-size: 13.5px; padding: 0; }
.sko-title { font-size: 13px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; flex: 1; text-align: center; }

.sko-list { border-radius: 15px; border: 2px solid #fff; background: rgba(255,255,255,.5); overflow: hidden; display: flex; flex-direction: column; }
.sko-listhead { background: #fff; padding: 8px 12px; font-size: 11px; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,.04); }
.sko-row { padding: 9px 12px; border-top: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.55); opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .4s ease; }
.sko-row.is-in { opacity: 1; transform: translateY(0); }
.sko-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sko-row-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sko-minus { font-size: 13.5px; color: rgb(82,82,82); line-height: 1; }
.sko-row-price { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sko-row-explain { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4.5px; font-size: 10px; line-height: 1.35; border-radius: 9px; padding: 5px 8px; margin-left: 20px; background: radial-gradient(circle at 20% 50%, rgba(234,227,234,.5) 0%, rgba(234,227,234,0) 70%), radial-gradient(circle at 80% 50%, rgba(203,215,249,.5) 0%, rgba(203,215,249,0) 70%), rgba(208,217,246,.5); }
.sko-tag { display: inline-block; background: #fff; border-radius: 6px; padding: 2px 6px; font-size: 10px; font-family: ui-monospace, Menlo, monospace; letter-spacing: -.01em; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

.sko-actions { display: flex; justify-content: space-between; gap: 9px; }
.sko-btn { border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.7); border-radius: 999px; padding: 5px 11px; font-size: 10.5px; color: inherit; font-family: inherit; white-space: nowrap; }
.sko-btn--outline { background: transparent; border: 1px solid rgba(0,0,0,.25); }

.sko-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 3px; }
.sko-total-label { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sko-total-val { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.sko-pay { display: flex; align-items: center; justify-content: space-between; gap: 9px; font-size: 10.5px; color: rgb(82,82,82); }
.sko-pay strong { color: rgb(23,23,23); font-weight: 500; }

@media (max-width: 700px) {
  .sko-card { padding: 9px; border-radius: 15px; gap: 8px; }
  .sko-chip { font-size: 7px; padding: 2.5px 6px; }
  .sko-chip--ghost { font-size: 8.5px; }
  .sko-title { font-size: 8px; }
  .sko-listhead { padding: 5px 8px; font-size: 7px; }
  .sko-row { padding: 6px 8px; }
  .sko-row-top { margin-bottom: 3px; }
  .sko-row-name { font-size: 7px; gap: 4px; }
  .sko-minus { font-size: 8px; }
  .sko-row-price { font-size: 7px; }
  .sko-row-explain { font-size: 6px; padding: 3px 5px; margin-left: 12px; border-radius: 6px; }
  .sko-tag { font-size: 6px; padding: 1px 4px; }
  .sko-actions { gap: 5px; }
  .sko-btn { font-size: 6.5px; padding: 3px 7px; }
  .sko-total-label { font-size: 10px; }
  .sko-total-val { font-size: 16px; }
  .sko-pay { font-size: 6.5px; }
}

@media (max-width: 550px) {
  .sko-card { padding: 6px; border-radius: 11px; gap: 5px; }
  .sko-chip { font-size: 4.6px; padding: 1.6px 4px; }
  .sko-chip--ghost { font-size: 5.6px; }
  .sko-title { font-size: 5.3px; }
  .sko-listhead { padding: 3px 5px; font-size: 4.6px; }
  .sko-row { padding: 4px 5px; }
  .sko-row-top { margin-bottom: 2px; }
  .sko-row-name { font-size: 4.6px; gap: 2.5px; }
  .sko-minus { font-size: 5.3px; }
  .sko-row-price { font-size: 4.6px; }
  .sko-row-explain { font-size: 4px; padding: 2px 3px; margin-left: 8px; border-radius: 4px; }
  .sko-tag { font-size: 4px; padding: 0.5px 2.5px; }
  .sko-actions { gap: 3.5px; }
  .sko-btn { font-size: 4.3px; padding: 1.8px 4.5px; }
  .sko-total-label { font-size: 6.6px; }
  .sko-total-val { font-size: 10.5px; }
  .sko-pay { font-size: 4.3px; }
}
