/* Delete account / privacy page */
.patient-privacy-page--account-delete .patient-privacy-page-header .patient-page-header__title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.patient-privacy-page--account-delete .patient-privacy-content {
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom)) !important;
}

.patient-privacy-page--account-delete .patient-page-header p:empty {
  display: none;
}

.patient-privacy-section {
  margin-bottom: 22px;
}

.patient-privacy-section__title {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f3f4f6;
  letter-spacing: -0.01em;
}

/* Intro card */
.patient-privacy-intro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.patient-privacy-intro__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
  font-size: 1.1rem;
}

.patient-privacy-intro__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
}

.patient-privacy-intro__text {
  margin: 0;
  font-size: 0.9rem;
  color: #c5d0e0;
  line-height: 1.5;
}

.patient-privacy-intro__link {
  display: inline-block;
  margin-top: 8px;
  margin-right: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
}

.patient-privacy-intro__link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

/* What will happen rows */
.patient-privacy-rows {
  list-style: none;
  margin: 0;
  padding: 14px 16px;
  display: grid;
  gap: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(45, 59, 82, 0.55);
}

.patient-privacy-rows li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #d1dae8;
  line-height: 1.45;
}

.patient-privacy-rows li i {
  flex-shrink: 0;
  width: 1.125rem;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  color: #93c5fd;
  text-align: center;
}

.patient-privacy-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.patient-privacy-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
  white-space: nowrap;
}

/* Retained records */
.patient-privacy-retained {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(71, 85, 105, 0.35);
}

.patient-privacy-retained__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  font-size: 1rem;
}

.patient-privacy-retained__text {
  margin: 0;
  font-size: 0.875rem;
  color: #b6c2d6;
  line-height: 1.5;
}

/* Actions */
.patient-privacy-delete-actions {
  margin-top: 28px;
}

.patient-privacy-delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(127, 29, 29, 0.28);
  transition: filter 0.15s, background 0.15s;
}

.patient-privacy-delete-btn:hover {
  filter: brightness(1.06);
}

.patient-privacy-delete-btn i {
  font-size: 1.05rem;
}

.patient-privacy-recovery {
  margin-top: 32px;
}

.patient-privacy-recovery__title {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e5e7eb;
}

.patient-privacy-recovery-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid #2d3b52;
  background: rgba(15, 23, 42, 0.55);
  color: #f3f4f6;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.patient-privacy-recovery-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
}

/* Confirmation bottom sheet */
.patient-delete-confirm-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.patient-delete-confirm-sheet[hidden] {
  display: none !important;
}

.patient-delete-confirm-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.patient-delete-confirm-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 640px);
  overflow-y: auto;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #1e293b;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.35);
}

.patient-delete-confirm-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.patient-delete-confirm-sheet__title {
  margin: 0 0 14px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.3;
}

.patient-delete-confirm-sheet__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.patient-delete-confirm-sheet__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #c5d0e0;
  line-height: 1.45;
}

.patient-delete-confirm-sheet__list li i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.patient-delete-confirm-sheet__actions {
  display: grid;
  gap: 10px;
}

.patient-delete-confirm-sheet__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 13px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.patient-delete-confirm-sheet__btn--danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.22);
}

.patient-delete-confirm-sheet__btn--danger:hover {
  filter: brightness(1.05);
}

.patient-delete-confirm-sheet__btn--neutral {
  background: rgba(51, 65, 85, 0.65);
  color: #f3f4f6;
  font-weight: 600;
}

.patient-delete-confirm-sheet__btn--neutral:hover {
  background: rgba(71, 85, 105, 0.75);
}

body.patient-delete-sheet-open {
  overflow: hidden;
}

/* Light theme */
html[data-theme="light"] .patient-privacy-page--account-delete .patient-privacy-page-header .patient-page-header__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-privacy-page--account-delete .patient-privacy-section__title,
html[data-theme="light"] .patient-privacy-page--account-delete .patient-privacy-recovery__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-privacy-intro {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.14);
}

html[data-theme="light"] .patient-privacy-intro__icon {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

html[data-theme="light"] .patient-privacy-intro__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-privacy-intro__text {
  color: #475569;
}

html[data-theme="light"] .patient-privacy-intro__link {
  color: #2563eb;
}

html[data-theme="light"] .patient-privacy-rows {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-privacy-rows li {
  color: #334155;
}

html[data-theme="light"] .patient-privacy-rows li i {
  color: #2563eb;
}

html[data-theme="light"] .patient-privacy-badge {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-privacy-retained {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .patient-privacy-retained__icon {
  background: #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .patient-privacy-retained__text {
  color: #475569;
}

html[data-theme="light"] .patient-privacy-recovery-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

html[data-theme="light"] .patient-privacy-recovery-btn:hover {
  background: #f8fafc;
}

html[data-theme="light"] .patient-delete-confirm-sheet__panel {
  background: #ffffff;
}

html[data-theme="light"] .patient-delete-confirm-sheet__title {
  color: #0f172a;
}

html[data-theme="light"] .patient-delete-confirm-sheet__list li {
  color: #475569;
}

html[data-theme="light"] .patient-delete-confirm-sheet__btn--neutral {
  background: #f1f5f9;
  color: #0f172a;
}

html[data-theme="light"] .patient-delete-confirm-sheet__btn--neutral:hover {
  background: #e2e8f0;
}
