/* ==========================================================================
   Tokyo Adventist Hospital / 東京衛生アドベンチスト病院
   Reservation engine: rolling CTA button + step by step booking overlay

   Inherits the site design tokens from assets/site.css. Every var() carries
   the site's own value as a fallback, so the module still renders correctly
   if it is loaded on a page that does not ship site.css.

     --teal #00a0a0   --teal-dark #007878   --teal-deeper #005f5f
     --teal-pale #eaf6f6   --ink #1a1f27   --ink-deep #0d2424
     --cloud #f4f7f7   --mist #dae7e7   --text #3a4848   --text-lt #6a7878
     --sans (Inter / Noto Sans JP)   --serif (Noto Serif JP)   --num (Barlow)

   Namespace: every selector is prefixed .tahb / .tahb-
   z-index: fab 285 (above the .mbb bar at 280), overlay 950 (above the
   existing .modal at 900).
   ========================================================================== */

.tahb-root {
  --tahb-teal: var(--teal, #00a0a0);
  --tahb-teal-dark: var(--teal-dark, #007878);
  --tahb-teal-deeper: var(--teal-deeper, #005f5f);
  --tahb-teal-pale: var(--teal-pale, #eaf6f6);
  --tahb-ink: var(--ink, #1a1f27);
  --tahb-ink-deep: var(--ink-deep, #0d2424);
  --tahb-cloud: var(--cloud, #f4f7f7);
  --tahb-mist: var(--mist, #dae7e7);
  --tahb-text: var(--text, #3a4848);
  --tahb-text-lt: var(--text-lt, #6a7878);
  --tahb-alert: var(--alert, #c0392b);
  --tahb-r: var(--r, 8px);
  --tahb-r-lg: var(--r-lg, 14px);
  --tahb-shadow: var(--shadow, 0 4px 22px rgba(0, 90, 90, .10));
  --tahb-shadow-deep: var(--shadow-deep, 0 16px 50px rgba(0, 90, 90, .18));
  --tahb-sans: var(--sans, 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', Meiryo, sans-serif);
  --tahb-serif: var(--serif, 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif);
  --tahb-num: var(--num, 'Barlow', 'Inter', sans-serif);
}

.tahb-root,
.tahb-root *,
.tahb-root *::before,
.tahb-root *::after {
  box-sizing: border-box;
}

/* Only the font family is inherited here. Declaring `font` or `color` on this
   selector would outrank the single class rules below, because `.tahb-root
   button` is the more specific selector, and every button would silently lose
   its own colour and size. */
.tahb-root button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   1. Rolling CTA button
   Fixed to the viewport, docked in the bottom right corner. Under 900px,
   where the site swaps to the .mbb action bar, it becomes a wide pill docked
   above that bar instead.
   ========================================================================== */

.tahb-fab {
  position: fixed;
  z-index: 285;
  right: 20px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 21px 13px 13px;
  border: none;
  border-radius: 99px;
  background: var(--tahb-teal);
  color: #fff;
  font-family: var(--tahb-sans);
  box-shadow: -2px 4px 20px rgba(0, 90, 90, .24);
  transition: background-color .18s, padding-right .45s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s, transform .45s cubic-bezier(.22, 1, .36, 1);
  -webkit-tap-highlight-color: transparent;
}

.tahb-fab:hover {
  background: var(--tahb-teal-dark);
  padding-right: 20px;
  box-shadow: -2px 4px 26px rgba(0, 90, 90, .34);
}

.tahb-fab:focus-visible {
  outline: 3px solid var(--tahb-teal);
  outline-offset: 2px;
}

/* The icon disc. Always upright, whatever the scroll position. */
.tahb-fab-mark {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
}

.tahb-fab-mark svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* One label line, same shape and layout in every locale -- just the calendar
   mark and the single word/character, no subtitle underneath. */
.tahb-fab-label {
  display: flex;
  align-items: center;
  line-height: 1;
}

.tahb-fab-label b {
  display: flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.05;
}

/* Attention pulse, played twice shortly after load, then never again. */
.tahb-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--tahb-teal);
  opacity: 0;
  pointer-events: none;
}

.tahb-fab.is-pulsing::after {
  animation: tahb-pulse 1.5s ease-out 2;
}

@keyframes tahb-pulse {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}

.tahb-fab.is-hidden {
  transform: translateX(160%);
  pointer-events: none;
}

/* The site swaps to its mobile action bar at 900px, so the rail does too. */
@media (max-width: 900px) {
  .tahb-fab {
    top: auto;
    bottom: calc(var(--tahb-mobile-offset, 74px) + 10px);
    right: 12px;
    left: 12px;
    transform: none;
    border-radius: 99px;
    justify-content: center;
    padding: 14px 18px;
    box-shadow: 0 6px 22px rgba(0, 90, 90, .28);
  }

  .tahb-fab-label {
    gap: 9px;
  }

  .tahb-fab-label b {
    font-size: 15px;
    letter-spacing: .06em;
  }

  .tahb-fab.is-hidden {
    transform: translateY(200%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tahb-root *,
  .tahb-root *::before,
  .tahb-root *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   2. Overlay and card
   Follows the site's existing reservation modal exactly: .modal for the scrim,
   .modal-card for the card, .modal-close for the corner button, .modal-title
   and .modal-lead for the copy, .modal-foot for the closing note.
   ========================================================================== */

.tahb-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  background: rgba(8, 24, 24, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--s3, 22px);
  overflow-y: auto;
}

.tahb-overlay.is-open { display: flex; }

.tahb-card {
  position: relative;
  background: #fff;
  border-radius: var(--tahb-r-lg);
  width: 100%;
  max-width: 560px;
  padding: var(--s5, 48px) var(--s4, 32px) var(--s4, 32px);
  box-shadow: var(--tahb-shadow-deep);
  animation: tahb-modal-in .28s cubic-bezier(.22, 1, .36, 1);
  margin: auto;
  font-family: var(--tahb-sans);
  color: var(--tahb-text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 44px);
}

@keyframes tahb-modal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Progress sits on the top edge of the card, inside the radius. */
.tahb-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tahb-mist);
}

.tahb-progress-bar {
  height: 100%;
  width: 0;
  background: var(--tahb-teal);
  transition: width .4s cubic-bezier(.22, 1, .36, 1);
}

.tahb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--tahb-cloud);
  color: var(--tahb-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .18s;
  z-index: 2;
}

.tahb-close:hover { background: var(--tahb-mist); }
.tahb-close svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; }

/* The scrolling region: everything between the title and the buttons. */
.tahb-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin-right: calc(var(--s4, 32px) * -1);
  padding-right: var(--s4, 32px);
}

@media (max-width: 640px) {
  .tahb-overlay { padding: 0; align-items: flex-end; }
  .tahb-card {
    max-width: none;
    border-radius: var(--tahb-r-lg) var(--tahb-r-lg) 0 0;
    padding: var(--s4, 32px) var(--s3, 22px) var(--s3, 22px);
    margin: 0;
    max-height: 92vh;
    max-height: 92dvh;
  }
  .tahb-body {
    margin-right: calc(var(--s3, 22px) * -1);
    padding-right: var(--s3, 22px);
  }
}

/* ==========================================================================
   3. Step content
   ========================================================================== */

.tahb-step { animation: tahb-step-in .3s cubic-bezier(.22, 1, .36, 1) both; }
.tahb-step.is-back { animation-name: tahb-step-in-back; }

@keyframes tahb-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes tahb-step-in-back {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* Step counter, using the site's .news-cat / .mo-badge pill. */
.tahb-eyebrow {
  display: inline-block;
  font-family: var(--tahb-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  background: var(--tahb-teal-pale);
  color: var(--tahb-teal-deeper);
  padding: 3px 10px;
  border-radius: 99px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Mirrors .modal-title. Uses the site's --serif token, which resolves to the
   same face the rest of the site's headings resolve to. */
.tahb-q {
  font-family: var(--tahb-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--tahb-ink);
  line-height: 1.5;
  margin: 0;
}

/* Mirrors .modal-lead. */
.tahb-help {
  font-size: 14px;
  color: var(--tahb-text-lt);
  margin: var(--s1, 8px) 0 0;
  line-height: 1.8;
}

.tahb-help b { color: var(--tahb-text); font-weight: 600; }

.tahb-slot-wrap { margin-top: var(--s3, 22px); }

/* Mirrors .prose .callout. */
.tahb-note {
  display: flex;
  gap: 10px;
  margin: var(--s3, 22px) 0 0;
  padding: 14px 16px;
  background: var(--tahb-teal-pale);
  border-left: 4px solid var(--tahb-teal);
  border-radius: 0 var(--tahb-r) var(--tahb-r) 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--tahb-teal-deeper);
}

.tahb-note.is-caution {
  background: #fdf1ef;
  border-left-color: var(--tahb-alert);
  color: #8d2a1e;
}

.tahb-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* --- choice rows, following .modal-option --- */

.tahb-choices {
  display: grid;
  gap: var(--s2, 14px);
  margin-top: var(--s3, 22px);
}

.tahb-choices.is-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 560px) {
  .tahb-choices.is-grid { grid-template-columns: 1fr; }
}

.tahb-choice {
  display: flex;
  gap: var(--s2, 14px);
  align-items: center;
  text-align: left;
  width: 100%;
  padding: var(--s3, 22px);
  border: 1.5px solid var(--tahb-mist);
  border-radius: var(--tahb-r);
  background: #fff;
  color: var(--tahb-text);
  transition: border-color .18s, background-color .18s, box-shadow .18s;
}

.tahb-choice:hover {
  border-color: var(--tahb-teal);
  background: var(--tahb-teal-pale);
  box-shadow: var(--tahb-shadow);
}

.tahb-choice:focus-visible { outline: 3px solid var(--tahb-teal); outline-offset: 2px; }

.tahb-choice[aria-pressed="true"] {
  border-color: var(--tahb-teal);
  background: var(--tahb-teal-pale);
}

.tahb-choices.is-grid .tahb-choice { padding: var(--s2, 14px) var(--s3, 22px); }

/* Mirrors .mo-icon. */
.tahb-choice-key {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tahb-teal-pale);
  color: var(--tahb-teal-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tahb-num);
  font-size: 16px;
  font-weight: 600;
  transition: background-color .18s, color .18s;
}

.tahb-choices.is-grid .tahb-choice-key { width: 34px; height: 34px; font-size: 14px; }

.tahb-choice:hover .tahb-choice-key,
.tahb-choice[aria-pressed="true"] .tahb-choice-key {
  background: var(--tahb-teal);
  color: #fff;
}

.tahb-choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Mirrors .mo-title and .mo-note. */
.tahb-choice-text b {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--tahb-ink);
  line-height: 1.5;
}

.tahb-choice-text small {
  font-size: 12.5px;
  color: var(--tahb-text-lt);
  line-height: 1.7;
}

/* --- fields --- */

.tahb-fields {
  display: flex;
  flex-direction: column;
  gap: var(--s3, 22px);
  margin-top: var(--s3, 22px);
  max-width: 460px;
}

.tahb-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--tahb-ink);
  margin-bottom: 7px;
}

.tahb-field label em { font-style: normal; color: var(--tahb-alert); margin-left: 4px; }
.tahb-field label small { font-weight: 400; color: var(--tahb-text-lt); margin-left: 6px; letter-spacing: 0; }

.tahb-input,
.tahb-textarea,
.tahb-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tahb-mist);
  border-radius: var(--tahb-r);
  background: #fff;
  font-family: var(--tahb-sans);
  font-size: 16px;
  color: var(--tahb-text);
  transition: border-color .18s, box-shadow .18s;
}

.tahb-input:focus,
.tahb-textarea:focus,
.tahb-select:focus {
  outline: none;
  border-color: var(--tahb-teal);
  box-shadow: 0 0 0 3px rgba(0, 160, 160, .16);
}

.tahb-input::placeholder,
.tahb-textarea::placeholder { color: #a8b4b4; }

.tahb-textarea { min-height: 120px; resize: vertical; line-height: 1.85; }

.tahb-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--tahb-text-lt) 50%),
                    linear-gradient(135deg, var(--tahb-text-lt) 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.tahb-dob { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; max-width: 380px; }

.tahb-counter {
  margin-top: 7px;
  font-family: var(--tahb-num);
  font-size: 11.5px;
  color: var(--tahb-text-lt);
  text-align: right;
}

.tahb-error {
  display: none;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tahb-alert);
}

.tahb-error.is-shown { display: block; }

.tahb-field.has-error .tahb-input,
.tahb-field.has-error .tahb-textarea,
.tahb-field.has-error .tahb-select {
  border-color: var(--tahb-alert);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

/* ==========================================================================
   4. Calendar, following the site's .hours table treatment
   ========================================================================== */

.tahb-cal {
  border: 1px solid var(--tahb-mist);
  border-radius: var(--tahb-r);
  background: #fff;
  overflow: hidden;
  max-width: 460px;
}

.tahb-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--tahb-teal-deeper);
  color: #fff;
}

