/* goals-create-savings: savings + invest create flows (Figma 19063:34448 … 19063:44346). */

.gcs-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  align-items: start;
}

.gcs-account-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  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;
}

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

.gcs-account-tile > img,
.goals-info-card > img.gcs-account-logo {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 24px;
  object-fit: cover;
}

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

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

.gcs-account-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

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

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

.gcs-connect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 8px 24px;
  border: 1px solid var(--white);
  border-radius: 40px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
  cursor: pointer;
}

.gcs-connect-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.gcs-connect-btn img {
  display: block;
}

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

.gcs-hint-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gcs-hint {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--white);
}

.gcs-error,
.gcs-muted {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.gcs-error {
  color: #C96B67;
}

.gcs-muted {
  color: var(--light-gray);
}

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

@media (max-width: 767.98px) {
  .gcs-account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
