/* Read-only profile schedule, contained within the existing cream booking card. */
.specialist-schedule-entry,
.specialist-schedule-entry .specialist-schedule__form,
.specialist-schedule-entry .specialist-schedule__form > *,
.specialist-schedule-entry .specialist-schedule__form > label {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.specialist-schedule-entry .specialist-schedule__form { width: 100%; }

.specialist-schedule-entry .specialist-schedule__form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.schedule-panel {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: var(--an-green, #1e4d41);
  box-sizing: border-box;
}

.schedule-panel > * { min-width: 0; max-width: 100%; }

.schedule-panel .schedule-panel__service {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.schedule-panel .schedule-panel__service > select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--profile-line, #dce3db);
  border-radius: 8px;
  background: var(--an-paper, #f6f3ec);
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  box-sizing: border-box;
}

.schedule-panel .schedule-month,
.schedule-panel .schedule-times { display: grid; gap: 10px; min-width: 0; }

.schedule-panel .schedule-month__title,
.schedule-panel .schedule-times__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.schedule-panel .schedule-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}

.schedule-panel .schedule-month__weekday {
  text-align: center;
  padding: 2px 0 6px;
  color: var(--profile-muted, #687165);
  font-size: 12px;
  line-height: 1.5;
}

.schedule-panel .schedule-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--profile-muted, #687165);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
}

.schedule-panel .schedule-day.is-free {
  border-color: #a9baa1;
  color: var(--an-green, #1e4d41);
  background: var(--profile-green, #e7eee3);
  font-weight: 600;
  cursor: pointer;
}

.schedule-panel .schedule-day.is-selected {
  border-color: var(--an-green, #1e4d41);
  color: var(--an-paper, #f6f3ec);
  background: var(--an-green, #1e4d41);
}

.schedule-panel .schedule-day.is-outside { visibility: hidden; }

.schedule-panel .schedule-times ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(72px, 100%), 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-panel .schedule-times li { min-width: 0; margin: 0; padding: 0; }

.schedule-panel .schedule-times a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #a9baa1;
  border-radius: 6px;
  color: var(--an-green, #1e4d41);
  background: var(--profile-green, #e7eee3);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.schedule-panel .schedule-panel__note,
.schedule-panel .schedule-panel__legal {
  display: block;
  margin: 0;
  color: var(--profile-muted, #687165);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.schedule-panel .schedule-panel__legal { font-size: 12px; }

.schedule-panel select:focus-visible,
.schedule-panel button:focus-visible,
.schedule-panel a:focus-visible {
  outline: 2px solid var(--an-green, #1e4d41);
  outline-offset: 3px;
}

.schedule-panel select:disabled,
.schedule-panel button:disabled,
.schedule-panel [aria-disabled="true"] {
  border-color: var(--profile-line, #dce3db);
  color: var(--profile-muted, #687165);
  background: transparent;
  cursor: not-allowed;
}

@media (hover: hover) {
  .schedule-panel .schedule-day.is-free:not(.is-selected):hover,
  .schedule-panel .schedule-times a:hover {
    border-color: var(--an-green, #1e4d41);
    background: #d8e4d1;
  }
}

@media (max-width: 480px) {
  .schedule-panel .schedule-day { min-height: 44px; }
}
