/* Booking deletion: clear context, separate consequences, and the existing actions. */
:root[data-theme] body > dialog#appointment-delete-dialog {
  --delete-max-height: min(840px, calc(100dvh - 40px));
  --delete-notice-bg: #33232b;
  --delete-notice-line: #76404d;
  --delete-notice-ink: #f1b8c1;
  width: min(640px, calc(100vw - 32px));
  max-width: 640px;
  max-height: var(--delete-max-height);
  padding: 0;
  border: 1px solid var(--v7-line);
  border-radius: 18px;
  background: var(--v7-bg);
  color: var(--v7-ink);
  overflow: hidden;
  font: 15px/1.5 var(--font);
  box-shadow: 0 24px 80px #0005;
}
:root[data-theme=light] body > dialog#appointment-delete-dialog { --delete-notice-bg: #fcf1f0; --delete-notice-line: #e1b9bb; --delete-notice-ink: #913447; }
:root[data-theme] body > dialog#appointment-delete-dialog [hidden] { display: none !important; }
:root[data-theme] body > dialog#appointment-delete-dialog > form { max-height: calc(var(--delete-max-height) - 2px); }
:root[data-theme] body > dialog#appointment-delete-dialog .dialog-header {
  position: static;
  gap: 14px;
  padding: 24px 28px;
  background: var(--v7-section-header) !important;
  border-bottom: 1px solid var(--v7-section-header-line);
}
:root[data-theme] body > dialog#appointment-delete-dialog .dialog-header h2 { flex: 1; margin: 0; font: 750 25px/1.3 var(--font-heading); letter-spacing: -.5px; color: #fff; }
.delete-dialog-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #ffffff2b; border-radius: 12px; background: #ffffff0a; color: #f5dce2; }
.delete-dialog-symbol svg { width: 23px; height: 23px; }
:root[data-theme] body > dialog#appointment-delete-dialog .icon-close { width: 38px; height: 38px; min-width: 38px; min-height: 38px; padding: 0; border: 1px solid #ffffff35; border-radius: 10px; background: transparent; color: #fff; }
:root[data-theme] body > dialog#appointment-delete-dialog .dialog-body { display: grid; gap: 20px; min-height: 0; padding: 26px 28px; background: var(--v7-bg); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--v7-line) transparent; }
.delete-booking-card { min-width: 0; padding: 20px; border: 1px solid var(--v7-line); border-radius: 14px; background: var(--v7-surface); }
.delete-client-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.delete-client-heading > div { flex: 1; min-width: 0; }
.delete-client-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--v7-line); border-radius: 50%; background: var(--v7-panel); color: var(--v7-muted); font-size: 14px; font-weight: 650; }
.delete-caption { display: block; margin-bottom: 3px; color: var(--v7-muted); font-size: 13px; }
:root[data-theme] body > dialog#appointment-delete-dialog .delete-client-heading h3 { margin: 0; padding: 0; border: 0; color: var(--v7-ink); font: 700 18px/1.4 var(--font-heading); overflow-wrap: anywhere; }
.delete-booking-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; padding: 18px 0; border-block: 1px solid var(--v7-divider); }
.delete-booking-details > div { min-width: 0; }
.delete-booking-details dt { margin-bottom: 5px; color: var(--v7-muted); font-size: 13px; }
.delete-booking-details dd { margin: 0; color: var(--v7-ink); font-size: 16px; line-height: 1.5; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.delete-service-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--v7-muted); font-size: 13px; }
.delete-service-count { display: grid; place-items: center; min-width: 23px; min-height: 23px; padding: 1px 6px; border: 1px solid var(--v7-line); border-radius: 6px; color: var(--v7-ink); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.delete-service-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--v7-ink); font-size: 15px; line-height: 1.5; }
.delete-service-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; overflow-wrap: anywhere; }
.delete-service-list li > span:first-child { min-width: 0; }
.delete-service-quantity { flex: none; color: var(--v7-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.delete-service-list li + li { padding-top: 9px; border-top: 1px solid var(--v7-divider); }
.delete-notice { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--delete-notice-line); border-radius: 12px; background: var(--delete-notice-bg); color: var(--delete-notice-ink); }
.delete-notice > div { flex: 1; min-width: 0; }
.delete-notice-icon { width: 21px; height: 21px; flex: 0 0 21px; margin-top: 2px; }
.delete-notice strong { display: block; margin-bottom: 5px; font-size: 15px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
:root[data-theme] body > dialog#appointment-delete-dialog .delete-notice p { margin: 0; color: var(--delete-notice-ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
#appointment-delete-dialog[data-delete-state=loading] .delete-notice { border-color: var(--v7-line); background: var(--v7-surface); }
#appointment-delete-dialog[data-delete-state=loading] :is(.delete-notice-icon,.delete-notice strong) { display: none; }
:root[data-theme] body > dialog#appointment-delete-dialog[data-delete-state=loading] .delete-notice p { color: var(--v7-muted); }
#appointment-delete-dialog[data-delete-state=locked] .delete-notice { --delete-notice-bg: var(--v7-panel); --delete-notice-line: var(--v7-line); --delete-notice-ink: var(--v7-muted); }
.delete-session-return { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--v7-line); border-radius: 12px; background: var(--v7-surface); color: var(--v7-ink); font-size: 14px; }
.delete-return-symbol { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #5a9b7e20; color: #79b798; font-size: 23px; }
:root[data-theme=light] .delete-return-symbol { color: #317859; }
.delete-session-return > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.delete-session-return small { display: block; margin-top: 3px; color: var(--v7-muted); font-size: 13px; }
.delete-session-return > strong { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
:root[data-theme] body > dialog#appointment-delete-dialog .dialog-footer { position: static; display: grid; grid-template-columns: minmax(0,1fr); justify-content: stretch; gap: 12px; padding: 20px 28px; border-top: 1px solid var(--v7-line); background: var(--v7-surface); }
:root[data-theme] body > dialog#appointment-delete-dialog [data-delete-error] { margin: 0; padding: 12px 14px; border: 1px solid var(--delete-notice-line); border-radius: 10px; background: var(--delete-notice-bg); color: var(--delete-notice-ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
:root[data-theme] body > dialog#appointment-delete-dialog [data-delete-error]:empty { display: none; }
.delete-dialog-actions { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
:root[data-theme] body > dialog#appointment-delete-dialog .delete-dialog-actions button { min-height: 46px; margin: 0; padding: 11px 18px; border-radius: 10px; font: 650 15px/1.5 var(--font); white-space: normal; }
:root[data-theme] body > dialog#appointment-delete-dialog .delete-dialog-actions [data-delete-cancel] { order: 0; border: 1px solid var(--v7-line); background: transparent; color: var(--v7-ink); }
:root[data-theme] body > dialog#appointment-delete-dialog [data-delete-confirm] { order: 1; min-width: 178px; border: 1px solid #ad394c; background: linear-gradient(115deg,#8c2038,#a92e43); color: #fff; box-shadow: 0 3px 8px #49182c25; }
:root[data-theme] body > dialog#appointment-delete-dialog [data-delete-confirm]:hover:not(:disabled) { border-color: #ce5b6d; background: #a92e43; }
:root[data-theme] body > dialog#appointment-delete-dialog [data-delete-confirm]:disabled { opacity: .4; cursor: default; box-shadow: none; }
:root[data-theme] body > dialog#appointment-delete-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:root[data-theme] body > dialog#appointment-delete-dialog .dialog-header button:focus-visible { outline-color: #fff; }
@media (max-width: 600px) {
  :root[data-theme] body > dialog#appointment-delete-dialog { --delete-max-height: calc(100dvh - 16px); width: calc(100vw - 16px); border-radius: 14px; }
  :root[data-theme] body > dialog#appointment-delete-dialog .dialog-header { padding: 18px 16px; gap: 11px; }
  :root[data-theme] body > dialog#appointment-delete-dialog .dialog-header h2 { font-size: 21px; }
  .delete-dialog-symbol { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .delete-dialog-symbol svg { width: 20px; height: 20px; }
  :root[data-theme] body > dialog#appointment-delete-dialog .dialog-body { padding: 20px 16px; gap: 16px; }
  .delete-booking-card { padding: 16px; }
  .delete-booking-details { gap: 14px; margin: 18px 0; padding-block: 16px; }
  :root[data-theme] body > dialog#appointment-delete-dialog .dialog-footer { padding: 16px; }
  .delete-dialog-actions { gap: 10px; }
  :root[data-theme] body > dialog#appointment-delete-dialog .delete-dialog-actions button { flex: 1; min-width: 0; padding-inline: 12px; font-size: 14px; }
}
@media (max-width: 360px) {
  .delete-dialog-actions { flex-direction: column; }
  :root[data-theme] body > dialog#appointment-delete-dialog .dialog-header h2 { font-size: 20px; }
  .delete-client-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
  .delete-client-heading { gap: 10px; }
}
@media (max-height: 600px) {
  :root[data-theme] body > dialog#appointment-delete-dialog .dialog-header { padding-block: 12px; }
  :root[data-theme] body > dialog#appointment-delete-dialog .dialog-footer { padding-block: 12px; }
}
