/* Booking widget. Colours come from the theme's tokens, so it follows the light/dark toggle. */
.sakac-tech-booking { max-width: 760px; margin: 0 auto; }
.sakac-tech-booking--off { text-align: center; }

.stb { display: block; }

/* The theme styles every h2 large; step headings are section labels here. */
.sakac-tech-booking .stb__h {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.3;
  max-width: none;
  margin: 34px 0 12px;
}
.sakac-tech-booking .stb > .stb__h:first-child { margin-top: 0; }
.stb__hint { color: var(--sakac-tech-muted-1, #8FA3BD); margin: 0 0 16px; font-size: 14.5px; }

.stb__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stb__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.stb__row .stb__field { margin-bottom: 0; }
.stb__field label { font-size: 13.5px; color: var(--sakac-tech-muted-1, #8FA3BD); }

/* Same box as the site's other form fields (contact form): 46px tall, 15px text, 16px side padding. */
.stb input:not([type="checkbox"]),
.stb select,
.stb textarea {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  margin: 0;
  font-family: var(--sakac-tech-font-sans, inherit);
  font-size: 15px;
  line-height: normal;
  color: var(--sakac-tech-text, #E6EDF6);
  background: var(--sakac-tech-surface, #111827);
  border: 1px solid var(--sakac-tech-border-input, rgba(148, 180, 220, .28));
  border-radius: var(--sakac-tech-radius-control, 4px);
  padding: 0 16px;
}
.stb input:focus, .stb select:focus, .stb textarea:focus { outline: none; border-color: var(--sakac-tech-accent, #62B6FF); }
.stb textarea { height: auto; padding: 15px 16px; resize: vertical; min-height: 120px; line-height: 1.5; }

/* ---- calendar ---- */
.stb__cal {
  border: 1px solid var(--sakac-tech-border-card, rgba(148, 180, 220, .18));
  background: var(--sakac-tech-surface, #111827);
  border-radius: 10px;
  padding: clamp(10px, 2.4vw, 18px);
}
.stb__calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stb__caltitle { font-size: 17px; font-weight: 600; text-transform: capitalize; }
.stb__calnav {
  width: 44px; height: 44px;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  color: var(--sakac-tech-text, #E6EDF6);
  background: transparent;
  border: 1px solid var(--sakac-tech-border-input, rgba(148, 180, 220, .28));
  border-radius: 8px;
}
.stb__calnav:hover:not(:disabled) { border-color: var(--sakac-tech-accent, #62B6FF); }
.stb__calnav:disabled { opacity: .35; cursor: default; }

.stb__weekdays, .stb__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.stb__weekdays { margin-bottom: 4px; }
.stb__weekdays span { text-align: center; font-size: 12px; color: var(--sakac-tech-muted-2, #8FA3BD); padding: 4px 0; }

.stb__cell {
  position: relative;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sakac-tech-muted-2, #8FA3BD);
  padding: 0;
}
.stb__cell--blank { visibility: hidden; }
.stb__cell:disabled { opacity: .38; cursor: default; }
.stb__cell--free {
  cursor: pointer;
  color: var(--sakac-tech-text, #E6EDF6);
  font-weight: 600;
  background: var(--sakac-tech-accent-soft, rgba(98, 182, 255, .14));
  border-color: var(--sakac-tech-accent-soft, rgba(98, 182, 255, .3));
}
.stb__cell--free:hover { border-color: var(--sakac-tech-accent, #62B6FF); }
.stb__cell--today { box-shadow: inset 0 0 0 1px var(--sakac-tech-muted-2, #8FA3BD); }
.stb__cell--open {
  background: var(--sakac-tech-accent-fill, #62B6FF);
  border-color: var(--sakac-tech-accent-fill, #62B6FF);
  color: var(--sakac-tech-on-accent, #0B0F16);
}
.stb__badge {
  position: absolute; top: 3px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  border-radius: 8px;
  font-size: 11px; line-height: 16px; font-weight: 700; text-align: center;
  background: var(--sakac-tech-secondary, #C97A50);
  color: #0B0F16;
}

.stb__empty { color: var(--sakac-tech-muted-1, #8FA3BD); margin: 14px 0 0; }

/* ---- times ---- */
.stb__timesbox { margin-top: 16px; }
.stb__timeshead { margin: 0 0 10px; font-weight: 600; }
.stb__times { display: flex; flex-wrap: wrap; gap: 10px; }
.stb__time {
  min-width: 76px; min-height: 46px;
  font: inherit; font-size: 16px;
  cursor: pointer;
  color: var(--sakac-tech-text, #E6EDF6);
  background: transparent;
  border: 1px solid var(--sakac-tech-border-input, rgba(148, 180, 220, .28));
  border-radius: 8px;
  padding: 8px 14px;
}
.stb__time:hover:not(:disabled) { border-color: var(--sakac-tech-accent, #62B6FF); }
.stb__time[aria-pressed="true"] {
  background: var(--sakac-tech-accent-fill, #62B6FF);
  border-color: var(--sakac-tech-accent-fill, #62B6FF);
  color: var(--sakac-tech-on-accent, #0B0F16);
  font-weight: 700;
}
.stb__time:disabled { opacity: .35; cursor: default; }

/* ---- chosen ---- */
.stb__chosen { margin-top: 18px; }
.stb__chosenhead { margin: 0 0 8px; font-weight: 600; }
.stb__chosenlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stb__chosenlist li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--sakac-tech-border-input, rgba(148, 180, 220, .28));
  border-radius: 999px;
  font-size: 14.5px;
}
.stb__remove {
  width: 28px; height: 28px; border-radius: 50%;
  font: inherit; font-size: 18px; line-height: 1;
  cursor: pointer;
  color: var(--sakac-tech-text, #E6EDF6);
  background: transparent;
  border: 1px solid var(--sakac-tech-border-input, rgba(148, 180, 220, .28));
}
.stb__remove:hover { border-color: var(--sakac-tech-accent, #62B6FF); }

/* ---- form ---- */
.stb__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 6px 0 12px; cursor: pointer; }
.stb__check input { margin-top: 4px; flex: 0 0 auto; }
.stb__check a { color: var(--sakac-tech-accent, #62B6FF); }

.stb__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; }
.stb__submit { margin-top: 10px; }
.stb__submit:disabled { opacity: .6; cursor: default; }
.stb__status { margin: 12px 0 0; min-height: 1.5em; }
.stb__status--error { color: #E5736A; }

.stb--done { text-align: center; padding: 24px 0; }
.stb__donelist { list-style: none; margin: 0 0 14px; padding: 0; font-weight: 600; }

@media (max-width: 480px) {
  .stb__cell { min-height: 44px; font-size: 15px; }
  .stb__grid, .stb__weekdays { gap: 3px; }
}