.tahb-cal-nav b {
  font-family: var(--tahb-serif);
  font-size: 16px;
  font-weight: 600;
}

.tahb-cal-nav button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--tahb-r);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .18s, opacity .18s;
}

.tahb-cal-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.tahb-cal-nav button:disabled { opacity: .32; cursor: not-allowed; }
.tahb-cal-nav svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.tahb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 12px;
}

.tahb-cal-dow {
  text-align: center;
  font-family: var(--tahb-num);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--tahb-text-lt);
  padding: 2px 0 6px;
}

.tahb-cal-dow.is-sun { color: var(--tahb-alert); }
.tahb-cal-dow.is-sat { color: #4f7f9b; }

.tahb-day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--tahb-r);
  background: transparent;
  font-family: var(--tahb-num);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--tahb-ink);
  transition: background-color .15s, border-color .15s, color .15s;
}

.tahb-day.is-empty { visibility: hidden; }

.tahb-day.is-open:hover {
  border-color: var(--tahb-teal);
  background: var(--tahb-teal-pale);
  color: var(--tahb-teal-deeper);
}

.tahb-day.is-closed {
  color: #bcc6c6;
  cursor: not-allowed;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(0, 90, 90, .045) 4px 8px);
}

.tahb-day.is-am-only::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c98a2e;
}

