/* Alumed · reserva de valoración (#1606) — variant B «Semana». Scoped to the shortcode's mount
 * point: the page theme is not reset, and nothing here leaks out. 375 px first; dark-mode aware. */
.alumed-booking {
  --ab-ink: #302e2b;
  --ab-muted: #6b6560;
  --ab-surface: #ffffff;
  --ab-cream: #fbf8f2;
  --ab-line: #e6ded3;
  --ab-wine: #583b47;
  --ab-wine-ink: #ffffff;
  --ab-accent: #986638;
  --ab-soft: #f3ece6;
  --ab-alert: #8a2f2f;
  color: var(--ab-ink);
  background: var(--ab-cream);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
  border-radius: 16px;
  padding: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (prefers-color-scheme: dark) {
  .alumed-booking {
    --ab-ink: #f1ece6;
    --ab-muted: #b8afa6;
    --ab-surface: #24201f;
    --ab-cream: #1a1716;
    --ab-line: #3d3633;
    --ab-wine: #c99aae;
    --ab-wine-ink: #1a1716;
    --ab-accent: #e0b07c;
    --ab-soft: #2e2826;
    --ab-alert: #f0a3a3;
  }
}
:where(.alumed-booking) *,
:where(.alumed-booking) *::before,
:where(.alumed-booking) *::after {
  box-sizing: border-box;
}
:where(.alumed-booking) [hidden] {
  display: none !important;
}
:where(.alumed-booking) :where(button, input, textarea) {
  font: inherit;
  color: inherit;
}
/* Component rules are prefixed with the mount's id: a WordPress theme styles bare buttons with
 * selectors like `[type=button]:hover` (0,2,0), which a class-level rule would tie or lose to.
 * `color: inherit` at (1,0,1) beats a theme's bare `button { color }` for every button that sets
 * no colour of its own (#1606: Astra's white ink on the unselected type options, days, week arrows
 * and focus chips); the component rules at (1,1,0) and above still set theirs. `font: inherit`
 * does the same for the font (#1629: Astra's phone `button { font-size: 0.6875rem }` drew the time
 * slots, focus chips and text links at 10 px); `.ab-button`, `.ab-nav` and `.ab-cell` still set
 * their own size or weight above it. */
#alumed-booking button {
  color: inherit;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}
:where(.alumed-booking) button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
:where(.alumed-booking) button:disabled {
  cursor: default;
  opacity: 0.45;
}
:where(.alumed-booking) :focus-visible {
  outline: 3px solid var(--ab-accent);
  outline-offset: 2px;
}
:where(.alumed-booking) [tabindex='-1']:focus {
  outline: none;
}
:where(.alumed-booking) a {
  color: inherit;
  text-underline-offset: 3px;
}
#alumed-booking .ab-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ab-wine);
}
/* Every `max(14px, …)` in this file is a floor (#1629, accessibility card 8.2: no body or CTA text
 * under 14 px at 375): a theme's smaller root shrinks every rem (Astra's 91.2 % on phones), and the
 * floor keeps the design size wherever 1rem is 16 px. */
#alumed-booking .ab-lede,
#alumed-booking .ab-note,
#alumed-booking .ab-hint {
  margin: 0 0 12px;
  color: var(--ab-muted);
  font-size: max(14px, 0.9rem);
}
#alumed-booking .ab-hint {
  margin: 4px 0 0;
}
#alumed-booking .ab-live:empty {
  display: none;
}
#alumed-booking .ab-live,
#alumed-booking .ab-loading,
#alumed-booking .ab-empty {
  margin: 12px 0;
  color: var(--ab-muted);
}

/* segmented type control + focus chips */
#alumed-booking .ab-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--ab-soft);
  border-radius: 12px;
}
#alumed-booking .ab-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: center;
}
#alumed-booking .ab-type[aria-pressed='true'] {
  background: var(--ab-surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
  color: var(--ab-wine);
}
#alumed-booking .ab-type-title {
  font-weight: 600;
  font-size: max(14px, 0.92rem);
  line-height: 1.2;
}
#alumed-booking .ab-type-detail {
  font-size: max(14px, 0.72rem);
  color: var(--ab-muted);
  line-height: 1.2;
}
#alumed-booking .ab-focus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
#alumed-booking .ab-focus-label {
  width: 100%;
  font-size: 0.9rem;
  color: var(--ab-muted);
}
#alumed-booking .ab-chip {
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  background: var(--ab-surface);
}
#alumed-booking .ab-chip[aria-pressed='true'] {
  border-color: var(--ab-wine);
  background: var(--ab-wine);
  color: var(--ab-wine-ink);
}

