/* Shared dialogs and modal forms. */
.holiday-panel { width: min(100%, 500px); }

#holiday-modal .appointment-modal__panel { overflow: visible; }

.holiday-form { display: flex; flex-direction: column; gap: 15px; padding: 20px 24px 24px; }

.holiday-field { display: flex; flex-direction: column; gap: 6px; color: #4b5563; font-size: .75rem; font-weight: 600; }

.holiday-field select, .holiday-field input { width: 100%; min-height: 40px; box-sizing: border-box; padding: 0 11px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; font-size: .82rem; outline: none; }

.holiday-field select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #6366f1 50%), linear-gradient(135deg, #6366f1 50%, transparent 50%); background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; }

.holiday-field select:focus, .holiday-field input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.holiday-form__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.holiday-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 5px; padding-top: 16px; border-top: 1px solid #e5e7eb; }

.holiday-form__footer p { margin: 0; color: #6b7280; font-size: .72rem; }

.holiday-form__actions { display: flex; align-items: center; gap: 8px; }

.holiday-form__actions .services-primary-button { min-height: 36px; }

.holiday-form__actions .services-primary-button.is-demo-confirmed { background: #059669; }

@media (max-width: 720px) {
  .holiday-form { padding-left: 18px; padding-right: 18px; }
}

.manual-block-panel { width: min(100%, 420px); }

.manual-block-form { padding: 20px 24px 24px; }

.manual-block-form__status { margin: 0; color: #475569; font-size: .88rem; font-weight: 700; }

.manual-block-form__time { margin: 6px 0 19px; color: #64748b; font-size: .78rem; }

.manual-block-form label { display: flex; flex-direction: column; gap: 6px; margin-top: 13px; color: #4b5563; font-size: .75rem; font-weight: 600; }

.manual-block-form label em { color: #9ca3af; font-size: .68rem; font-style: normal; font-weight: 500; }

.manual-block-form input, .manual-block-form textarea { width: 100%; box-sizing: border-box; min-height: 40px; padding: 10px 11px; border: 1px solid #d1d5db; border-radius: 8px; color: #1f2937; font: inherit; font-size: .82rem; font-weight: 400; outline: none; }
.manual-block-form textarea { resize: vertical; }
.manual-block-actions { display: flex; justify-content: space-between; margin-top: 20px; }
.manual-block-status { margin: 12px 0 0; color: #b91c1c; font-size: .8rem; }
.manual-block-status:empty { display: none; }

.manual-block-form input:focus, .manual-block-form textarea:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.13); }

.new-booking-panel { width: min(100%, 560px); max-width: 560px !important; }

#new-booking-modal { overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; }
#new-booking-modal.hidden { display: none; }
#new-booking-modal .appointment-modal__backdrop { position: fixed; }

#new-booking-modal .new-booking-panel { overflow: visible; max-height: none; margin: auto 0; }

.new-booking-form { padding: 20px 24px 24px; }

.new-booking-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 14px; }

.new-booking-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }

.new-booking-field--wide { grid-column: 1 / -1; }

.new-booking-field > span:first-child { color: #4b5563; font-size: 0.75rem; font-weight: 600; }

.new-booking-field input,
.new-booking-field select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; font-size: 0.82rem; outline: none; }

.new-booking-field input::placeholder { color: #9ca3af; }

.new-booking-field input:focus,
.new-booking-field select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,0.13); }

.new-booking-select, .new-booking-date { position: relative; display: block; }

.new-booking-select__button, .new-booking-date__button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #d1d5db; border-radius: 8px; background: white; color: #1f2937; font-size: 0.82rem; text-align: left; cursor: pointer; }

.new-booking-select__button:hover, .new-booking-date__button:hover { border-color: #a5b4fc; background: #fafaff; }

.new-booking-select__button[aria-expanded="true"], .new-booking-date__button[aria-expanded="true"] { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,0.13); }

.new-booking-select__chevron { color: #6366f1; font-size: 1rem; }

.new-booking-select__menu { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 50; max-height: 210px; overflow-y: auto; padding: 5px; border: 1px solid #e0e7ff; border-radius: 9px; background: #fff; box-shadow: 0 12px 25px rgba(15,23,42,0.14); }

.new-booking-select__menu[hidden], .new-booking-date__popover[hidden] { display: none; }

.new-booking-select__menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #374151; font-size: 0.8rem; text-align: left; cursor: pointer; }

.new-booking-select__menu button:hover { background: #eef2ff; color: #312e81; }

.new-booking-select[data-multi="true"] .new-booking-select__menu button { display: flex; align-items: center; gap: 8px; }

.select-check { width: 14px; height: 14px; border: 1px solid #c7d2fe; border-radius: 4px; background: white; }

.new-booking-select[data-multi="true"] .is-selected .select-check { border-color: #4f46e5; background: #4f46e5; box-shadow: inset 0 0 0 3px white; }

.new-booking-date__popover { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 50; min-width: 280px; padding: 13px; border: 1px solid #e0e7ff; border-radius: 12px; background: #fff; box-shadow: 0 14px 30px rgba(15,23,42,0.16); }

.new-booking-date__header, .new-booking-date__weekdays, .new-booking-date__days { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; gap: 3px; }

.new-booking-date__header { grid-template-columns: 32px 1fr 32px; margin-bottom: 10px; text-align: center; }

.new-booking-date__header button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: #f5f3ff; color: #4338ca; font-size: 1.2rem; cursor: pointer; }

.new-booking-date__header button:hover { background: #e0e7ff; }

.new-booking-date__header strong { color: #1f2937; font-size: 0.82rem; text-transform: capitalize; }

.new-booking-date__weekdays { margin-bottom: 4px; color: #9ca3af; font-size: 0.68rem; font-weight: 600; text-align: center; }

.new-booking-date__days button { height: 31px; border: 0; border-radius: 7px; background: transparent; color: #374151; font-size: 0.78rem; cursor: pointer; }

.new-booking-date__days button:hover { background: #eef2ff; color: #312e81; }

.new-booking-date__days button.is-selected { background: #4f46e5; color: white; font-weight: 600; }

.new-booking-date__time { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef2ff; color: #6b7280; font-size: 0.75rem; font-weight: 600; }

.new-booking-date__time select { flex: 1; min-height: 34px; padding: 0 9px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #1f2937; font-size: 0.8rem; }

.new-booking-field select { appearance: none; padding-right: 30px; cursor: pointer; }

.new-booking-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e5e7eb; }

.new-booking-form__footer p { min-width: 0; margin: 0; color: #6b7280; font-size: 0.72rem; white-space: nowrap; }

.new-booking-submit { position: relative; flex: 0 0 auto; min-height: 44px; padding: 0 19px; border: 0; border-radius: 9px; background: #4f46e5; color: #fff; font-size: 0.9rem; font-weight: 600; white-space: nowrap; cursor: pointer; }

.new-booking-submit:hover { background: #4338ca; }

.new-booking-submit:focus-visible { outline: 3px solid rgba(79,70,229,0.25); outline-offset: 2px; }



body.modal-open { overflow: hidden; }

.drag-demo-modal .appointment-modal__panel { max-width: 400px; }

.drag-demo-modal .appointment-modal__backdrop {
  background: rgba(17, 24, 39, 0.22);
  backdrop-filter: none;
}

.drag-demo-modal .appointment-modal__body p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

.drag-demo-modal .appointment-modal__footer { justify-content: flex-end; }

.drag-demo-modal__close {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.drag-demo-modal__close:hover { background: #374151; }

.drag-demo-modal__close:focus-visible { outline: 2px solid #374151; outline-offset: 3px; }

.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.appointment-modal.hidden { display: none; }

.appointment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(2px);
}

.appointment-modal__panel {
  position: relative;
  width: min(100%, 460px);
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
}

#manual-block-modal .appointment-modal__panel { width: min(100%, 506px); }

.appointment-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.appointment-modal__eyebrow {
  margin: 0 0 4px;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-modal__title {
  margin: 0;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.appointment-modal__phone { display: inline-block; margin-top: 7px; color: #4f46e5; font-size: 0.82rem; font-weight: 600; text-decoration: none; }

.appointment-modal__phone:hover { text-decoration: underline; }

.appointment-modal__header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }

.appointment-modal__navigation { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; }

.appointment-modal__navigation button { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 999px; background: transparent; color: #475569; cursor: pointer; }

.appointment-modal__navigation button:hover:not(:disabled) { background: #e0e7ff; color: #4338ca; }

.appointment-modal__navigation button:focus-visible { outline: 2px solid #818cf8; outline-offset: 1px; }

.appointment-modal__navigation button:disabled { color: #cbd5e1; cursor: default; }

.appointment-modal__navigation svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.appointment-modal__navigation span { min-width: 34px; color: #64748b; font-size: .68rem; font-weight: 600; text-align: center; }

.appointment-modal__quick-actions { display: flex; gap: 8px; margin: 0; padding: 0 24px 20px; }

.appointment-modal__quick-actions button,
.appointment-modal__actions button { position: relative; min-height: 36px; padding: 0 11px; border: 1px solid #c7d2fe; border-radius: 8px; background: #eef2ff; color: #4338ca; font-size: 0.76rem; font-weight: 600; cursor: pointer; }

.appointment-modal__quick-actions button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; border-color: #bae6fd; background: #f0f9ff; color: #0369a1; }

.appointment-modal__quick-actions button { -webkit-appearance: none; appearance: none; background-clip: padding-box; box-shadow: none; outline: 0; }

.appointment-modal__quick-actions svg { width: 14px; height: 14px; fill: currentColor; }

.appointment-modal__quick-actions button:hover,
.appointment-modal__actions button:hover { border-color: #a5b4fc; background: #e0e7ff; color: #312e81; }

.appointment-modal__quick-actions button.is-whatsapp:hover { border-color: #86efac; background: #dcfce7; color: #166534; }

.appointment-modal__actions button.is-danger:hover { border-color: #fca5a5; background: #fee2e2; color: #b91c1c; }

.appointment-modal__quick-actions button::after,
.appointment-modal__actions button::after { position: absolute; left: 50%; bottom: calc(100% + 7px); z-index: 20; display: none; padding: 5px 8px; border-radius: 6px; background: #111827; color: white; content: attr(data-tooltip); font-size: 0.68rem; font-weight: 500; line-height: 1; white-space: nowrap; transform: translateX(-50%); }

.appointment-modal__quick-actions button:hover::after,
.appointment-modal__actions button:hover::after { display: block; }

.appointment-modal__close {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #6b7280;
  font-size: 1.5rem;
  line-height: 1;
}

.appointment-modal__close:hover { background: #f3f4f6; color: #111827; }

.appointment-modal__close:focus-visible { outline: 2px solid #374151; outline-offset: 2px; }

.appointment-modal__body { padding: 20px 24px 24px; }

.appointment-note { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }

.appointment-note > span:first-child { color: #6b7280; font-size: .78rem; font-weight: 600; }

.appointment-note__field { position: relative; display: block; }

.appointment-note textarea { display: block; width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px 25px; border: 1px solid #dbe2ea; border-radius: 9px; background: #f8fafc; color: #1f2937; font-size: .82rem; line-height: 1.4; outline: none; }

.appointment-note textarea::placeholder { color: #9ca3af; }

.appointment-note textarea:focus { border-color: #818cf8; background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

.appointment-note__field small { position: absolute; right: 10px; bottom: 7px; color: #16a34a; font-size: .68rem; font-weight: 600; pointer-events: none; }

.appointment-note__field small.is-saving { color: #64748b; }

.appointment-details { margin: 0; }

.appointment-details__row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.appointment-details__row:last-child { border-bottom: 0; }

.appointment-details__row--selection-end { margin-bottom: 8px; border-bottom-color: #dfe3ea; }

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

.appointment-details dt { color: #6b7280; font-size: 0.82rem; }

.appointment-details dd { margin: 0; color: #1f2937; font-size: 0.9rem; font-weight: 600; }

.appointment-details a { color: #2563eb; text-decoration: none; }

.appointment-details a:hover { text-decoration: underline; }

.appointment-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.appointment-modal__footer p { margin: 0; color: #6b7280; font-size: 0.72rem; }

.appointment-modal__actions { display: flex; gap: 8px; }

.appointment-modal__actions button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .appointment-modal__header,
    .appointment-modal__body { padding-left: 18px; padding-right: 18px; }
  .appointment-modal__footer { align-items: stretch; flex-direction: column; padding: 14px 18px; }
  .appointment-modal__actions button { flex: 1; }
}

.appointment-modal__panel { max-height: calc(100dvh - 32px); overflow-y: auto; }

#manual-block-modal .appointment-modal__panel { overflow: visible; }

.appointment-details dd { overflow-wrap: anywhere; }

@media (max-width: 639px) {
  .new-booking-form { padding: 18px; }
  .new-booking-form__grid { grid-template-columns: 1fr; }
  .new-booking-field--wide { grid-column: auto; }
  .new-booking-form__footer { display: flex; align-items: stretch; flex-direction: column; }
  .new-booking-submit { width: 100%; }
}

.manual-block-actions { gap: 10px; flex-wrap: wrap; }
.manual-block-delete { min-height: 40px; padding: 0 15px; font-size: .8rem; border: 1px solid #b91c1c; border-radius: 8px; background: #fff1f2; color: #991b1b; font-weight: 600; cursor: pointer; }
.manual-block-delete.is-armed { background: #b91c1c; color: #fff; }
.manual-block-delete:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }
.manual-block-delete:disabled { opacity: .6; cursor: wait; }

.booking-service {
  min-width: 0;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.booking-service legend { padding: 0 6px; font-weight: 600; }
#new-booking-modal button:focus-visible,
#new-booking-modal input:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
#new-booking-modal button:disabled { opacity: .5; cursor: not-allowed; }
#new-booking-modal .new-booking-select__button { white-space: normal; overflow-wrap: anywhere; text-align: left; }
#booking-submit-status { color: #b91c1c; }
@media (max-width: 639px) { .booking-service { grid-template-columns: 1fr; } }

#new-booking-modal [role="option"][aria-selected="true"] { background: #eef2ff; color: #312e81; font-weight: 600; }

#booking-catalog-status:empty, #booking-submit-status:empty { display: none; }

/* Booking has one scrolling body; overlays belong to the dialog itself. */
#new-booking-modal { overflow: hidden; align-items: center; padding: 20px; }
#new-booking-modal .new-booking-panel { width: min(100%, 880px); max-width: 880px !important; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; margin: 0; }
#new-booking-modal .appointment-modal__header { flex: 0 0 auto; }
#new-booking-modal .new-booking-form { overflow-y: auto; min-height: 0; }
#new-booking-modal .new-booking-form__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.new-booking-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.booking-date-operator { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-sidebar { position: sticky; top: 0; min-width: 0; padding: 18px; border: 1px solid #e9dfff; border-radius: 12px; background: #f5f0ff; overflow-wrap: anywhere; font-size: .82rem; }
.booking-sidebar h3 { font-size: .95rem; font-weight: 650; margin: 0 0 16px; }
#booking-itemization > p { margin: 5px 0; }
.booking-summary-service { border-top: 1px solid #ddd6fe; padding: 12px 0; margin-top: 12px; }
.booking-summary-service small { display: block; color: #6b7280; margin-top: 4px; }
#booking-summary { display: block; border-top: 1px solid #ddd6fe; padding-top: 14px; font-weight: 650; }
#new-booking-modal .new-booking-form__footer { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; padding-top: 0; border: 0; }
#new-booking-modal .booking-service { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.booking-service-header { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.booking-service-header .new-booking-field > span { display: none; }
.booking-service-price { white-space: nowrap; font-size: .75rem; font-weight: 600; }
.booking-service legend { color: #6d28d9; font-size: .75rem; }
.booking-service > .service-secondary-button { grid-column: 1 / -1; justify-self: end; font-size: .75rem; }
.booking-overlays { position: relative; z-index: 60; }
#new-booking-modal .booking-overlays > * { overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
.booking-addon { display: flex; align-items: center; gap: 10px; padding: 10px 8px; font-size: .8rem; cursor: pointer; overflow-wrap: anywhere; }
.booking-addon input { flex: 0 0 auto; accent-color: #6d28d9; }
.booking-availability-heading { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; }
.booking-refresh { position: relative; border: 1px solid #ddd6fe; border-radius: 8px; background: #f5f3ff; color: #6d28d9; width: 32px; height: 32px; font-size: 1.3rem; cursor: pointer; }
.booking-refresh-tooltip { display: none; position: absolute; bottom: calc(100% + 8px); right: 0; background: #1f2937; color: white; padding: 6px 9px; border-radius: 5px; font-size: .72rem; white-space: nowrap; }
.booking-refresh:hover .booking-refresh-tooltip, .booking-refresh:focus-visible .booking-refresh-tooltip { display: block; }
.booking-hour-navigation { display: flex; gap: 6px; min-width: 0; }
.booking-hours { display: flex; gap: 6px; overflow-x: auto; position: relative; min-width: 0; flex: 1; padding: 4px; }
.booking-hours button { flex: 0 0 auto; }
.booking-hour-navigation > button, .booking-hours button, .booking-minutes button { border: 1px solid #d1d5db; background: white; color: #374151; border-radius: 8px; padding: 9px 11px; font-size: .8rem; cursor: pointer; }
.booking-minutes { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; margin-top: 12px; }
#new-booking-modal [aria-pressed="true"] { background: #6d28d9; border-color: #6d28d9; color: white; }
@media (max-width: 767px) {
  #new-booking-modal { padding: 10px; }
  #new-booking-modal .new-booking-panel { max-height: calc(100dvh - 20px); }
  #new-booking-modal .new-booking-form__grid { grid-template-columns: minmax(0, 1fr); }
  .booking-sidebar { position: static; }
  .booking-service-header { grid-template-columns: minmax(0, 1fr); }
}

/* Contact fields and booking summary refinements. */
#new-booking-modal .new-booking-form__grid { align-items: stretch; }
.booking-customer-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; }
.booking-customer-row > * { min-width: 0; }
.booking-phone-control { display: flex; align-items: center; min-height: 40px; overflow: hidden; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }
.booking-phone-control:focus-within { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.13); }
.booking-phone-control > span { padding: 0 0 0 11px; color: #6b7280; font-size: .82rem; font-weight: 500; }
.booking-phone-control input,
#new-booking-modal .booking-phone-control input { min-width: 0; min-height: 38px; padding: 0 8px; border: 0; outline: 0; box-shadow: none; }
.booking-sidebar { display: flex; min-height: 100%; flex-direction: column; box-sizing: border-box; }
#booking-itemization { flex: 1 0 auto; }
.booking-summary-customer, .booking-summary-appointment { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.booking-summary-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid #e5e7eb; border-radius: 10px; background: rgba(255,255,255,.78); color: #374151; font-size: 1.1rem; }
.booking-summary-person, .booking-summary-details { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.booking-summary-person strong, .booking-summary-details strong { font-size: .8rem; }
.booking-summary-person small, .booking-summary-details small { color: #64748b; font-size: .72rem; }
.booking-summary-service { padding: 10px 0 4px; }
.booking-summary-service__head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.booking-summary-number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fff; color: #6d28d9; font-size: .8rem; font-weight: 700; }
.booking-summary-service__name, .booking-summary-service__contribution { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.booking-summary-service__name strong { overflow-wrap: anywhere; font-size: .8rem; }
.booking-summary-service__name small { margin: 0; font-size: .7rem; }
.booking-summary-service__contribution { align-items: flex-end; text-align: right; white-space: nowrap; }
.booking-summary-service__contribution strong { font-size: .76rem; }
.booking-summary-addon { display: grid; grid-template-columns: minmax(0, 1fr) 52px 66px; gap: 8px; align-items: center; margin: 8px 0 0 39px; font-size: .72rem; }
.booking-summary-addon > span:nth-child(2), .booking-summary-addon > strong { text-align: right; white-space: nowrap; }
#booking-summary { margin-top: 16px; padding: 13px 12px; border: 0; border-radius: 11px; background: #ebe8ff; }
.booking-summary-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .95rem; }
.booking-summary-total__label { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; }
.booking-summary-total__icon { display: inline-grid; min-width: 22px; place-items: center; color: #5b21b6; font-size: 1.4rem; font-weight: 500; line-height: 1; }
.booking-summary-total strong { text-align: right; white-space: nowrap; font-size: 1.02rem; font-weight: 700; }
#new-booking-modal .new-booking-form__footer { flex-direction: row; align-items: stretch; gap: 10px; margin-top: 14px; padding: 0; border: 0; }
#new-booking-modal .new-booking-form__footer > button { width: auto; flex: 1 1 0; justify-content: center; }
#booking-availability-status { color: #64748b; font-size: .72rem; line-height: 1.35; }
html[data-theme="dark"] .booking-phone-control { border-color: var(--theme-border); background: var(--theme-input); }
html[data-theme="dark"] .booking-phone-control > span,
html[data-theme="dark"] .booking-summary-person small,
html[data-theme="dark"] .booking-summary-details small { color: var(--theme-muted); }
html[data-theme="dark"] .booking-summary-icon,
html[data-theme="dark"] .booking-summary-number { border-color: var(--theme-border); background: var(--theme-input); color: #c4b5fd; }
html[data-theme="dark"] #booking-summary { background: #302b50; }
@media (max-width: 767px) {
  .booking-sidebar { min-height: auto; }
  #booking-itemization { flex: 0 0 auto; }
  #new-booking-modal .new-booking-form__footer { flex-direction: row; }
}

/* Keep the hour strip scrollable without its overlaying native scrollbar. */
.booking-hours { scrollbar-width: none; -ms-overflow-style: none; }
.booking-hours::-webkit-scrollbar { display: none; }
.booking-summary-addon > span:nth-child(2),
.booking-summary-addon > strong { justify-self: end; font-variant-numeric: tabular-nums; }

/* Appointment details and rescheduling share one scrollable dialog. */
#appointment-modal .appointment-modal__panel { width: min(100%, 1180px); display: flex; flex-direction: column; overflow: hidden; }
#appointment-modal [hidden] { display: none; }
#appointment-modal .appointment-modal__header { flex: 0 0 auto; padding: 22px 28px 18px; align-items: center; border-bottom: 1px solid #eef0f6; }
#appointment-modal .appointment-modal__header > div:first-child { min-width: 0; }
#appointment-modal .appointment-modal__eyebrow { margin: 0 0 8px; color: #64748b; font-size: .72rem; letter-spacing: .1em; }
#appointment-modal .appointment-modal__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
#appointment-modal .appointment-modal__title { font-size: 1.8rem; overflow-wrap: anywhere; }
#appointment-modal .appointment-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: #dcf5e9; color: #059447; font-size: .8rem; font-weight: 600; }
#appointment-modal .appointment-status::before { content: '✓'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #059447; color: white; font-size: .65rem; }
#appointment-modal .appointment-modal__header-actions { gap: 28px; }
#appointment-modal .appointment-modal__navigation { gap: 10px; padding: 5px 8px; }
#appointment-modal .appointment-modal__navigation span { min-width: 44px; font-size: .75rem; }
#appointment-modal .appointment-modal__body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 26px; }
#appointment-modal .appointment-overview { min-width: 0; padding-top: 10px; }
#appointment-modal .appointment-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 14px; border: 1px solid #eeebff; border-radius: 10px; background: #f7f6ff; }
#appointment-modal .appointment-customer-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #e6e2ff; color: #6554ec; font-size: 1.2rem; font-weight: 600; }
#appointment-modal .appointment-customer { min-width: 0; flex: 1; }
#appointment-modal .appointment-customer strong { display: block; font-size: 1.1rem; overflow-wrap: anywhere; }
#appointment-modal .appointment-modal__phone { margin-top: 4px; color: #64748b; font-size: .85rem; overflow-wrap: anywhere; }
#appointment-modal .appointment-modal__quick-actions { flex-wrap: wrap; gap: 6px; padding: 0; margin-left: auto; }
#appointment-modal .appointment-modal__quick-actions button { flex: 0 0 auto; min-height: 36px; padding: 0 9px; border-color: #bae0fd; background: #f8fcff; color: #0284c7; font-size: .7rem; }
#appointment-modal button:disabled { cursor: not-allowed; }
#appointment-modal button:disabled::after { display: none; }
#appointment-modal .appointment-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr); gap: 14px; padding: 16px; margin: 20px 0; border-radius: 10px; background: #f7f6ff; }
#appointment-modal .appointment-details__row { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; min-width: 0; }
#appointment-modal .appointment-details__row + .appointment-details__row { padding-left: 14px; border-left: 1px solid #e0dff0; }
#appointment-modal .appointment-details dt { color: #64748b; font-size: .68rem; }
#appointment-modal .appointment-details dd { font-size: .8rem; font-weight: 500; }
#appointment-modal .appointment-services h3 { margin: 0 0 10px; color: #111827; font-size: 1.05rem; font-weight: 650; }
#appointment-modal .appointment-services__list { counter-reset: appointment-service; list-style: none; padding: 0 14px; margin: 0; border: 1px solid #e8eaf3; border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
#appointment-modal .appointment-services__list:empty { display: none; }
#appointment-modal .appointment-services__list li { position: relative; padding: 16px 0 16px 54px; min-height: 72px; }
#appointment-modal .appointment-services__list li + li { border-top: 1px solid #eef0f6; }
#appointment-modal .appointment-services__list li::before { counter-increment: appointment-service; content: counter(appointment-service); position: absolute; top: 14px; left: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e9e5ff; color: #5846dd; font-size: 1rem; font-weight: 650; }
#appointment-modal .appointment-services__list h4 { margin: 0; color: #111827; font-size: .88rem; font-weight: 650; }
#appointment-modal .appointment-services__list p { margin: 5px 0 0; color: #64748b; font-size: .75rem; }
#appointment-modal .appointment-duration { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; margin-top: 16px; border-radius: 10px; background: #f7f6ff; font-size: .9rem; }
#appointment-modal .appointment-duration > span { display: inline-flex; align-items: center; gap: 12px; color: #64748b; }
#appointment-modal .appointment-note { margin-top: 28px; }
#appointment-modal .appointment-note > span:first-child { display: flex; align-items: center; gap: 10px; color: #111827; font-size: .95rem; }
#appointment-modal .appointment-note small { padding: 3px 8px; border: 1px solid #e5e7eb; border-radius: 999px; background: #f8fafc; color: #64748b; font-size: .65rem; font-weight: 400; }
#appointment-modal .appointment-note textarea { min-height: 105px; padding: 14px; resize: none; font-size: .8rem; }
#appointment-modal .appointment-note__field small:empty { display: none; }
#appointment-modal .appointment-sidebar { min-width: 0; padding-left: 16px; border-left: 1px solid #f0f1f7; }
#appointment-modal .appointment-reschedule-card,
#appointment-modal .appointment-cancel-card { padding: 16px; border-radius: 11px; background: #f7f6ff; }
#appointment-modal .appointment-sidebar h3 { margin: 0 0 16px; font-size: 1rem; font-weight: 650; }
#appointment-modal .appointment-reschedule-card > h3,
#appointment-modal .appointment-cancel-card > h3 { padding-bottom: 13px; border-bottom: 1px solid #e8e5fa; color: #20165b; }
#appointment-modal .appointment-sidebar p { color: #64748b; font-size: .74rem; line-height: 1.5; }
#appointment-modal .appointment-primary,
#appointment-modal .appointment-secondary,
#appointment-modal .appointment-danger { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #d5d9e5; border-radius: 8px; background: transparent; color: #475569; font-size: .8rem; font-weight: 500; cursor: pointer; }
#appointment-modal .appointment-primary { border-color: #6554ec; background: linear-gradient(110deg, #6654f3, #7969e8); color: white; }
#appointment-modal .appointment-primary:hover:not(:disabled) { background: #5846dd; }
#appointment-modal .appointment-secondary:hover:not(:disabled) { background: #eeebff; }
#appointment-modal .appointment-primary:disabled { opacity: .65; cursor: wait; }
#appointment-modal .appointment-cancel-card { margin-top: 12px; background: #fff5f7; }
#appointment-modal .appointment-cancel-card h3 { color: #881337; border-color: #ffe4e6; }
#appointment-modal .appointment-danger { border-color: #fda4af; color: #e11d48; }
#appointment-reschedule-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
#appointment-reschedule-form .new-booking-select__button,
#appointment-reschedule-form .new-booking-date__button { padding: 10px; min-height: 40px; white-space: normal; overflow-wrap: anywhere; }
#appointment-modal .appointment-reschedule-time-heading { display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; font-size: .8rem; font-weight: 500; }
#appointment-modal .reschedule-reset { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px 7px; border: 0; border-radius: 6px; background: transparent; color: #64748b; font-size: .7rem; font-weight: 500; cursor: pointer; }
#appointment-modal .reschedule-reset:hover:not(:disabled) { background: #f1f5f9; color: #475569; }
#appointment-modal .reschedule-reset:disabled { opacity: .45; cursor: default; }
#appointment-modal .reschedule-reset > span { font-size: 1rem; line-height: 1; }
#appointment-modal .appointment-reschedule-time-heading > span { color: #64748b; }
#appointment-modal .reschedule-hours { display: flex; gap: 5px; align-items: center; }
#appointment-modal .reschedule-hours button,
#appointment-modal .reschedule-minutes button { min-width: 0; min-height: 38px; padding: 6px 2px; border: 1px solid #dfe1ed; border-radius: 8px; background: #fff; color: #475569; font-size: .7rem; font-variant-numeric: tabular-nums; cursor: pointer; }
#appointment-modal .reschedule-hours > button:first-child,
#appointment-modal .reschedule-hours > button:last-child { font-size: 1.2rem; }
#appointment-modal .reschedule-hours button:disabled { opacity: .4; cursor: default; }
#appointment-modal .reschedule-minutes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
#appointment-modal .reschedule-hours [aria-pressed="true"],
#appointment-modal .reschedule-minutes [aria-pressed="true"] { border-color: #6654ef; background: #6654ef; color: white; }
#appointment-modal .reschedule-hour-label { margin: 14px 0; }
#appointment-modal .appointment-reschedule-hint { margin: 12px 0; font-size: .68rem; }
#appointment-reschedule-actions { display: grid; gap: 8px; margin-top: 16px; }
#appointment-modal #appointment-reschedule-status { margin: 10px 0; color: #b91c1c; font-size: .78rem; }
#appointment-reschedule-status:empty { display: none; }
#appointment-modal button:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#appointment-modal [aria-selected="true"] { background: #ede9fe; color: #5b21b6; font-weight: 600; }
@media (max-width: 850px) {
  #appointment-modal .appointment-modal__body { grid-template-columns: minmax(0, 1fr); }
  #appointment-modal .appointment-sidebar { padding-left: 0; border-left: 0; }
  #appointment-modal .reschedule-minutes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  #appointment-modal .appointment-modal__header { align-items: flex-start; gap: 10px; padding: 16px; }
  #appointment-modal .appointment-modal__header-actions { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  #appointment-modal .appointment-modal__body { padding: 0 14px 16px; gap: 18px; }
  #appointment-modal .appointment-modal__title { font-size: 1.4rem; }
  #appointment-modal .appointment-modal__heading { gap: 8px; }
  #appointment-modal .appointment-status { padding: 4px 8px; font-size: .65rem; }
  #appointment-modal .appointment-contact { gap: 10px; }
  #appointment-modal .appointment-modal__quick-actions { width: 100%; }
  #appointment-modal .appointment-modal__quick-actions button { flex: 1; }
  #appointment-modal .appointment-details { grid-template-columns: minmax(0, 1fr); }
  #appointment-modal .appointment-details__row + .appointment-details__row { border-left: 0; padding-left: 0; }
  #appointment-modal .appointment-note { margin-top: 20px; }
  #appointment-reschedule-fields { grid-template-columns: minmax(0, 1fr); }
  #appointment-modal .reschedule-minutes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#appointment-modal .appointment-inline-icon { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#appointment-modal .appointment-reschedule-time-heading .appointment-inline-icon { width: 15px; height: 15px; }
#appointment-modal .appointment-status::before { content: ''; background: #059447 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 3 3 5-6' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
#appointment-reschedule-form .new-booking-date__button::after,
#appointment-reschedule-form .new-booking-select__button::after { content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin: 0 2px 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

/* Availability controls and floating date calendar stay within the dialog. */
#appointment-overlays > * { overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
#appointment-modal .reschedule-hours > button { flex: 0 0 26px; }
#appointment-modal .reschedule-hours-track { display: flex; gap: 5px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 3px; scrollbar-width: none; }
#appointment-modal .reschedule-hours-track::-webkit-scrollbar { display: none; }
#appointment-modal .reschedule-hours-track button { flex: 0 0 auto; padding: 7px 9px; }
#appointment-modal .reschedule-feedback { font-size: .78rem; margin: 12px 0; }
#appointment-modal button:focus-visible { outline: 2px solid #8b7df5; outline-offset: 2px; }

#appointment-modal .reschedule-preference { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: .78rem; line-height: 1.5; cursor: pointer; }
#appointment-modal .reschedule-preference input { flex: 0 0 auto; width: 16px; height: 16px; min-height: 16px; padding: 0; margin: 2px 0 0; accent-color: #7c3aed; }
#appointment-modal .reschedule-preference input:focus-visible { outline: 2px solid #7c3aed; outline-offset: 3px; }
#appointment-modal .reschedule-preference:has(input:disabled) { opacity: .6; cursor: default; }
#appointment-modal .reschedule-preference-help { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 7px; margin: 0; color: #64748b; font-size: .72rem; line-height: 1.5; }

#appointment-modal .reschedule-preference-info { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 12px; width: 12px; height: 12px; margin-top: 2px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 600; line-height: 1; }

#appointment-modal .appointment-danger:hover:not(:disabled) { background: #ffe4e6; }
#appointment-modal .appointment-danger:disabled { opacity: .5; cursor: not-allowed; }
#appointment-modal .appointment-cancel-confirmation { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0; font-size: .8rem; line-height: 1.5; }
#appointment-modal .appointment-cancel-confirmation span { cursor: pointer; }
#appointment-modal .appointment-cancel-confirmation input { margin-top: 3px; accent-color: #e11d48; flex-shrink: 0; }
#appointment-modal #appointment-cancel-back { margin-top: 8px; }
#appointment-modal #appointment-cancel-status { color: #be123c; }

.appointment-phase-timeline { color: var(--theme-text, #334155); list-style: none; margin: 16px 0; padding: 0 0 0 12px; }
.appointment-phase-timeline li { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-left: 2px solid currentColor; font-size: 12px; }
.appointment-phase-timeline .phase-timeline-processing { border-left-style: dashed; opacity: .65; }
.appointment-phase-timeline span { font-size: 11px; }

#appointment-modal .appointment-reschedule-card.appointment-phase-card { margin-bottom: 12px; background: #fafaff; }
#appointment-modal .appointment-phase-card:has(.appointment-phase-timeline[hidden]) { display: none; }
#appointment-modal .appointment-phase-card .appointment-phase-timeline { margin: 0; padding: 0; }
html[data-theme="dark"] #appointment-modal .appointment-reschedule-card.appointment-phase-card { background: rgba(139, 128, 190, .04); }
