/*
 * The referrer's tax step before payouts —
 * app/views/referrer/payout_tax_details/_form.html.erb
 *
 * Only the panel for the chosen card shows (the ABN field, or the
 * declaration); nothing shows until one is chosen. Browsers without :has()
 * keep both panels visible, and the server checks whichever applies.
 *
 * Token vars only — enforced by test/lint/css_token_lint_test.rb.
 */

@supports selector(:has(*)) {
  .payout-tax-form__panel {
    display: none;
  }

  .payout-tax-form:has(.payout-tax-form__choice--business input:checked) .payout-tax-form__panel--business,
  .payout-tax-form:has(.payout-tax-form__choice--private input:checked) .payout-tax-form__panel--private {
    display: flex;
  }
}
