/* Close my account (Security) and the keep-my-account prompt. Builds on account-security.css. */
.closure-section {
  margin-block-start: 1.25rem;
  padding-block-start: 1.1rem;
  border-block-start: 1px solid #dfe7f1;
}
.closure-section h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.closure-section p { color: #45607e; font-size: .92rem; }
.closure-section button { width: 100%; }

.closure-points { margin: 0 0 1rem; padding-inline-start: 1.2rem; display: grid; gap: .55rem; line-height: 1.5; }
.closure-dialog .closure-backup {
  min-height: 0;
  margin-block-end: 1rem;
  padding: .2rem 0;
  border: 0;
  background: none;
  color: #1f5aa6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.closure-dialog label.closure-agree {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-block-end: 1rem;
  padding: .75rem .85rem;
  border: 1px solid #fac6c9;
  border-radius: 12px;
  background: #fff6f6;
  line-height: 1.45;
}
.closure-dialog label.closure-agree input { flex: none; width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: #b81f2f; }
#accountClosureIdentity input { box-sizing: border-box; }
:is(#accountClosureTitle, #accountClosureGateTitle):focus { outline: none; }
.closure-gate::backdrop { background: #0d1c3cb3; }
#accountClosureIdentity p { margin-block-end: .7rem; font-weight: 700; }
#accountClosureGoogle, #accountClosureMicrosoft { display: flex; justify-content: center; align-items: center; gap: .65rem; }
#accountClosureGoogle:not([hidden]) + #accountClosureMicrosoft:not([hidden]) { margin-top: .6rem; }
#accountClosureGoogle img, #accountClosureMicrosoft img { width: 18px; height: 18px; flex: none; }
.closure-dialog[data-stage="result"] .session-heading { padding-top: 4.9rem; display: block; border: 0; text-align: center; }
.closure-dialog[data-stage="result"] .session-close { display: none; }
.closure-dialog[data-stage="result"] .session-result { text-align: center; }

.closure-gate-body { padding: 1.25rem; }
.closure-gate .session-heading { border-block-end: 1px solid #dfe7f1; }
.closure-gate .closure-keep { background: #ffbd38; border-color: #f8ad18; }

:root[data-climb-theme="dark"] :is(#accountClosure, #accountClosureGate) {
  color: var(--theme-ink);
  background: var(--theme-elevated);
  border-color: var(--theme-elevated-line);
  box-shadow: var(--theme-shadow);
}
:root[data-climb-theme="dark"] :is(#accountClosure, #accountClosureGate) :is(.session-card, .session-status) {
  color: var(--theme-ink);
  background: var(--theme-surface);
  border-color: var(--theme-line);
}
:root[data-climb-theme="dark"] :is(#accountClosure, #accountClosureGate) :is(button:not(.session-danger, .session-danger-soft, .closure-backup, .closure-keep), input) {
  color: var(--theme-control-ink);
  background: var(--theme-raised);
  border-color: var(--theme-elevated-line);
}
:root[data-climb-theme="dark"] :is(#accountClosure, #accountClosureGate) .session-heading { border-color: var(--theme-elevated-line); }
:root[data-climb-theme="dark"] :is(#accountClosure, #accountClosureGate) .session-or { color: var(--theme-secondary); }
:root[data-climb-theme="dark"] :is(#accountClosure, #accountClosureGate) .session-status[data-error="true"],
:root[data-climb-theme="dark"] #accountSecurity .closure-section .session-danger-soft {
  color: var(--theme-danger);
  background: var(--theme-danger-fill);
  border-color: var(--theme-elevated-line);
}
:root[data-climb-theme="dark"] #accountClosure label.closure-agree { background: var(--theme-danger-fill); border-color: var(--theme-elevated-line); }
:root[data-climb-theme="dark"] #accountClosure .closure-backup { color: var(--theme-accent); }
:root[data-climb-theme="dark"] #accountSecurity .closure-section { border-color: var(--theme-elevated-line); }
:root[data-climb-theme="dark"] #accountSecurity .closure-section p { color: var(--theme-secondary); }
:root[data-climb-theme="dark"] #accountClosure[data-stage="result"]::backdrop { background: #081226c9; }
:root[data-climb-theme="dark"] #accountClosureGate .closure-keep { color: #102441; }
