/* Contact page — pay-style date strip + fixed slots */
.cs-schedule { margin-top: 4px; }
.cs-hint {
  font-size: 0.85rem;
  color: var(--text-light, #717171);
  margin: 0 0 14px;
  line-height: 1.5;
}
.cs-month-row { margin-bottom: 10px; }
.cs-month-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--text-dark, #222);
}
.cs-week {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.cs-day {
  flex: 0 0 auto;
  width: 52px;
  padding: 10px 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  color: var(--text-mid, #717171);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.2;
}
.cs-day strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark, #222);
}
.cs-day.is-selected {
  background: #222;
  color: #fff;
}
.cs-day.is-selected strong { color: #fff; }
.cs-day.is-past,
.cs-day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.cs-slots { margin-top: 4px; }
.cs-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.cs-slot {
  display: block;
  border: 2px solid var(--border, #ebebeb);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cs-slot input { position: absolute; opacity: 0; pointer-events: none; }
.cs-slot-time {
  display: block;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--text-dark, #222);
}
.cs-slot:has(input:checked),
.cs-slot.is-on {
  border-color: #222;
  background: #222;
}
.cs-slot:has(input:checked) .cs-slot-time,
.cs-slot.is-on .cs-slot-time { color: #fff; }
.cs-slot:hover { border-color: #222; }

.cs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cs-modal[hidden] { display: none !important; }
.cs-modal-panel {
  width: min(560px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 18px 28px;
}
.cs-modal-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.cs-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}
.cs-cal-month { margin: 18px 0 10px; font-weight: 700; font-size: 1.05rem; }
.cs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 8px;
}
.cs-cal-dow {
  font-size: 0.75rem;
  color: #717171;
  padding: 6px 0;
}
.cs-cal-cell {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 50%;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.cs-cal-cell.is-muted {
  color: #ccc;
  text-decoration: line-through;
  cursor: not-allowed;
}
.cs-cal-cell.is-selected {
  background: #222;
  color: #fff;
}
.cs-pay-cta {
  display: inline-block;
  background: #222;
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  padding: 14px 28px;
  border-radius: 10px;
}
.cs-pay-cta:hover { opacity: 0.92; }
@media (min-width: 720px) {
  .cs-modal { align-items: center; }
  .cs-modal-panel { border-radius: 16px; max-height: 80vh; }
}
/* fallback when :has unsupported */
.cs-slot input:checked + .cs-slot-time { color: #fff; }
