.bm-account-deletion-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-color: #e9b7ae;
  background: linear-gradient(135deg, #fff 0%, #fff8f6 100%);
}

.bm-account-deletion-copy {
  max-width: 760px;
}

.bm-account-deletion-copy h2 {
  margin: 8px 0 8px;
}

.bm-account-deletion-copy p {
  margin: 0 0 8px;
  color: var(--muted);
}

.bm-account-deletion-copy small,
.bm-admin-delete-notice {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.bm-account-deletion-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 250px;
}

.bm-danger-eyebrow {
  color: var(--danger);
}

.bm-delete-account-button,
.bm-delete-confirm-button {
  background: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}

.bm-delete-account-button:hover,
.bm-delete-confirm-button:hover {
  background: #852b21;
}

.bm-delete-account-button:disabled {
  color: #805d58;
  background: #f2dfdb;
  border-color: #e5c6c0;
}

.bm-modal-open {
  overflow: hidden;
}

.bm-delete-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 28, 23, 0.72);
  backdrop-filter: blur(7px);
}

.bm-delete-modal-card {
  position: relative;
  width: min(100%, 620px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid #e8c8c1;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(19, 27, 22, 0.35);
}

.bm-delete-modal-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
}

.bm-delete-modal-card > p {
  margin-top: 0;
  color: var(--muted);
}

.bm-delete-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.bm-delete-warning {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #eab7ad;
  border-radius: 14px;
  background: #fff2ef;
}

.bm-delete-warning p {
  margin: 5px 0 0;
  color: #70473f;
}

.bm-delete-form {
  display: grid;
  gap: 17px;
}

.bm-delete-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.bm-delete-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.bm-delete-form input:focus {
  outline: 3px solid rgba(166, 55, 42, 0.14);
  border-color: var(--danger);
}

.bm-delete-status {
  padding: 13px 15px;
  border-radius: 12px;
  font-weight: 700;
}

.bm-delete-status.info {
  color: #345445;
  background: var(--sage);
}

.bm-delete-status.error {
  color: #842a20;
  background: #fde5df;
  border: 1px solid #efb6a9;
}

.bm-delete-status.success {
  color: #245c37;
  background: #dcecdf;
  border: 1px solid #b8d6bf;
}

.bm-delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.bm-admin-delete-notice {
  max-width: 320px;
  text-align: right;
}

@media (max-width: 700px) {
  .bm-account-deletion-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .bm-account-deletion-actions {
    min-width: 0;
    justify-items: stretch;
  }

  .bm-account-deletion-actions .button,
  .bm-delete-modal-actions .button {
    width: 100%;
  }

  .bm-admin-delete-notice {
    max-width: none;
    text-align: left;
  }

  .bm-delete-modal-overlay {
    align-items: end;
    padding: 0;
  }

  .bm-delete-modal-card {
    width: 100%;
    max-height: 92vh;
    padding: 28px 20px 24px;
    border-radius: 24px 24px 0 0;
  }

  .bm-delete-modal-actions {
    flex-direction: column-reverse;
  }
}
