/* v0.12: compact copy controls for bank details. */
.payment-card .payment-label {
  color: var(--orange);
}

.payment-copy-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.payment-copy-row > :first-child {
  min-width: 0;
}

#paymentIban {
  font-size: clamp(16px, 4.7vw, 24px);
  letter-spacing: -.015em;
}

.payment-recipient {
  font-size: 15px;
  font-weight: 700;
}

.copy-detail-button {
  appearance: none;
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.copy-detail-button .icon {
  width: 17px;
  height: 17px;
}

.copy-detail-button:hover,
.copy-detail-button.is-copied {
  background: var(--accent);
}

.copy-detail-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* v0.8 candidate: tighter bank-details frame. */
.payment-card {
  padding: 14px 16px;
}

.payment-card .payment-label {
  margin-bottom: 8px;
}

.payment-card .payment-detail {
  gap: 3px;
  padding: 9px 0;
}

.payment-copy-row {
  gap: 7px;
}

.copy-detail-button {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}

.copy-detail-button .icon {
  width: 16px;
  height: 16px;
}

.payment-card .copy-status:empty {
  display: none;
}

.payment-card .copy-status:not(:empty) {
  min-height: 0;
  margin-top: 7px;
}

/* v0.9 candidate: bank-details typography aligned with the landing page. */
.payment-card .payment-label {
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .15em;
}

.payment-card .payment-detail .payment-detail-label {
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .12em;
}

.payment-card #paymentIban {
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: clamp(17px, 4.4vw, 22px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.payment-card .payment-detail .payment-recipient {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.payment-card .payment-detail .payment-detail-value:not(.payment-recipient) {
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

@media (max-width: 354px) {
  .payment-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  .payment-card #paymentIban {
    font-size: 15px;
  }

  .payment-copy-row {
    gap: 5px;
  }
}

/* v0.10 candidate: one consistent type style for all bank values. */
.payment-card #paymentIban,
.payment-card .payment-detail .payment-detail-value:not(.payment-recipient) {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

/* v0.11 candidate: animated confirmation rule replaces the old mark. */
#formView.is-success .form-head {
  border-bottom-color: transparent;
}

#stepSuccess .confirmation-title {
  margin-top: 24px;
  font-size: clamp(32px, 9.2vw, 36px);
}

.confirmation-word {
  position: relative;
  display: inline-block;
  padding-top: 14px;
}

.confirmation-word::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

#stepSuccess.active .confirmation-word::before {
  animation: confirmation-rule-in 850ms cubic-bezier(.22, 1, .36, 1) 120ms forwards;
}

@keyframes confirmation-rule-in {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #stepSuccess.active .confirmation-word::before {
    animation: none;
    transform: scaleX(1);
  }
}

/* v0.12 candidate: compact confirmation-only header. */
#formView.is-success .form-head {
  padding-bottom: 0;
}

#formView.is-success .form-head .form-title,
#formView.is-success .form-head .form-lead {
  display: none;
}

#formView.is-success .form-head .eyebrow {
  margin-bottom: 0;
}

/* v0.12 candidate: revised payment message. */
.payment-action-line {
  display: block;
}

.payment-action-line + .payment-action-line {
  margin-top: 10px;
}

/* Equal label-to-value rhythm across all bank rows. */
.payment-card .payment-detail {
  gap: 4px;
}

.payment-card .payment-detail > .payment-detail-value {
  display: flex;
  min-height: 32px;
  align-items: center;
}

.success-content > .success-explanation {
  max-width: 440px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.success-explanation strong {
  color: var(--text);
  font-weight: 700;
}
