.account-data-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(24, 17, 52, 0.42);
}

.account-data-backdrop.hidden {
  display: none;
}

body.account-data-open {
  overflow: hidden;
}

.account-data-dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: #ffffff;
  color: #18112f;
  box-shadow: 0 24px 64px rgba(33, 23, 68, 0.22);
}

.account-data-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid #ebe7f5;
}

.account-data-header p {
  margin: 0 0 4px;
  color: #0b806d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-data-header h2,
.account-data-section h3 {
  margin: 0;
  letter-spacing: 0;
}

.account-data-header h2 {
  font-size: 1.55rem;
}

.account-data-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: #ffffff;
  color: #5b21b6;
  cursor: pointer;
}

.account-data-body {
  padding: 24px 26px 28px;
}

.account-data-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.account-data-section-heading p,
.account-deletion-content p {
  margin: 5px 0 0;
  color: #5f5873;
  line-height: 1.5;
}

.account-data-danger-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
}

.account-deletion-content {
  margin-top: 22px;
}

.account-data-notice,
.account-data-warning,
.account-data-permanent {
  padding: 15px 16px;
  border-radius: 8px;
}

.account-data-notice {
  border: 1px solid #ddd6fe;
  background: #f7f5ff;
}

.account-data-warning {
  margin-bottom: 18px;
  border: 1px solid #f4c56d;
  background: #fff9e8;
}

.account-data-success {
  padding: 18px 16px;
  border: 1px solid #9bd1c7;
  border-radius: 8px;
  background: #f1fbf7;
}

.account-data-success > i {
  color: #087663;
  font-size: 1.6rem;
}

.account-data-success h3 {
  margin: 10px 0 0;
}

.account-data-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: #28203e;
  font-size: .92rem;
  line-height: 1.45;
}

.account-data-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: #6d28d9;
}

.account-data-permanent {
  border: 1px solid #fecdd3;
  background: #fff7f7;
}

.account-data-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.account-data-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.82rem;
  font-weight: 900;
}

.account-data-step p {
  margin-top: 2px;
}

.account-data-label {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  color: #28203e;
  font-size: 0.9rem;
  font-weight: 800;
}

.account-data-label input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #c9c0dc;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: #18112f;
  font: inherit;
}

.account-data-label input:focus {
  border-color: #6d28d9;
  outline: 3px solid rgba(109, 40, 217, 0.15);
}

.account-data-button {
  min-height: 44px;
  margin-top: 15px;
  border: 1px solid #c9c0dc;
  border-radius: 8px;
  padding: 10px 16px;
  background: #ffffff;
  color: #4c1d95;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-data-button.primary {
  border-color: #6d28d9;
  background: #6d28d9;
  color: #ffffff;
}

.account-data-button.danger {
  border-color: #be123c;
  background: #be123c;
  color: #ffffff;
}

.account-data-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.account-data-confirmation.hidden {
  display: none;
}

.account-data-message,
.account-data-error {
  min-height: 24px;
  font-weight: 800;
}

.account-data-error {
  color: #a30d32;
}

.account-data-complete {
  padding: 28px 12px;
  text-align: center;
}

.account-data-complete > i {
  color: #0b806d;
  font-size: 2.2rem;
}

.account-data-complete h3 {
  margin-top: 14px;
}

.account-data-menu-item i {
  width: 22px;
  text-align: center;
}

@media (max-width: 480px) {
  .account-data-backdrop {
    align-items: end;
    padding: 0;
  }

  .account-data-dialog {
    width: 100%;
    max-height: 92vh;
    border-width: 1px 0 0;
    border-radius: 8px 8px 0 0;
  }

  .account-data-header,
  .account-data-body {
    padding-left: 18px;
    padding-right: 18px;
  }
}
