/* goals-create-debt: /goals/new/debt (Figma 19059:27725, 19061:29670). */

.gcd-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 40px;
  color: var(--light-gray);
  font-size: 16px;
}

.gcd-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.gcd-muted {
  margin: 0;
  color: var(--light-gray);
  font-size: 16px;
  line-height: 25px;
}

/* --- Debt account list --- */

.gcd-accounts {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
}

.gcd-accounts-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gcd-account {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 24px;
  text-align: left;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(2, 9, 22, 0.35);
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.gcd-account:hover {
  border-color: var(--gold);
}

.gcd-account > img,
.gcd-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
}

.gcd-account-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.gcd-account-row > img {
  flex-shrink: 0;
}

.gcd-account-text {
  flex: 1;
  min-width: 0;
}

.gcd-account-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.gcd-account-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--light-gray);
}

.gcd-account-actions {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 358px;
  max-width: 100%;
}

.gcd-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 8px 24px;
  border-radius: 40px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: "Geist", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
  cursor: pointer;
}

.gcd-connect:disabled {
  opacity: 0.6;
  cursor: default;
}

.gcd-connect img {
  display: block;
}

.gcd-skip {
  padding: 0 8px;
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
}

/* --- Manual debt "Define your goal" --- */

.goals-form.gcd-define {
  gap: 32px;
}

.gcd-rate {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gcd-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.gcd-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}

.gcd-radio img {
  display: block;
}

.gcd-radio-empty {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  box-sizing: border-box;
  background: var(--navy-card);
  border: 1px solid var(--control-border);
}

/* 2.5.8: grow the 20px-tall radio hit area to 24px without moving anything. */
.gcd-radio {
  padding: 2px 0;
  margin: -2px 0;
}

/* --- Reflow (WCAG 1.4.10): desktop (>=1024px) unchanged --- */

@media (max-width: 767.98px) {
  .gcd-accounts {
    flex-direction: column;
    align-items: stretch;
  }

  .gcd-radios {
    gap: 16px 40px;
  }
}
