.sbwp-booking {
  display: grid;
  gap: 22px;
  max-width: 760px;
  color: #1f2933;
}

.sbwp-step {
  display: grid;
  gap: 12px;
}

.sbwp-step h2,
.sbwp-modal h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.sbwp-booking label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.sbwp-custom-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.sbwp-booking input,
.sbwp-booking textarea,
.sbwp-booking select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #c9d3df;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.sbwp-booking textarea {
  min-height: 110px;
}

.sbwp-option-list {
  display: grid;
  gap: 8px;
}

.sbwp-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #24313f;
  font-weight: 400;
}

.sbwp-option input {
  width: auto;
}

.sbwp-service-fixed {
  margin: 0;
  font-weight: 700;
}

.sbwp-calendar-wrap {
  display: grid;
  gap: 12px;
}

.sbwp-calendar-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.sbwp-month-label {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.sbwp-month-prev,
.sbwp-month-next,
.sbwp-modal-close {
  border: 1px solid #c9d3df;
  border-radius: 6px;
  background: #ffffff;
  color: #24313f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sbwp-month-prev,
.sbwp-month-next {
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

.sbwp-calendar-weekdays,
.sbwp-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.sbwp-calendar-weekdays span {
  color: #5d6b79;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.sbwp-calendar {
  min-height: 310px;
}

.sbwp-day {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: 78px;
  border: 1px solid #d7e0e8;
  border-radius: 6px;
  background: #ffffff;
  color: #17212b;
  padding: 8px 6px;
  font: inherit;
  cursor: pointer;
}

.sbwp-day:hover:not(:disabled) {
  border-color: #0f766e;
  background: #eef9f6;
}

.sbwp-day.is-empty {
  border: 0;
  background: transparent;
}

.sbwp-day.is-full {
  background: #f1f4f7;
  color: #71808f;
  cursor: not-allowed;
}

.sbwp-day.is-limited {
  border-color: #d89416;
  background: #fff8e8;
}

.sbwp-day-number {
  justify-self: start;
  font-size: 13px;
  font-weight: 700;
}

.sbwp-day-mark {
  justify-self: center;
  font-size: 24px;
  font-weight: 800;
}

.sbwp-day-count {
  justify-self: center;
  color: #627181;
  font-size: 12px;
}

.sbwp-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #5d6b79;
  font-size: 13px;
}

.sbwp-modal[hidden],
.sbwp-form[hidden],
.sbwp-modal-slots[hidden] {
  display: none;
}

.sbwp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  padding: 18px;
}

.sbwp-modal-panel {
  position: relative;
  box-sizing: border-box;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  padding: 24px;
  animation: sbwp-slide-up 180ms ease-out;
}

.sbwp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
}

.sbwp-modal-slots,
.sbwp-form {
  display: grid;
  gap: 18px;
}

.sbwp-selected-date-label,
.sbwp-selected-slot-label {
  margin: 0;
  color: #536273;
  font-weight: 700;
}

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

.sbwp-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #b7c4d1;
  border-radius: 6px;
  background: #ffffff;
  color: #17212b;
  font: inherit;
  cursor: pointer;
}

.sbwp-slot:hover:not(:disabled) {
  border-color: #0f766e;
  background: #e6f6f3;
}

.sbwp-slot:disabled {
  background: #eef2f5;
  color: #71808f;
  cursor: not-allowed;
}

.sbwp-slot-mark {
  font-weight: 700;
}

.sbwp-submit {
  width: fit-content;
  min-width: 160px;
  border: 0;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sbwp-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sbwp-muted {
  grid-column: 1 / -1;
  margin: 0;
  color: #667585;
}

.sbwp-message,
.sbwp-error {
  margin: 0;
  color: #b42318;
}

.sbwp-modal-open {
  overflow: hidden;
}

@keyframes sbwp-slide-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .sbwp-calendar-weekdays,
  .sbwp-calendar {
    gap: 4px;
  }

  .sbwp-day {
    min-height: 62px;
    padding: 6px 3px;
  }

  .sbwp-day-mark {
    font-size: 20px;
  }

  .sbwp-day-count {
    display: none;
  }

  .sbwp-modal-panel {
    padding: 22px 16px;
  }
}