.tahb-day.is-picked {
  border-color: var(--tahb-teal);
  background: var(--tahb-teal);
  color: #fff;
  font-weight: 600;
}

.tahb-day-rank {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tahb-teal-deeper);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}

.tahb-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 12px 12px;
  padding-top: 11px;
  border-top: 1px solid var(--tahb-mist);
  font-size: 11.5px;
  color: var(--tahb-text-lt);
}

.tahb-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tahb-cal-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.tahb-cal-legend i.k-closed { background: #cdd6d6; }
.tahb-cal-legend i.k-am { background: #c98a2e; }
.tahb-cal-legend i.k-pick { background: var(--tahb-teal); }

/* picked dates, each with its own row of times */

.tahb-picks {
  margin-top: var(--s2, 14px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}

.tahb-pick {
  border: 1px solid var(--tahb-mist);
  border-radius: var(--tahb-r);
  background: #fff;
  overflow: hidden;
}

.tahb-pick-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  background: var(--tahb-cloud);
  border-bottom: 1px solid var(--tahb-mist);
}

.tahb-pick-rank {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--tahb-teal);
  color: #fff;
  font-family: var(--tahb-num);
  font-size: 12px;
  font-weight: 600;
}

.tahb-pick-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--tahb-ink);
  margin-right: auto;
}

