/* Tabby's promo snippet under product prices. See shared/tabby.js.
   The snippet inherits our background (shouldInheritBg) and takes its text
   colours from these two variables. */
.tabby-promo {
  --snippetTextColor: var(--ink-soft, #7A6048);
  --snippetLinkTextColor: var(--ink, #2B1500);
  display: block;
  max-width: 420px;
  min-height: 24px;
  margin: 8px 0 0;
  text-align: left;
}
.tabby-promo[hidden] { display: none; }

/* Centred under a centred price (plan cards, the bundle hero). */
.tabby-promo.tabby-center { margin-left: auto; margin-right: auto; }
/* On the sunny final band and other dark-on-colour spots. */
.tabby-promo.tabby-on-sun { --snippetTextColor: #2B1500; --snippetLinkTextColor: #2B1500; }
/* Under a plan card's price, above "One payment, yours for life". */
.tabby-promo.tabby-card { margin: 12px 0 0; }
/* E-book pages: the price and the promo stacked as one block, so the promo
   sits directly under the price, before the button (Tabby QA, 2026-11-02). */
.tabby-price-stack { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
/* The kids hero centres its price row on tablets and phones. */
@media (max-width: 900px) { .tabby-promo.tabby-kids { margin-left: auto; margin-right: auto; } }

/* ---- checkout: payment method picker (courses/checkout-tabby.js) ---------- */
.tb-methods { margin: 4px 0 14px; }
.tb-methods[hidden] { display: none; }
.tb-methods-title {
  margin: 0 0 8px;
  font: 700 14px/1.2 var(--f-body, "Instrument Sans", system-ui, sans-serif);
  color: var(--ink, #2B1500);
}
.tb-list { display: grid; gap: 8px; }
.tb-opt {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FBF8F2;
  box-shadow: inset 0 0 0 1px #E6DCCB;
  cursor: pointer;
  transition: box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tb-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tb-opt.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink, #2B1500); }
.tb-opt:focus-within { outline: 2px solid var(--sea, #1C8FE0); outline-offset: 2px; }
.tb-opt.is-off { opacity: .5; cursor: not-allowed; }
.tb-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #CDBFA8;
  background: #fff;
  transition: box-shadow .15s ease;
}
.tb-opt.is-on .tb-dot { box-shadow: inset 0 0 0 6px var(--ink, #2B1500); }
.tb-copy { display: grid; gap: 2px; min-width: 0; }
.tb-name { font: 700 15px/1.25 var(--f-body, "Instrument Sans", system-ui, sans-serif); color: var(--ink, #2B1500); }
.tb-sub { font: 500 13px/1.35 var(--f-body, "Instrument Sans", system-ui, sans-serif); color: var(--ink-soft, #7A6048); }
.tb-sub b { color: var(--ink, #2B1500); font-weight: 700; white-space: nowrap; }
.tb-marks { display: flex; align-items: center; gap: 6px; }
.tb-marks img { display: block; height: auto; }
.tb-marks .tabby-badge { width: 52px; height: 20px; }

.tb-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #E6DCCB;
}
.tb-panel[hidden] { display: none; }
/* Tabby's checkout card (TabbyCard) at the top of the panel. */
.tb-card { min-height: 60px; margin: 0 0 14px; }
.tb-card:empty { display: none; }
.tb-label { display: block; margin: 0 0 6px; font: 600 13px/1.2 var(--f-body, "Instrument Sans", system-ui, sans-serif); color: var(--ink, #2B1500); }
.tb-input {
  width: 100%;
  min-height: 50px;
  margin: 0 0 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #F6F1E8;
  box-shadow: inset 0 0 0 1px #E6DCCB;
  color: var(--ink, #2B1500);
  font: 600 16px/1.2 var(--f-body, "Instrument Sans", system-ui, sans-serif);
  -webkit-appearance: none;
  appearance: none;
}
.tb-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink, #2B1500); background: #fff; }
.tb-err { margin: -4px 0 10px; font: 600 13px/1.35 var(--f-body, "Instrument Sans", system-ui, sans-serif); color: var(--red, #D9202E); }
.tb-err[hidden], .tb-decline[hidden] { display: none; }
.tb-hint { margin: 0; font: 500 12px/1.4 var(--f-body, "Instrument Sans", system-ui, sans-serif); color: var(--ink-soft, #7A6048); }
.tb-decline {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFF1EE;
  color: #8A1D12;
  font: 600 13px/1.4 var(--f-body, "Instrument Sans", system-ui, sans-serif);
}
/* With Tabby picked, the card-processor footnotes are about the other method. */
body[data-pay-method="tabby"] .co-method,
body[data-pay-method="tabby"] #co-ziina-note { display: none; }
@media (max-width: 380px) {
  .tb-opt { grid-template-columns: 22px minmax(0, 1fr); }
  .tb-marks { grid-column: 2; }
}

/* Small phones. Tabby's checkout card renders in its own shadow root and needs
   274px; at 360 the panel leaves 264. Let it use the panel's side padding
   under 400px, and scale it slightly where even that is short (320-345px). */
@media (max-width: 400px) { .tb-card { margin-left: -13px; margin-right: -13px; } }
@media (max-width: 345px) { .tb-card { zoom: .9; } }
/* E-book buy box at 320-340px: the Tabby and Tamara rows need about 263px,
   so trim the box's side padding there instead of letting it push wider. */
@media (max-width: 340px) { .buybox { padding-left: 12px; padding-right: 12px; } }
/* The price never breaks across lines ("AED" / "149"); the note beside it wraps instead. */
.tabby-price-stack .price strong { white-space: nowrap; }
.tabby-price-stack .price small { min-width: 0; }
/* The bundle band styles every <p> with a 20px bottom margin; inside the price block Tabby and Tamara keep an even 8px gap. */
.tabby-price-stack > .tabby-promo { margin-bottom: 0; }
