.mvi-scheduler {
  max-width: 42rem;
  margin: 0 auto;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(13, 71, 161, 0.1);
  padding: 1.25rem 1.35rem 1.5rem;
}

.mvi-scheduler__tz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #334155;
}

.mvi-scheduler__tz label {
  font-weight: 600;
  margin: 0;
}

.mvi-scheduler__tz select {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid #cbd5e1;
}

.mvi-scheduler__hint {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.mvi-scheduler__hint--strong {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.mvi-scheduler__calendar {
  margin-bottom: 1rem;
}

.mvi-scheduler__cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.mvi-scheduler__cal-title {
  font-weight: 700;
  font-size: 1rem;
  color: #0d47a1;
}

.mvi-scheduler__cal-nav {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 0.45rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #0d47a1;
}

.mvi-scheduler__cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.mvi-scheduler__cal-dow-cell {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.mvi-scheduler__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.mvi-scheduler__cal-cell {
  height: 2.6rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d47a1;
  cursor: pointer;
  padding: 0;
}

.mvi-scheduler__cal-cell--empty {
  border: none;
  background: transparent;
  cursor: default;
}

.mvi-scheduler__cal-cell.is-disabled,
.mvi-scheduler__cal-cell:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: #94a3b8;
  background: #f1f5f9;
}

.mvi-scheduler__cal-cell.is-available {
  border: 2px solid #1565c0;
  background: #e3f2fd;
  color: #0d47a1;
}

.mvi-scheduler__cal-cell.is-available:hover {
  background: #bbdefb;
}

.mvi-scheduler__cal-cell.is-active:not(:disabled) {
  border-color: #0d47a1;
  background: #0d47a1;
  color: #fff;
}

.mvi-scheduler__details {
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
  padding-top: 1rem;
}

.mvi-scheduler__form-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #0d47a1;
}

.mvi-scheduler__details .mvi-sms-consent-block {
  margin-top: 0.25rem;
}

.mvi-scheduler__confirm--success {
  font-size: 1rem;
  text-align: center;
  padding: 1.5rem;
}

.mvi-scheduler__slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  align-content: start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  min-height: 4rem;
  max-height: 14.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.45rem 0.35rem 0.45rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
  scrollbar-width: auto;
  scrollbar-color: #0d47a1 #e2e8f0;
  scroll-behavior: smooth;
}

.mvi-scheduler__slots::-webkit-scrollbar {
  width: 12px;
}

.mvi-scheduler__slots::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.mvi-scheduler__slots::-webkit-scrollbar-thumb {
  background: #0d47a1;
  border-radius: 999px;
}

.mvi-scheduler__more {
  display: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #0d47a1;
  border-radius: 0.45rem;
  background: #e3f2fd;
  color: #0d47a1;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.mvi-scheduler__more.is-visible {
  display: block;
}

.mvi-scheduler__slot {
  border: 1px solid #0d47a1;
  color: #0d47a1;
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.5rem 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.mvi-scheduler__slot.is-selected {
  background: #0d47a1;
  color: #fff;
}

.mvi-scheduler__form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.mvi-scheduler__form input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
}

.mvi-scheduler__confirm {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.mvi-scheduler__error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.mvi-scheduler__form .mvi-scheduler__submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  background: #0d47a1;
  color: #fff;
  cursor: pointer;
}

.mvi-scheduler__form .mvi-scheduler__error {
  margin-top: 0.5rem;
}

.mvi-scheduler__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mvi-scheduler__loading {
  text-align: center;
  color: #64748b;
  padding: 1.5rem;
}