/* week strip */
#alumed-booking .ab-week {
  margin-top: 16px;
}
#alumed-booking .ab-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
#alumed-booking .ab-week-label {
  font-size: 0.85rem;
  color: var(--ab-muted);
  text-align: center;
}
#alumed-booking .ab-nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ab-line);
  border-radius: 50%;
  background: var(--ab-surface);
  font-size: 1.3rem;
  line-height: 1;
}
#alumed-booking .ab-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#alumed-booking .ab-day {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 64px;
  padding: 6px 0;
  border: 1px solid var(--ab-line);
  border-radius: 10px;
  background: var(--ab-surface);
}
#alumed-booking .ab-day[aria-pressed='true'] {
  border-color: var(--ab-wine);
  background: var(--ab-wine);
  color: var(--ab-wine-ink);
}
#alumed-booking .ab-day-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
#alumed-booking .ab-day-number {
  font-size: 1.05rem;
  font-weight: 600;
}
#alumed-booking .ab-day-count {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* timetable: a row per start, a column per doctora */
#alumed-booking .ab-table-wrap {
  margin-top: 16px;
}
#alumed-booking .ab-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  table-layout: fixed;
}
#alumed-booking .ab-table caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 4px;
}
#alumed-booking .ab-table th {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ab-muted);
  text-align: left;
  padding: 0 4px;
}
#alumed-booking .ab-table thead th:first-child,
#alumed-booking .ab-table tbody th {
  width: 76px;
}
#alumed-booking .ab-table td {
  padding: 0 4px;
}
#alumed-booking .ab-cell {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ab-wine);
  border-radius: 10px;
  background: var(--ab-surface);
  color: var(--ab-wine);
  font-weight: 600;
}
#alumed-booking .ab-cell:hover {
  background: var(--ab-wine);
  color: var(--ab-wine-ink);
}
#alumed-booking .ab-none {
  display: block;
  text-align: center;
  color: var(--ab-line);
}

/* sheet, review and results */
#alumed-booking .ab-sheet,
#alumed-booking .ab-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--ab-line);
  border-radius: 14px;
  background: var(--ab-surface);
}
#alumed-booking .ab-sheet h3,
#alumed-booking .ab-result h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--ab-wine);
}
#alumed-booking .ab-choice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ab-soft);
  font-weight: 600;
}
#alumed-booking .ab-field {
  margin-bottom: 12px;
}
#alumed-booking .ab-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.92rem;
}
#alumed-booking .ab-field input,
#alumed-booking .ab-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ab-line);
  border-radius: 10px;
  background: var(--ab-cream);
}
#alumed-booking .ab-trap-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#alumed-booking .ab-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
/* A size of its own at (1,1,0) (#1629): the zero-specificity `font: inherit` above loses to a
 * theme's bare `button { font-size }` — Astra's 0.6875rem at <= 544 px on alumed.mx, 10 px. */
#alumed-booking .ab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ab-wine);
  color: var(--ab-wine-ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
#alumed-booking .ab-link {
  border: 0;
  background: none;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ab-muted);
}
#alumed-booking .ab-error,
#alumed-booking .ab-alert {
  margin: 8px 0;
  color: var(--ab-alert);
  font-weight: 600;
}
#alumed-booking .ab-strong {
  font-weight: 600;
  font-size: 1.05rem;
}
#alumed-booking .ab-review dl,
#alumed-booking .ab-result dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
}
#alumed-booking .ab-review dt,
#alumed-booking .ab-result dt {
  color: var(--ab-muted);
}
#alumed-booking .ab-review dd,
#alumed-booking .ab-result dd {
  margin: 0;
  overflow-wrap: anywhere;
}
/* The Maps and Meet links of the confirmation (HO-145): wine, underlined by the `a` rule above. */
#alumed-booking .ab-result dd a {
  color: var(--ab-wine);
  font-weight: 600;
}
#alumed-booking .ab-consent {
  margin-top: 16px;
}
/* Never under 14 px, whatever the theme's root (#1629): Astra's 91.2 % root on phones made 0.92rem
 * 13.42 px, and even 0.95rem is 13.86 px there. */
#alumed-booking .ab-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: max(14px, 0.92rem);
}
#alumed-booking .ab-consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
}
#alumed-booking .ab-challenge {
  margin-top: 12px;
}

@media (min-width: 640px) {
  .alumed-booking {
    padding: 24px;
  }
  #alumed-booking .ab-type-title {
    font-size: 1rem;
  }
  #alumed-booking .ab-type-detail {
    font-size: max(14px, 0.8rem);
  }
  #alumed-booking .ab-table thead th:first-child,
  #alumed-booking .ab-table tbody th {
    width: 110px;
  }
}