.tahb-pick-drop {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--tahb-text-lt);
  transition: background-color .18s, color .18s;
}

.tahb-pick-drop:hover { background: #fdf1ef; color: var(--tahb-alert); }
.tahb-pick-drop svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.tahb-pick-slots { padding: 11px 12px 12px; }

.tahb-slot-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tahb-text-lt);
  margin-bottom: 8px;
}

.tahb-slot-label small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tahb-text-lt);
  opacity: .85;
}

.tahb-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tahb-slot {
  padding: 7px 12px;
  border: 1px solid var(--tahb-mist);
  border-radius: 99px;
  background: #fff;
  font-family: var(--tahb-num);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tahb-text);
  font-variant-numeric: tabular-nums;
  transition: background-color .18s, border-color .18s, color .18s;
}

.tahb-slot:hover { border-color: var(--tahb-teal); color: var(--tahb-teal-deeper); }

.tahb-slot[aria-pressed="true"] {
  border-color: var(--tahb-teal);
  background: var(--tahb-teal);
  color: #fff;
}

/* "Earliest available" is wording rather than a clock time, so it takes the
   body face and sits slightly apart from the numeric chips. */
.tahb-slot.is-earliest {
  font-family: var(--tahb-sans);
  font-size: 12.5px;
  background: var(--tahb-teal-pale);
  border-color: #cbe3e3;
  color: var(--tahb-teal-deeper);
  margin-right: 4px;
}

.tahb-slot.is-earliest[aria-pressed="true"] {
  background: var(--tahb-teal);
  border-color: var(--tahb-teal);
  color: #fff;
}

.tahb-pick-empty {
  padding: 14px;
  border: 1px dashed var(--tahb-mist);
  border-radius: var(--tahb-r);
  font-size: 13px;
  color: var(--tahb-text-lt);
  text-align: center;
}

/* ==========================================================================
   5. Review and completion
   ========================================================================== */

.tahb-review {
  border: 1px solid var(--tahb-mist);
  border-radius: var(--tahb-r);
  background: #fff;
  overflow: hidden;
  margin-top: var(--s3, 22px);
}

.tahb-review-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 14px;
  border-bottom: 1px solid var(--tahb-mist);
  font-size: 14px;
}

