#aob-agenda-root {
  --aoba-brand: #AF332F;
  /* Wide enough for the calendar + slot-list pair; single-column steps
     just centre inside the same card. */
  max-width: 680px;
  margin: 0 auto;
  font-family: inherit;
  color: #222;
}
/* Every view lives inside one soft card (reference design 2026-08-19). */
.aoba-card {
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 4px 18px rgba(20, 30, 40, 0.06);
}
/* Step indicator: dots + connecting lines, labels underneath. */
.aoba-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
}
.aoba-steps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
}
.aoba-steps-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #d5d5dc;
  color: #8a8f98;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.aoba-steps-item.active .aoba-steps-dot {
  border-color: var(--aoba-brand);
  background: var(--aoba-brand);
  color: #fff;
}
.aoba-steps-item.done .aoba-steps-dot {
  border-color: var(--aoba-brand);
  color: var(--aoba-brand);
}
.aoba-steps-label {
  font-size: 11px;
  color: #8a8f98;
  white-space: nowrap;
}
.aoba-steps-item.active .aoba-steps-label {
  color: #222;
  font-weight: 600;
}
.aoba-steps-line {
  flex: 1;
  max-width: 70px;
  height: 2px;
  background: #e3e3e8;
  margin-top: 13px;
}
.aoba-steps-line.done {
  background: var(--aoba-brand);
}
/* Date+time: calendar pane left, slot pills right; stacked when narrow. */
.aoba-datetime {
  display: flex;
  gap: 28px;
  margin-bottom: 16px;
}
.aoba-calpane {
  flex: 1 1 55%;
  min-width: 0;
}
.aoba-slotpane {
  flex: 1 1 45%;
  min-width: 0;
}
.aoba-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.aoba-cal-month {
  font-weight: 700;
}
.aoba-cal-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #444;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  /* Centre the glyph itself: lsaquo/rsaquo hang from the baseline, so a
     plain button renders them visibly low/uneven between the two. The
     1px bottom padding is optical correction on top of true centring. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 1px;
}
.aoba-cal-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.aoba-cal-arrow + .aoba-cal-arrow {
  margin-left: 6px;
}
.aoba-cal-notice {
  background: #eef5fd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85em;
  color: #33526e;
  margin-bottom: 12px;
}
.aoba-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.aoba-cal-wd {
  font-size: 11px;
  font-weight: 600;
  color: #8a8f98;
  padding: 4px 0;
}
.aoba-cal-cell {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.aoba-cal-daybtn {
  width: 32px;
  height: 32px;
  margin: auto;
  border: none;
  border-radius: 50%;
  background: none;
  color: #222;
  font-weight: 600;
  cursor: pointer;
}
.aoba-cal-daybtn:hover {
  background: #f0f0f3;
}
.aoba-cal-daybtn.active {
  background: var(--aoba-brand);
  color: #fff;
}
.aoba-cal-dayoff {
  color: #c3c6cb;
}
/* Slot pills: outlined in the brand colour, one per row like the
   reference's time-slot list. */
.aoba-slotpane-title {
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 1.2em;
}
.aoba-slotlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}
.aoba-slot {
  padding: 11px 0;
  border: 1.5px solid var(--aoba-brand);
  border-radius: 9px;
  background: #fff;
  color: var(--aoba-brand);
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  text-align: center;
}
.aoba-slot:hover, .aoba-slot:focus {
  background: var(--aoba-brand);
  color: #fff;
}
@media (max-width: 560px) {
  .aoba-datetime {
    flex-direction: column;
    gap: 16px;
  }
  .aoba-slotlist {
    max-height: 240px;
  }
  .aoba-card {
    padding: 18px 16px;
  }
}
.aoba-step h3 {
  margin: 0 0 16px;
  font-size: 1.25em;
}
.aoba-loading, .aoba-empty {
  text-align: center;
  padding: 24px 0;
  color: #666;
}
.aoba-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.aoba-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 1em;
  text-align: left;
  /* This is a <button> -- many themes ship their own default button
     styling (often white text) that beats plain inheritance from
     #aob-agenda-root's color, since a rule that targets the element
     directly always wins over one just inherited from an ancestor.
     Found live 2026-08-18: white service-name text on this white
     background, invisible except for the duration span next to it
     (which had its own explicit color and was fine). */
  color: #222;
}
.aoba-option:hover, .aoba-option:focus {
  border-color: var(--aoba-brand);
}
.aoba-option-name {
  color: #222;
}
.aoba-option-meta {
  color: #777;
  font-size: 0.9em;
  white-space: nowrap;
}
.aoba-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.aoba-day {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #222;
  cursor: pointer;
  white-space: nowrap;
}
.aoba-day.active {
  background: var(--aoba-brand);
  color: #fff;
  border-color: var(--aoba-brand);
}
.aoba-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.aoba-time {
  padding: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  cursor: pointer;
}
.aoba-time:hover, .aoba-time:focus {
  border-color: var(--aoba-brand);
  color: var(--aoba-brand);
}
#aoba-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
#aoba-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9em;
  color: #444;
}
#aoba-form input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}
.aoba-marketing-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}
.aoba-marketing-check input {
  width: auto;
  flex: 0 0 auto;
}
.aoba-summary {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.aoba-submit {
  padding: 12px;
  border: none;
  border-radius: 8px;
  /* Real fallback, not just belt-and-braces -- the JS also sets this
     inline per-render, but a theme's own button reset can beat an inline
     style if it uses !important, leaving white text with no background
     underneath it (found live 2026-08-18: "letras blancas fondo blanco"). */
  background: var(--aoba-brand);
  color: #fff;
  font-size: 1em;
  cursor: pointer;
}
.aoba-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
/* Footer row of the contact form: Volver + Confirmar on one aligned line
   (reference's Back/Next pairing), submit no longer full-width. */
.aoba-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.aoba-actions .aoba-submit {
  padding-left: 26px;
  padding-right: 26px;
}
.aoba-back {
  background: #f2f2f5;
  border: none;
  border-radius: 8px;
  color: #555;
  cursor: pointer;
  padding: 9px 18px;
  font-size: 0.9em;
  font-weight: 600;
}
.aoba-back:hover {
  background: #e8e8ec;
}
.aoba-confirmation {
  text-align: center;
}
.aoba-note {
  color: #666;
  font-size: 0.9em;
}
.aoba-manage-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.aoba-manage-actions button {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.aoba-manage-actions .aoba-cancel {
  color: #b3261e;
  border-color: #f0c6c3;
}

@media (max-width: 480px) {
  .aoba-times {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }
}
