/* schedule-calendar.css — the month grid, the time-zone picker and the
   time buttons on the public booking pages. */

/* ── Month grid ────────────────────────────────────── */

.s-cal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--s-line); }

.s-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.s-cal-title { margin: 0; font-size: 16px; }

.s-cal-nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  background: var(--s-surface);
  color: var(--s-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.s-cal-nav:hover:not(:disabled) { border-color: var(--s-brand); color: var(--s-brand); }
.s-cal-nav:disabled { opacity: .35; cursor: default; }

.s-cal-dow, .s-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.s-cal-week { display: contents; }

.s-cal-dow { margin-bottom: 4px; font-size: 12px; color: var(--s-ink-3); font-weight: 600; }
.s-cal-dow abbr { text-decoration: none; }

.s-cal-grid.is-loading .s-cal-days { opacity: .45; }

.s-cal-days button {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--s-ink-3);
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.s-cal-days button.is-open {
  background: var(--s-brand-soft);
  color: var(--s-brand);
  font-weight: 700;
  cursor: pointer;
}
.s-cal-days button.is-open::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.s-cal-days button.is-open:hover { background: var(--s-free-strong); color: var(--s-brand-ink); }

.s-cal-days button.is-selected,
.s-cal-days button.is-selected:hover {
  background: var(--s-brand);
  color: var(--s-brand-ink);
}

.s-cal-days button.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1.5px var(--s-ink-3); }

.s-cal-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--s-ink-3);
}
.s-cal-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--s-brand-soft);
  box-shadow: inset 0 0 0 4px var(--s-brand-soft), inset 0 0 0 7px var(--s-brand);
}

/* ── Time zone picker ──────────────────────────────── */

.s-tz {
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
}
.s-tz label { font-size: 13px; font-weight: 600; color: var(--s-ink-3); }
.s-tz select { max-width: 360px; font-size: 15px; padding: 8px 10px; }

/* ── Times ─────────────────────────────────────────── */

.s-times {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 360px;
}

.s-time-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.s-time-row.is-selected { grid-template-columns: 1fr 1fr; }

.s-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--s-brand);
  border-radius: var(--s-radius-sm);
  background: var(--s-surface);
  color: var(--s-brand);
  font: inherit;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.s-time:hover { background: var(--s-brand-soft); }

.s-time.is-selected {
  background: var(--s-ink-2);
  border-color: var(--s-ink-2);
  color: var(--s-surface);
}

.s-time-next { min-height: 46px; }

/* A proposal time someone else already took: struck through and labeled,
   so it is not color alone that says so. */
.s-time.is-taken {
  border-style: dashed;
  border-color: var(--s-line);
  color: var(--s-ink-3);
  cursor: default;
  white-space: nowrap;
  gap: .5rem;
}
.s-taken {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.s-prop-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 720px) {
  .s-times { max-width: none; }
  .s-tz select { max-width: none; }
}
