.stba-booking {
  width: var(--stba-front-width, 100%);
  max-width: 100%;
  margin: 24px auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stba-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.stba-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.stba-note {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.7;
}

.stba-calendar-wrap {
  margin: 18px 0 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.stba-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.stba-cal-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .03em;
}

.stba-cal-nav {
  width: 42px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.stba-cal-nav:hover:not(:disabled) {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.stba-cal-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.stba-cal-weekdays,
.stba-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.stba-cal-weekdays {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.stba-cal-weekdays div {
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.stba-calendar {
  padding: 8px;
  gap: 6px;
}

.stba-cal-empty {
  min-height: 76px;
}

.stba-cal-day {
  min-height: 76px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 8px 6px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.stba-cal-day:hover:not(:disabled),
.stba-cal-day.is-selected {
  border-color: #111827;
  box-shadow: inset 0 0 0 2px #111827;
}

.stba-cal-day:disabled {
  cursor: not-allowed;
}

.stba-cal-num {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.stba-cal-state {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.stba-cal-day.is-available {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.stba-cal-day.is-full {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.stba-cal-day.is-blocked {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
}

.stba-cal-day.is-closed,
.stba-cal-day.is-past {
  background: #f3f4f6;
  color: #9ca3af;
}

.stba-cal-day.is-today .stba-cal-num::after {
  content: "";
  font-size: 11px;
  color: #2563eb;
}

.stba-cal-loading,
.stba-cal-error {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
  color: #4b5563;
}

.stba-cal-error {
  color: #991b1b;
}

.stba-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 14px 14px;
  color: #4b5563;
  font-size: 13px;
}

.stba-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stba-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

.stba-dot-open {
  background: #ecfdf5;
  border-color: #34d399;
}

.stba-dot-full {
  background: #fff7ed;
  border-color: #fb923c;
}

.stba-dot-closed {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.stba-selected-day {
  margin: 14px 0;
  padding: 12px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 800;
}

.stba-field {
  margin: 14px 0;
}

.stba-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.stba-field input,
.stba-field textarea,
.stba-field select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
  line-height: 1.4;
}

.stba-required {
  color: #dc2626;
}

.stba-optional {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.stba-slots-wrap {
  margin: 18px 0;
}

.stba-selected-day,
.stba-slots-wrap {
  scroll-margin-top: 90px;
}

.stba-slots-placeholder {
  padding: 14px;
  border-radius: 10px;
  background: #f9fafb;
  color: #4b5563;
}

.stba-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
}

.stba-slot {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.stba-slot:hover:not(:disabled),
.stba-slot.is-selected {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.stba-slot:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: #f3f4f6;
}

.stba-selected-summary {
  margin: 16px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f3f4f6;
  font-weight: 700;
}

.stba-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.stba-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.stba-message {
  margin-top: 16px;
  line-height: 1.6;
}

.stba-message-success {
  padding: 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
}

.stba-message-error {
  padding: 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 600px) {
  .stba-card {
    padding: 14px;
    border-radius: 12px;
  }

  .stba-calendar-head {
    padding: 10px;
  }

  .stba-cal-nav {
    width: 38px;
    height: 38px;
  }

  .stba-calendar {
    gap: 4px;
    padding: 6px;
  }

  .stba-cal-empty,
  .stba-cal-day {
    min-height: 58px;
  }

  .stba-cal-day {
    padding: 6px 4px;
    border-radius: 9px;
  }

  .stba-cal-state {
    margin-top: 6px;
    font-size: 10px;
  }

  .stba-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stba-slot.is-blocked {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.stba-lang-switcher {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.stba-lang-switcher label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #334155;
}
.stba-lang-switcher select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 7px 10px;
  background: #fff;
}

.stba-human-field {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.stba-human-field label {
  font-weight: 700;
  color: #0f172a;
}

.stba-human-desc {
  margin: 6px 0 10px;
  color: #475569;
  font-size: 14px;
}

.stba-human-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stba-human-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  font-weight: 800;
}

.stba-human-answer {
  max-width: 180px;
}

.stba-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 600px) {
  .stba-human-row {
    align-items: stretch;
    flex-direction: column;
  }
  .stba-human-question,
  .stba-human-answer {
    width: 100%;
    max-width: none;
  }
}
