/* ============================================================
   24 — Online payment form (Pay a Bill, and product Buy forms later)
   Sits inside .sec-23-prose__wrap, which caps children at 68ch.
   ============================================================ */

.sec-24-pay {
  display: grid;
  gap: 1.4rem;
  max-width: 32rem;
  margin: 1.2rem 0 2.4rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid var(--line-bone);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.sec-24-pay__field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sec-24-pay__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0;
}

.sec-24-pay__opt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: hsl(232 12% 40%);
}

.sec-24-pay__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
}

.sec-24-pay__choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line-bone);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.sec-24-pay__choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex: none;
}

.sec-24-pay__choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sec-24-pay__choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sec-24-pay__choice.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sec-24-pay__money {
  position: relative;
}

.sec-24-pay__money > span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(232 12% 40%);
  pointer-events: none;
}

.sec-24-pay__money .sec-24-pay__input {
  padding-left: 2rem;
}

.sec-24-pay__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 1rem; /* >=16px: no iOS zoom on focus */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-bone);
  border-radius: 14px;
}

.sec-24-pay__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.sec-24-pay__hint {
  margin: 0;
  font-size: 0.9rem;
  color: hsl(232 12% 40%);
}

.sec-24-pay__error:empty {
  display: none;
}

.sec-24-pay__error {
  margin: 0;
  color: #b3261e;
  font-weight: 600;
}

.sec-24-pay .btn {
  justify-self: start;
}

.sec-24-pay .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.sec-24-pay__receipt strong {
  font-weight: 600;
}

/* display:grid above (and on .sec-23-prose__cardgrid) would beat the UA [hidden] rule */
.sec-24-pay[hidden],
[data-pay-unavailable][hidden],
[data-pay-result] [hidden] {
  display: none;
}

.sec-24-pay__feenote {
  margin: 0;
  font-size: 0.9rem;
  color: hsl(232 12% 40%);
}
