.commerce-appointment-scheduler-wrapper {
  margin-top: 1rem;
}

.commerce-appointment-scheduler__image {
  margin-bottom: 1rem;
}

.commerce-appointment-scheduler__image img {
  border-radius: 1rem;
  display: block;
  height: auto;
  max-width: 100%;
}

.commerce-appointment-scheduler {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.commerce-appointment-scheduler__column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

@media (min-width: 760px) {
  .commerce-appointment-scheduler {
    grid-template-columns: minmax(20rem, 1.25fr) minmax(18rem, 1fr);
    align-items: start;
  }
}

.commerce-appointment-scheduler__panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid #d6dce5;
  border-radius: 1rem;
  box-shadow: 0 0.45rem 1.2rem rgba(21, 36, 62, 0.08);
  padding: 1rem;
}

.commerce-appointment-scheduler__panel--times {
  min-height: 100%;
}

.commerce-appointment-scheduler__panel--notes .commerce-appointment-scheduler__notes {
  margin: 0;
}

.commerce-appointment-scheduler__panel--notes textarea {
  min-height: 8rem;
  width: 100%;
}

.commerce-appointment-scheduler__eyebrow {
  color: #486284;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.commerce-appointment-scheduler__title {
  color: #10233f;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.commerce-appointment-scheduler__hint {
  color: #41536f;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.commerce-appointment-scheduler__calendar-header {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 0.85rem;
}

.commerce-appointment-scheduler__month-label {
  color: #10233f;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.commerce-appointment-scheduler__nav {
  background: #edf3fb;
  border: 1px solid #c7d6ea;
  border-radius: 999px;
  color: #18365f;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  min-height: 2.15rem;
  min-width: 2.15rem;
  padding: 0.45rem 0.6rem;
}

.commerce-appointment-scheduler__nav[disabled] {
  cursor: default;
  opacity: 0.45;
}

.commerce-appointment-scheduler__weekday-row,
.commerce-appointment-scheduler__grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.commerce-appointment-scheduler__weekday {
  color: #637892;
  font-size: 0.72rem;
  font-weight: 700;
  padding-bottom: 0.15rem;
  text-align: center;
  text-transform: uppercase;
}

.commerce-appointment-scheduler__day,
.commerce-appointment-scheduler__day--empty {
  align-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 0.85rem;
  display: flex;
  justify-content: center;
}

.commerce-appointment-scheduler__day--empty {
  background: transparent;
}

.commerce-appointment-scheduler__day {
  background: #ffffff;
  border: 1px solid #d8e1ee;
  color: #112743;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.commerce-appointment-scheduler__day:hover,
.commerce-appointment-scheduler__day:focus {
  border-color: #78a8df;
  box-shadow: 0 0 0 0.18rem rgba(76, 125, 191, 0.14);
  transform: translateY(-1px);
}

.commerce-appointment-scheduler__day.is-selected {
  background: linear-gradient(180deg, #1f6fcb 0%, #1858a6 100%);
  border-color: #1858a6;
  color: #ffffff;
  box-shadow: 0 0.5rem 1rem rgba(23, 88, 166, 0.25);
}

.commerce-appointment-scheduler__day.is-today {
  border-color: #1f6fcb;
}

.commerce-appointment-scheduler__day.is-unavailable {
  background: #f6f8fb;
  border-style: dashed;
  color: #a0adbd;
  cursor: not-allowed;
}

.commerce-appointment-scheduler__times-heading {
  color: #10233f;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.commerce-appointment-scheduler__times-subheading {
  color: #486284;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.commerce-appointment-scheduler__slot-list {
  display: grid;
  gap: 0.6rem;
}

.commerce-appointment-scheduler__slot {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e1ee;
  border-radius: 0.85rem;
  color: #10233f;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
  justify-items: start;
  padding: 0.8rem 0.9rem;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
  width: 100%;
}

.commerce-appointment-scheduler__slot:hover,
.commerce-appointment-scheduler__slot:focus {
  border-color: #78a8df;
  box-shadow: 0 0 0 0.18rem rgba(76, 125, 191, 0.14);
  transform: translateY(-1px);
}

.commerce-appointment-scheduler__slot.is-selected {
  background: linear-gradient(180deg, #15365f 0%, #102746 100%);
  border-color: #102746;
  box-shadow: 0 0.6rem 1rem rgba(16, 39, 70, 0.25);
  color: #ffffff;
}

.commerce-appointment-scheduler__slot-time {
  font-size: 1rem;
  font-weight: 700;
}

.commerce-appointment-scheduler__slot-meta {
  color: inherit;
  font-size: 0.85rem;
  opacity: 0.82;
}

.commerce-appointment-scheduler__selected {
  background: #ecf7ef;
  border: 1px solid #c8e4ce;
  border-radius: 0.85rem;
  color: #17482b;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
}

.commerce-appointment-scheduler__empty {
  background: #f7f9fc;
  border: 1px dashed #c8d2df;
  border-radius: 0.85rem;
  color: #61738a;
  padding: 1rem;
}

.commerce-appointment-scheduler-wrapper.is-enhanced .commerce-appointment-scheduler__fallback {
  display: none;
}
