.availability-editor {
  min-width: 0;
}
.weekly-tabs {
  display: flex;
  gap: 6px;
  background: #edf1f7;
  border-radius: 14px;
  padding: 5px;
}
.weekly-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.weekly-tabs button[aria-pressed="true"] {
  background: white;
  color: #285de5;
  box-shadow: 0 2px 5px #20305012;
  font-weight: 650;
}
.schedule-hint {
  color: #657083;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 18px;
}
[data-week-format][hidden] {
  display: none !important;
}
.schedule-enabled {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 16px 0;
  font-weight: 600;
}
.availability-editor input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: #285de5;
}
.weekly-day {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e8ecf2;
}
.weekday-enabled {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.weekly-hours {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.weekly-interval {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.weekly-interval input {
  width: calc((100% - 46px) / 2);
  min-width: 0;
  border: 1px solid #dfe3e9;
  border-radius: 10px;
  padding: 8px 5px;
  min-height: 44px;
  background: white;
  font: inherit;
  font-size: 14px;
}
.availability-editor button[data-week-remove],
.availability-editor button[data-week-add],
.availability-editor button[data-off-remove] {
  min-height: 44px;
  min-width: 26px;
  border: 0;
  background: transparent;
  color: #657083;
  font-size: 23px;
  cursor: pointer;
  padding: 0;
}
.day-unavailable {
  color: #87909d;
  font-size: 13px;
  line-height: 44px;
}
.schedule-off-section {
  margin-top: 24px;
}
.schedule-off-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.schedule-off-title h3 {
  font-size: 17px;
  margin: 0;
}
.schedule-off-title button {
  border: 1px solid #ccd7ed;
  color: #285de5;
  background: white;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  min-height: 44px;
}
.schedule-day-off {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 12px 0;
}
.schedule-day-off label {
  font-size: 12px;
  color: #657083;
  flex: 1;
}
.schedule-day-off input {
  display: block;
  width: 100%;
  border: 1px solid #dfe3e9;
  border-radius: 10px;
  background: white;
  padding: 10px;
  margin-top: 5px;
  min-height: 44px;
  font: inherit;
  font-size: 15px;
  color: #202630;
}
@media (min-width: 701px) {
  .weekly-day {
    grid-template-columns: 64px minmax(0, 1fr) 36px;
    gap: 12px;
  }
  .weekly-interval {
    gap: 10px;
  }
  .weekly-interval input {
    max-width: 140px;
  }
}
@media (max-width: 700px) {
  .weekly-day .weekly-hours:not(:has(.day-unavailable)) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .weekly-day > [data-week-add] {
    grid-column: 3;
    grid-row: 1;
  }
  .weekly-interval input {
    flex: 1;
    width: 0;
    font-size: 16px;
  }
  .weekly-interval input::-webkit-calendar-picker-indicator {
    display: none;
  }
  .availability-editor button[data-week-remove] {
    min-width: 30px;
  }
  .schedule-day-off input {
    font-size: 16px;
  }
}
