/* The location has no time zone, so no time can be booked there; said before Confirm, not after. */
#akashic-health-records-patient-portal-root .self-booking-zone-missing {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--warning);
  border-radius: 6px;
  background: var(--amber-soft);
  font-size: 13px;
  color: var(--ink);
}

#akashic-health-records-patient-portal-root .self-booking-zone-missing p {
  margin: 0;
}

#akashic-health-records-patient-portal-root .self-booking-zone-missing .self-booking-zone-missing__title {
  margin-bottom: 2px;
  font-weight: var(--ak-heading-weight);
  color: var(--amber-ink, var(--ink-strong));
}

/* The practice agreements at the review step: one box and one "Read it" per outstanding document. */
#akashic-health-records-patient-portal-root .self-booking-agreements {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--amber-line, var(--warning));
  border-radius: 6px;
  background: var(--amber-soft);
  font-size: 13px;
  color: var(--ink);
  text-align: start;
}

#akashic-health-records-patient-portal-root .self-booking-agreements--failed {
  border-color: var(--danger);
  background: var(--red-soft);
}

#akashic-health-records-patient-portal-root .self-booking-agreements p {
  margin: 0 0 6px;
}

#akashic-health-records-patient-portal-root .self-booking-agreements .self-booking-agreements__title {
  font-weight: var(--ak-heading-weight);
  color: var(--amber-ink, var(--ink-strong));
}

#akashic-health-records-patient-portal-root .self-booking-agreements--failed .self-booking-agreements__title {
  color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root .self-booking-agreements__option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  margin-top: 8px;
  line-height: 1.45;
}

/* Drawn here because the host strips the native box, which would hide the tick. */
#akashic-health-records-patient-portal-root .self-booking-agreements__option input[type="checkbox"] {
  box-sizing: border-box;
  flex: none;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--amber-line, var(--warning));
  border-radius: 4px;
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .self-booking-agreements__option input[type="checkbox"]:checked {
  border-color: var(--success);
  background-color: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M4.5 10.5 8.2 14 15.5 6'/%3E%3C/svg%3E");
}

#akashic-health-records-patient-portal-root .self-booking-agreements__option input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Each agreement is tapped on a phone: the label and Read it are at least 24px tall. */
#akashic-health-records-patient-portal-root .self-booking-agreements__option label {
  margin: 0;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--amber-ink, var(--ink));
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .self-booking-agreements__option button.self-booking-agreements__read {
  min-height: 24px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: var(--ak-heading-weight);
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .self-booking-agreements__option button.self-booking-agreements__read:hover {
  text-decoration: underline;
}

#akashic-health-records-patient-portal-root p.self-booking-agreements__checking {
  margin-top: 12px;
  font-size: 13px;
  color: var(--foreground);
  text-align: start;
}

/* The dialog's header, as the booking decks draw it: the title, the practice it books with, and a
   hairline under them. The title keeps the overlay size and sage (Spencer, 2026-09-09). */
#akashic-health-records-patient-portal-root .self-booking-head {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

#akashic-health-records-patient-portal-root p.self-booking-practice {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* The current step's question. */
#akashic-health-records-patient-portal-root .self-booking-q {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: var(--ak-heading-weight);
  color: var(--ink-strong);
}

/* An answered step: its label in the one label column, its value beside it (Spencer, 2026-09-09). */
#akashic-health-records-patient-portal-root .self-booking-flab {
  padding-top: 2px;
  font-size: 11.5px;
  font-weight: var(--ak-label-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

#akashic-health-records-patient-portal-root .self-booking-fval {
  display: block;
  font-size: 14px;
  font-weight: var(--ak-heading-weight);
  color: var(--ink-strong);
}

/* The current question over the suggestions (deck .curq), at the bold cap. */
#akashic-health-records-patient-portal-root .self-booking-curq {
  margin: 0;
  font-size: 13px;
  font-weight: var(--ak-heading-weight);
  color: var(--ink-strong);
}

/* A service suggestion: a card to tap; the recommendation wears the sage tint and says so. Hover
   keeps to the background so pointing at a card never makes it look recommended. */
#akashic-health-records-patient-portal-root .self-booking-sug {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--ak-card-radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .self-booking-sug:hover {
  background: var(--line-soft);
}

#akashic-health-records-patient-portal-root .self-booking-sug.self-booking-sug--top {
  border-color: var(--green-line);
  background: var(--green-soft);
}

#akashic-health-records-patient-portal-root .self-booking-sug-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: var(--ak-heading-weight);
  color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root .self-booking-recmd {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--green-soft);
  font-size: 13px;
  font-weight: var(--ak-heading-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .self-booking-sug-why {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root button.self-booking-sugout {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .self-booking-sugout-link,
#akashic-health-records-patient-portal-root button.self-booking-note-link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: var(--ak-heading-weight);
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .self-booking-note {
  padding: 10px 12px;
  border: 1px solid var(--amber-line, var(--warning));
  border-radius: 6px;
  background: var(--amber-soft);
  font-size: 13px;
  color: var(--ink);
}

/* The review's action row: Back as a link at the left, the one commitment at the right. */
#akashic-health-records-patient-portal-root .self-booking-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}

#akashic-health-records-patient-portal-root button.self-booking-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}

#akashic-health-records-patient-portal-root p.self-booking-whynot {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
  color: var(--ink-muted);
}

/* The outcome: one statement with its tick, then the same label column the answers used. */
#akashic-health-records-patient-portal-root .self-booking-done {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 0 4px;
}

#akashic-health-records-patient-portal-root .self-booking-done-tick {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--success);
  color: var(--primary-foreground);
}

#akashic-health-records-patient-portal-root .self-booking-done-title {
  margin: 0;
  font-size: 15px;
  font-weight: var(--ak-heading-weight);
  color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root p.self-booking-done-sub {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .self-booking-done-rows {
  margin-top: 12px;
  padding: 0 2px;
}

/* A sent request: no time yet, so a waiting mark over one centred statement. */
#akashic-health-records-patient-portal-root .self-booking-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  text-align: center;
}

#akashic-health-records-patient-portal-root .self-booking-sent-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--warning);
  font-size: 21px;
}

#akashic-health-records-patient-portal-root .self-booking-sent .self-booking-done-title {
  font-weight: 500;
  line-height: 1.55;
}

#akashic-health-records-patient-portal-root .self-booking-sent p.self-booking-done-sub {
  max-width: 32ch;
  font-weight: 400;
}

/* The steps scroll inside the dialog; the header above and the actions below stay put. */
#akashic-health-records-patient-portal-root .self-booking-body {
  max-height: min(550px, calc(100dvh - 280px));
  overflow-y: auto;
}

#akashic-health-records-patient-portal-root .self-booking-note p {
  margin: 0;
}

/* A day or part of the day to choose, several at once. */
#akashic-health-records-patient-portal-root button.self-booking-chip {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-strong);
  cursor: pointer;
}

#akashic-health-records-patient-portal-root button.self-booking-chip:hover {
  background: var(--line-soft);
}

#akashic-health-records-patient-portal-root button.self-booking-chip.self-booking-chip--on {
  border-color: var(--primary);
  background: var(--blue-soft);
  color: var(--primary);
}
