.otp-calendar-note {
  margin: 14px 0 6px;
  color: #746f69;
  font-size: 12px;
  text-align: center;
}

.otp-card,
.otp-body,
.otp-calendar-grid,
.otp-calendar-grid .otp-month,
.otp-month-switch,
.otp-week,
.otp-days,
.otp-slots {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.otp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.otp-calendar-grid .otp-month {
  margin: 8px 0;
}

.otp-week,
.otp-days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.otp-week > *,
.otp-days > *,
.otp-day {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.otp-day {
  width: 100%;
}

.otp-month-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.otp-month-switch button {
  min-width: 0;
  border: 1px solid #ded8d0;
  border-radius: 12px;
  background: #fff;
  color: #5a514b;
  padding: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.otp-month-switch button.active {
  border-color: #7c303a;
  background: #7c303a;
  color: #fff;
}

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

.persian-calendar-weekdays,
.persian-calendar-grid,
.reserve-days {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  min-width: 0;
  width: 100%;
}

.persian-calendar-weekdays > *,
.persian-calendar-grid > *,
.reserve-days > * {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .otp-calendar-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .otp-body {
    padding-inline: 14px;
  }

  .otp-month {
    padding: 10px;
  }

  .otp-week,
  .otp-days {
    gap: 3px;
  }

  .otp-day {
    min-height: 38px;
    padding-inline: 0;
    font-size: 12px;
  }

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

@media (max-width: 380px) {
  .otp-body {
    padding-inline: 10px;
  }

  .otp-month {
    padding: 8px;
  }

  .otp-day {
    min-height: 34px;
    font-size: 11px;
  }
}