.tahb-review-row:last-child { border-bottom: none; }
.tahb-review-row:nth-child(odd) { background: var(--tahb-cloud); }

.tahb-review-row dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tahb-ink);
  margin: 0;
}

.tahb-review-row dd {
  margin: 0;
  line-height: 1.75;
  white-space: pre-line;
  word-break: break-word;
  color: var(--tahb-text);
}

.tahb-review-edit {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--tahb-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tahb-review-edit:hover { color: var(--tahb-teal-deeper); }

@media (max-width: 560px) {
  .tahb-review-row { grid-template-columns: 1fr auto; }
  .tahb-review-row dd { grid-column: 1 / -1; }
}

.tahb-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: var(--s2, 14px);
  padding: 13px 15px;
  border: 1.5px solid var(--tahb-mist);
  border-radius: var(--tahb-r);
  background: var(--tahb-cloud);
  font-size: 13px;
  line-height: 1.85;
  color: var(--tahb-text);
  cursor: pointer;
  transition: border-color .18s;
}

.tahb-consent:hover { border-color: var(--tahb-teal); }

.tahb-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--tahb-teal);
}

.tahb-consent a { color: var(--tahb-teal-dark); text-underline-offset: 3px; }

.tahb-done-mark {
  width: 56px;
  height: 56px;
  margin: 0 0 var(--s3, 22px);
  border-radius: 50%;
  background: var(--tahb-teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tahb-done-mark svg { width: 25px; height: 25px; fill: none; stroke: var(--tahb-teal-deeper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.tahb-code-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--s3, 22px);
  padding: 13px 16px;
  border-radius: var(--tahb-r);
  background: var(--tahb-cloud);
  border: 1px solid var(--tahb-mist);
}

.tahb-code-row .lbl {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--tahb-text-lt);
  text-transform: uppercase;
  font-weight: 700;
}

.tahb-code {
  font-family: var(--tahb-num);
  font-size: 20px;
  font-weight: 600;
  color: var(--tahb-teal-deeper);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.tahb-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s3, 22px);
}

/* ==========================================================================
   6. Buttons and the closing note
   Buttons follow .btn / .btn-teal / .btn-ghost. The closing note follows
   .modal-foot: small type above a hairline rule, with the phone number as an
   underlined link.
   ========================================================================== */

.tahb-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s3, 22px);
}

.tahb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--tahb-r);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .18s, color .18s, box-shadow .18s, transform .18s, border-color .18s;
}

.tahb-btn-primary { background: var(--tahb-teal); color: #fff; }

.tahb-btn-primary:hover {
  background: var(--tahb-teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--tahb-shadow);
}

.tahb-btn-primary:disabled {
  background: #bcc6c6;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.tahb-btn-ghost {
  background: #fff;
  color: var(--tahb-teal-dark);
  border: 1px solid var(--tahb-mist);
}

.tahb-btn-ghost:hover { border-color: var(--tahb-teal); background: var(--tahb-teal-pale); }

.tahb-btn-quiet {
  background: transparent;
  color: var(--tahb-text-lt);
  padding: 13px 8px;
  font-weight: 600;
}

.tahb-btn-quiet:hover { color: var(--tahb-teal-dark); text-decoration: underline; text-underline-offset: 3px; }

.tahb-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.tahb-foot-spacer { margin-left: auto; }

/* Mirrors .modal-foot. */
.tahb-modal-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--tahb-text-lt);
  line-height: 1.8;
  margin-top: var(--s3, 22px);
  padding-top: var(--s2, 14px);
  border-top: 1px solid var(--tahb-mist);
}

.tahb-modal-foot a { color: var(--tahb-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.tahb-modal-foot .tel { font-family: var(--tahb-num); font-weight: 600; }
.tahb-modal-foot .hint { margin-left: auto; }

.tahb-lang-switch {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12.5px;
  color: var(--tahb-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tahb-lang-switch:hover { color: var(--tahb-teal-deeper); }

@media (max-width: 560px) {
  .tahb-modal-foot .hint { display: none; }
  .tahb-btn { padding: 13px 20px; }
}

/* Lock background scroll while the card is open. */
html.tahb-locked,
body.tahb-locked { overflow: hidden !important; }

@media print {
  .tahb-fab, .tahb-close, .tahb-foot, .tahb-progress, .tahb-modal-foot { display: none !important; }
  .tahb-overlay { position: static; background: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tahb-card { box-shadow: none; border-radius: 0; max-height: none; padding: 0; }
  .tahb-body { overflow: visible; }
}
