.pm-appointment-modal[hidden] {
  display: none;
}

.pm-appointment-modal [hidden] {
  display: none !important;
}

.pm-appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pm-appointment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
}

.pm-appointment-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1320px);
  max-width: 1320px;
  height: min(88vh, 820px);
  max-height: 820px;
  margin: 0;
  border: 1px solid rgba(191, 219, 254, 0.65);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.pm-appointment-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.pm-appointment-modal__close span {
  position: absolute;
  top: 1.02rem;
  left: 0.5rem;
  width: 1.05rem;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.pm-appointment-modal__close span:first-child {
  transform: rotate(45deg);
}

.pm-appointment-modal__close span:last-child {
  transform: rotate(-45deg);
}

.pm-appointment-modal__layout {
  display: grid;
  grid-template-columns: minmax(15.5rem, 17rem) minmax(0, 1fr);
  height: 100%;
}

.pm-appointment-modal__checkout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem 1.15rem 1.15rem;
  overflow: hidden;
}

.pm-appointment-modal__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.05rem;
  overflow: hidden;
}

.pm-appointment-modal__panel--schedule {
  border-left: 1px solid rgba(203, 213, 225, 0.7);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.72) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.pm-appointment-modal__kicker,
.pm-appointment-modal__section-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.pm-appointment-modal__title,
.pm-appointment-modal__selected-item,
.pm-appointment-modal__selection-text {
  margin: 0;
  color: #0f172a;
}

.pm-appointment-modal__title {
  margin-top: 0.4rem;
  font-size: clamp(1.12rem, 1.45vw, 1.5rem);
  line-height: 1.06;
}

.pm-appointment-modal__copy {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.35;
}

.pm-appointment-modal__switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  margin-top: 0.8rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(191, 219, 254, 0.42);
}

