/* Shared confirmation dialog contract for dashboard booking workflows. */
body .pc-confirm-modal {
  --pc-dialog-danger: #dc2626;
  --pc-dialog-danger-hover: #b91c1c;
}

body .pc-confirm-modal .pc-dialog-surface {
  width: min(500px, calc(100vw - 32px));
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--bs-border-color, #d8dee8);
  border-radius: 8px;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

body .pc-confirm-modal .pc-dialog-header,
body .pc-confirm-modal .pc-dialog-body,
body .pc-confirm-modal .pc-dialog-footer {
  padding: 20px 24px;
}

body .pc-confirm-modal .pc-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--bs-border-color, #d8dee8);
}

body .pc-confirm-modal .pc-dialog-header::before,
body .pc-confirm-modal .pc-dialog-header::after,
body .pc-confirm-modal .pc-dialog-footer::before,
body .pc-confirm-modal .pc-dialog-footer::after {
  content: none !important;
  display: none !important;
}

body .pc-confirm-modal .pc-dialog-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

body .pc-confirm-modal .pc-dialog-header .btn-close {
  flex: 0 0 auto;
  margin: 0 0 0 auto !important;
}

body .pc-confirm-modal .pc-dialog-body {
  font-size: 16px;
  line-height: 1.5;
}

body .pc-confirm-modal .pc-dialog-body > :last-child {
  margin-bottom: 0;
}

body .pc-confirm-modal .pc-dialog-footer {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  border-top: 1px solid var(--bs-border-color, #d8dee8);
  background: var(--bs-tertiary-bg, #f8f9fa);
}

body .pc-confirm-modal .pc-dialog-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 40px;
  margin: 0 !important;
  white-space: nowrap;
}

body .pc-confirm-modal .pc-dialog-footer .btn-outline-secondary {
  color: var(--bs-primary, #0d6efd);
  border-color: var(--bs-primary, #0d6efd);
  background: var(--bs-body-bg, #fff);
}

body .pc-confirm-modal .pc-dialog-footer .btn-outline-secondary:hover,
body .pc-confirm-modal .pc-dialog-footer .btn-outline-secondary:focus-visible {
  color: var(--bs-white, #fff);
  border-color: var(--bs-primary, #0d6efd);
  background: var(--bs-primary, #0d6efd);
}

body .pc-confirm-modal .pc-dialog-footer .btn-danger {
  color: var(--bs-white, #fff);
  border-color: var(--pc-dialog-danger);
  background: var(--pc-dialog-danger);
}

body .pc-confirm-modal .pc-dialog-footer .btn-danger:hover,
body .pc-confirm-modal .pc-dialog-footer .btn-danger:focus-visible {
  color: var(--bs-white, #fff);
  border-color: var(--pc-dialog-danger-hover);
  background: var(--pc-dialog-danger-hover);
}

@media (max-width: 575.98px) {
  body .pc-confirm-modal .pc-dialog-header,
  body .pc-confirm-modal .pc-dialog-body,
  body .pc-confirm-modal .pc-dialog-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  body .pc-confirm-modal .pc-dialog-footer {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
  }

  body .pc-confirm-modal .pc-dialog-footer .btn {
    width: 100%;
  }
}
