/* CoquiWeb Booking widget. Theme from the host page by setting any of these on
   the embed element (or any ancestor):
     --cqb-accent, --cqb-accent-ink, --cqb-radius, --cqb-ink, --cqb-bg
   Defaults are supplied as var() fallbacks so a host override inherits in
   cleanly. No font-family is set anywhere — the widget inherits host fonts. */
.cqb {
  /* internal palette (not part of the documented theming surface) */
  --cqb-muted: #6f7671;
  --cqb-surface: #faf9f7;
  --cqb-line: #e7e5e0;
  --cqb-summary-bg: #23271f;
  --cqb-summary-ink: #f3f2ee;
  --cqb-danger: #c43b54;

  color: var(--cqb-ink, #1b2420);
  background: transparent; /* blend into the host section, not a white box */
  box-sizing: border-box;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}
.cqb *, .cqb *::before, .cqb *::after { box-sizing: border-box; }

.cqb-section { margin: 0 0 26px; }
.cqb-section[hidden] { display: none; }
.cqb-h {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cqb-muted);
  margin: 0 0 12px;
  font-weight: 600;
}

/* Services */
.cqb-services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cqb-card {
  text-align: left;
  border: 1px solid var(--cqb-line);
  background: var(--cqb-bg, #ffffff);
  border-radius: var(--cqb-radius, 12px);
  padding: 18px 20px;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 1px 3px rgba(36,24,32,0.05);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cqb-card:hover {
  border-color: var(--cqb-accent, #0f766e);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(36,24,32,0.45);
}
.cqb-card.is-selected {
  border-color: var(--cqb-accent, #0f766e);
  background: var(--cqb-bg, #ffffff);
  box-shadow: 0 0 0 1px var(--cqb-accent, #0f766e) inset, 0 14px 30px -18px rgba(36,24,32,0.4);
}
.cqb-card-name { font-size: 16px; font-weight: 600; display: block; }
.cqb-card-meta { font-size: 13px; color: var(--cqb-muted); margin-top: 4px; }
.cqb-card-price { color: var(--cqb-accent, #0f766e); font-weight: 600; }

/* Day strip */
.cqb-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cqb-day {
  flex: 0 0 auto;
  min-width: 62px;
  text-align: center;
  border: 1px solid var(--cqb-line);
  background: var(--cqb-surface);
  border-radius: var(--cqb-radius, 12px);
  padding: 10px 8px;
  cursor: pointer;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.cqb-day:hover { border-color: var(--cqb-accent, #0f766e); }
.cqb-day.is-selected {
  border-color: var(--cqb-accent, #0f766e);
  background: var(--cqb-accent, #0f766e);
  color: var(--cqb-accent-ink, #ffffff);
}
.cqb-day-dow { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.cqb-day-num { font-size: 20px; font-weight: 700; line-height: 1.1; }
.cqb-day-mon { font-size: 11px; color: var(--cqb-muted); }
.cqb-day.is-selected .cqb-day-mon { color: var(--cqb-accent-ink, #ffffff); opacity: .85; }

/* Time grid */
.cqb-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cqb-time {
  border: 1px solid var(--cqb-line);
  background: var(--cqb-surface);
  border-radius: 9px;
  padding: 10px 6px;
  font-size: 14px;
  cursor: pointer;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.cqb-time:hover { border-color: var(--cqb-accent, #0f766e); }
.cqb-time.is-selected {
  border-color: var(--cqb-accent, #0f766e);
  background: var(--cqb-accent, #0f766e);
  color: var(--cqb-accent-ink, #ffffff);
}
.cqb-empty { color: var(--cqb-muted); font-size: 14px; padding: 6px 0; }

/* Details */
.cqb-fields { display: grid; gap: 12px; }
.cqb-field { display: grid; gap: 5px; }
.cqb-label { font-size: 13px; color: var(--cqb-muted); font-weight: 600; }
.cqb-label span { font-weight: 400; }
.cqb-input {
  font: inherit;
  color: var(--cqb-ink, #1b2420);
  background: var(--cqb-bg, #ffffff);
  border: 1px solid var(--cqb-line);
  border-radius: 9px;
  padding: 11px 12px;
  width: 100%;
}
.cqb-input:focus { outline: none; border-color: var(--cqb-accent, #0f766e); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cqb-accent, #0f766e) 18%, transparent); }
.cqb-input.is-invalid { border-color: var(--cqb-danger); }
.cqb-field-err { font-size: 12px; color: var(--cqb-danger); min-height: 0; }
.cqb-turnstile { margin: 2px 0; min-height: 65px; }

/* Summary bar */
.cqb-summary {
  background: var(--cqb-summary-bg);
  color: var(--cqb-summary-ink);
  border-radius: var(--cqb-radius, 12px);
  padding: 16px 18px;
  margin: 0 0 18px;
  display: grid;
  gap: 6px;
}
.cqb-summary[hidden] { display: none; }
.cqb-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cqb-summary-row span:first-child { opacity: .7; }
.cqb-summary-total { border-top: 1px solid rgba(255,255,255,.16); padding-top: 8px; margin-top: 2px; font-weight: 700; font-size: 16px; }

/* Buttons + states */
.cqb-confirm {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 15px;
  color: var(--cqb-accent-ink, #ffffff);
  background: var(--cqb-accent, #0f766e);
  cursor: pointer;
  transition: opacity .15s, filter .15s;
}
.cqb-confirm:hover:not(:disabled) { filter: brightness(1.06); }
.cqb-confirm:disabled { opacity: .45; cursor: not-allowed; }
.cqb-note { font-size: 14px; margin: 10px 0 0; padding: 11px 13px; border-radius: 9px; }
.cqb-note.is-error { background: #fdeaee; color: #8a1f33; }
.cqb-note.is-info { background: var(--cqb-surface); color: var(--cqb-muted); }

/* Success */
.cqb-success { text-align: center; padding: 26px 18px; }
.cqb-success-check {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--cqb-accent, #0f766e); color: var(--cqb-accent-ink, #ffffff);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 14px;
}
.cqb-success-title { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.cqb-success-body { color: var(--cqb-muted); font-size: 15px; margin: 0; }

.cqb-loading { color: var(--cqb-muted); font-size: 14px; padding: 8px 0; }

@media (max-width: 560px) {
  .cqb-services { grid-template-columns: 1fr; }
  .cqb-times { grid-template-columns: repeat(3, 1fr); }
}
