/**
 * Beneficiary designation — shared by the account bottom sheet and /beneficiary.
 */

.ben-form {
  color: #f8f8fc;
}

.ben-rules {
  margin: 0 0 0.9rem;
  padding: 0.85rem 0.95rem 0.85rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(190, 210, 255, 0.16);
  background: rgba(165, 148, 255, 0.08);
  color: rgba(240, 240, 250, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ben-status {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: rgba(186, 214, 255, 0.8);
}

.ben-card {
  margin: 0 0 0.85rem;
  padding: 0.95rem 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(165, 148, 255, 0.1), transparent 46%),
    rgba(16, 16, 24, 0.92);
}

.ben-card__legend {
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: #f8f8fc;
}

.ben-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.ben-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: rgba(240, 240, 250, 0.62);
}

.ben-field input,
.ben-field select {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.78rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
  color: #f8f8fc;
  font: inherit;
  font-size: 16px;
}

.ben-field input:focus,
.ben-field select:focus {
  outline: none;
  border-color: rgba(165, 148, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(165, 148, 255, 0.16);
}

.ben-hint,
.ben-bank-title {
  margin: 0.75rem 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(240, 240, 250, 0.55);
}

.ben-bank-title {
  margin-top: 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(186, 214, 255, 0.78);
}

.ben-field textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.78rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
  color: #f8f8fc;
  font: inherit;
  font-size: 16px;
}

.ben-add,
.ben-save {
  border-radius: 999px;
}

.ben-add {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem 0 0.9rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(190, 210, 255, 0.28);
  background: transparent;
  color: #f8f8fc;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.ben-ack {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(240, 240, 250, 0.72);
}

.ben-ack input {
  margin-top: 0.15rem;
  accent-color: #a594ff;
}

.ben-save {
  min-width: 11rem;
}

.si-beneficiary-sheet .si-bottom-sheet__panel--form {
  max-height: min(92dvh, 920px);
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
}

.ben-sheet-head {
  position: relative;
  padding-right: 4.5rem;
}

.ben-sheet-close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  background: transparent;
  color: rgba(240, 240, 250, 0.72);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.si-settings-row {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

@media (min-width: 720px) {
  .ben-grid {
    grid-template-columns: 1fr 1fr;
  }
}