.pm-appointment-modal__switch-btn {
  min-width: 5rem;
  padding: 0.5rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #33506f;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.pm-appointment-modal__switch-btn.is-active {
  background: #2563eb;
  color: white;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.pm-appointment-modal__search {
  display: block;
  margin-top: 1rem;
}

.pm-appointment-modal__selectors {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.pm-appointment-modal__doctor-preview {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  cursor: pointer;
}

.pm-appointment-modal__doctor-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.pm-appointment-modal__doctor-photo {
  width: 4.2rem;
  height: 4.8rem;
  border-radius: 0.85rem;
  object-fit: cover;
  background: rgba(226, 232, 240, 0.9);
}

.pm-appointment-modal__doctor-body {
  min-width: 0;
}

.pm-appointment-modal__doctor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pm-appointment-modal__doctor-brand {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
  object-fit: contain;
}

.pm-appointment-modal__doctor-label,
.pm-appointment-modal__doctor-name,
.pm-appointment-modal__doctor-specialty,
.pm-appointment-modal__doctor-meta {
  margin: 0;
}

.pm-appointment-modal__doctor-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.pm-appointment-modal__doctor-name {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.pm-appointment-modal__doctor-specialty {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: #2563eb;
  line-height: 1.25;
}

.pm-appointment-modal__doctor-meta {
  margin-top: 0.28rem;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.25;
}

.pm-appointment-modal__selector-group {
  display: flex;
  flex-direction: column;
}

.pm-appointment-modal__search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.pm-appointment-modal__search-input,
.pm-appointment-modal__select {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  outline: none;
  font-size: 0.85rem;
}

.pm-appointment-modal__search-input:focus,
.pm-appointment-modal__select:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.pm-appointment-modal__select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #2563eb 50%),
    linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position:
    calc(100% - 0.98rem) calc(50% - 0.12rem),
    calc(100% - 0.7rem) calc(50% - 0.12rem);
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.pm-appointment-modal__select:disabled {
  cursor: default;
  color: #94a3b8;
  background-color: rgba(248, 250, 252, 0.9);
}

.pm-appointment-modal__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
  align-content: start;
}

.pm-appointment-modal__options.is-doctor-flow {
  display: block;
}

.pm-appointment-modal__flow-stage {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pm-appointment-modal__flow-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pm-appointment-modal__flow-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__flow-copy {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.pm-appointment-modal__flow-back {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.pm-appointment-modal__specialties,
.pm-appointment-modal__doctor-list {
  display: grid;
  gap: 0.55rem;
}

.pm-appointment-modal__specialties {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-appointment-modal__doctor-list {
  grid-template-columns: 1fr;
}

.pm-appointment-modal__specialty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 4.8rem;
  padding: 0.78rem 0.82rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pm-appointment-modal__specialty:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 32px rgba(148, 163, 184, 0.16);
}

.pm-appointment-modal__specialty-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.pm-appointment-modal__specialty-count {
  font-size: 0.78rem;
  color: #64748b;
}

.pm-appointment-modal__option,
.pm-appointment-modal__option-empty {
  padding: 0.82rem 0.86rem 0.9rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.pm-appointment-modal__option {
  min-height: 5.2rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pm-appointment-modal__option:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 32px rgba(148, 163, 184, 0.16);
}

.pm-appointment-modal__option--doctor {
  min-height: auto;
  padding: 0.76rem 0.82rem;
}

.pm-appointment-modal__option.is-selected {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 18px 32px rgba(37, 99, 235, 0.1);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.pm-appointment-modal__option-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.pm-appointment-modal__option-subtitle,
.pm-appointment-modal__option-meta,
.pm-appointment-modal__option-empty {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.35;
}

.pm-appointment-modal__option-subtitle,
.pm-appointment-modal__option-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-appointment-modal__schedule-header {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  padding-right: 2.8rem;
}

.pm-appointment-modal__selected-item {
  margin-top: 0.22rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.pm-appointment-modal__week-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pm-appointment-modal__week-label {
  min-width: 8.6rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.pm-appointment-modal__nav-btn {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  cursor: pointer;
  font-size: 0.88rem;
}

.pm-appointment-modal__nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pm-appointment-modal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.74rem;
}

.pm-appointment-modal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pm-appointment-modal__legend i {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.pm-appointment-modal__legend .is-free {
  background: #2563eb;
}

.pm-appointment-modal__legend .is-occupied {
  background: #cbd5e1;
}

.pm-appointment-modal__week {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: 0.7rem;
  overflow: visible;
}

.pm-appointment-modal__day {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.58rem 0.42rem 0.62rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.88);
}

.pm-appointment-modal__day.is-today {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.pm-appointment-modal__day.is-empty {
  background: rgba(248, 250, 252, 0.82);
}

.pm-appointment-modal__day-head {
  margin-bottom: 0.42rem;
}

.pm-appointment-modal__day-weekday {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.pm-appointment-modal__day-date {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__slot-list {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.22rem;
}

.pm-appointment-modal__empty-state {
  grid-column: 1 / -1;
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem;
  border: 1px dashed rgba(147, 197, 253, 0.8);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 246, 255, 0.88) 100%);
  text-align: center;
}

.pm-appointment-modal__empty-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.pm-appointment-modal__empty-title,
.pm-appointment-modal__empty-copy {
  margin: 0;
}

.pm-appointment-modal__empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__empty-copy {
  max-width: 22rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #64748b;
}

.pm-appointment-modal__slot,
.pm-appointment-modal__slot-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.68rem;
  padding: 0 0.16rem;
  border-radius: 0.6rem;
  font-size: 0.7rem;
}

.pm-appointment-modal__slot {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.pm-appointment-modal__slot:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pm-appointment-modal__slot.is-free {
  background: rgba(219, 234, 254, 0.78);
  color: #1d4ed8;
}

.pm-appointment-modal__slot.is-free.is-selected {
  background: #2563eb;
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.pm-appointment-modal__slot.is-occupied {
  background: rgba(226, 232, 240, 0.9);
  color: #94a3b8;
  cursor: not-allowed;
}

.pm-appointment-modal__slot-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: #94a3b8;
}

.pm-appointment-modal__selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0;
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(147, 197, 253, 0.7);
  border-radius: 0.9rem;
  background: rgba(239, 246, 255, 0.86);
}

.pm-appointment-modal__selection-text {
  margin-top: 0.22rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.pm-appointment-modal__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.pm-appointment-modal__back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(147, 197, 253, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.pm-appointment-modal__checkout-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.pm-appointment-modal__checkout-top {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  justify-content: start;
}

.pm-appointment-modal__checkout-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(147, 197, 253, 0.7);
  border-radius: 0.9rem;
  background: rgba(239, 246, 255, 0.86);
}

.pm-appointment-modal__checkout-doctor {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  width: 100%;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
}

.pm-appointment-modal__checkout-doctor-empty {
  display: flex;
  min-height: 8.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.85rem;
  border: 1px dashed rgba(147, 197, 253, 0.8);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(239, 246, 255, 0.88) 100%);
  text-align: center;
}

.pm-appointment-modal__checkout-doctor-empty-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.pm-appointment-modal__checkout-doctor-empty-title,
.pm-appointment-modal__checkout-doctor-empty-copy {
  margin: 0;
}

.pm-appointment-modal__checkout-doctor-empty-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__checkout-doctor-empty-copy {
  max-width: 19rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #64748b;
}

.pm-appointment-modal__doctor-preview--checkout {
  margin-top: 0.1rem;
}

.pm-appointment-modal__form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.72rem;
  min-height: 0;
}

.pm-appointment-modal__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pm-appointment-modal__form-field--full {
  grid-column: 1 / -1;
}

.pm-appointment-modal__textarea {
  min-height: 4.6rem;
  padding-top: 0.72rem;
  resize: none;
}

.pm-appointment-modal__checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pm-appointment-modal__checkbox input {
  position: absolute;
  opacity: 0;
  inset: 0.02rem auto auto 0;
  width: 1.1rem;
  height: 1.1rem;
}

.pm-appointment-modal__checkbox-mark {
  position: relative;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.02rem;
  border: 1.5px solid #93c5fd;
  border-radius: 0.34rem;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.pm-appointment-modal__checkbox-mark::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.1rem;
  width: 0.24rem;
  height: 0.52rem;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) scale(0.82);
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pm-appointment-modal__checkbox input:checked + .pm-appointment-modal__checkbox-mark {
  border-color: #2563eb;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 0.48);
}

.pm-appointment-modal__checkbox input:checked + .pm-appointment-modal__checkbox-mark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.pm-appointment-modal__checkbox input:focus-visible + .pm-appointment-modal__checkbox-mark {
  outline: 4px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.pm-appointment-modal__checkbox-label {
  flex: 1;
  min-width: 0;
}

.pm-appointment-modal__field-error {
  margin: 0.22rem 0 0;
  color: #dc2626;
  font-size: 0.74rem;
  line-height: 1.35;
}

.pm-appointment-modal__form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.35rem;
}

.pm-appointment-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.pm-appointment-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pm-appointment-modal__success {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 40rem;
}

@media (max-width: 960px) {
  .pm-appointment-modal {
    padding: 0;
  }

  .pm-appointment-modal__dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: auto;
  }

  .pm-appointment-modal__layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .pm-appointment-modal__panel {
    padding: 1rem;
    overflow: visible;
  }

  .pm-appointment-modal__checkout {
    height: auto;
    padding: 1rem;
    overflow: visible;
  }

  .pm-appointment-modal__panel--schedule {
    border-left: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
  }

  .pm-appointment-modal__options {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__specialties {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__week {
    --pm-appointment-day-height: 22rem;
    flex: initial;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: var(--pm-appointment-day-height);
  }

  .pm-appointment-modal__day {
    height: var(--pm-appointment-day-height);
  }

  .pm-appointment-modal__checkout-head,
  .pm-appointment-modal__form-grid {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__checkout-top {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__schedule-header,
  .pm-appointment-modal__selection {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-appointment-modal__week-nav {
    justify-content: space-between;
  }
}
