/* Compact payment choices. Scoped to this fieldset so the legacy/resume layouts
   and Stripe's native wallet buttons keep their own presentation. */
.checkout-flow-page .cf-payment-card .pay-list.co-payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.checkout-flow-page .cf-payment-card .co-payment-options .pay-opt {
    position: relative;
    flex: 1 1 8rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-width: 0;
    min-height: calc(var(--space-8) + var(--space-4));
    padding: var(--pad-3) var(--pad-5);
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
}
.checkout-flow-page .cf-payment-card .co-payment-options .pay-opt:hover { background: var(--tint-row); border-color: var(--muted-soft); }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-opt:has(input:checked) {
    background: color-mix(in srgb, var(--brand-tint) 45%, var(--card));
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}
.checkout-flow-page .cf-payment-card .co-payment-options .pay-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: var(--space-1); }
.checkout-flow-page .cf-payment-card .co-payment-options input {
    position: absolute;
    top: var(--space-1);
    right: var(--space-1);
    width: var(--space-3);
    height: var(--space-3);
    opacity: 0;
}
.checkout-flow-page .cf-payment-card .co-payment-options input:checked { opacity: 1; box-shadow: inset 0 0 0 2px var(--card); }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-body { flex: 0 1 auto; overflow-wrap: normal; white-space: nowrap; }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-name { font-size: var(--text-base); font-weight: var(--fw-semibold); }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-sub { display: none; }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-mark { order: -1; margin: 0; }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-mark .ico { width: var(--space-5); height: var(--space-5); }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-opt-cash .pay-mark { color: var(--ok); }
.checkout-flow-page .cf-payment-card .co-payment-options .ic-paypal { color: var(--paypal); }
.checkout-flow-page .cf-payment-card .co-payment-options .pay-opt:has(input[value="stripe"]:not([data-wallet])) .pay-mark { color: var(--info); }
/* The official wallet marks already contain their names. Retain the text as
   the radio's accessible label without displaying it a second time. */
.checkout-flow-page .cf-payment-card .co-payment-options .co-wallet-choice .pay-body {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.checkout-flow-page .cf-payment-card .co-payment-options .co-wallet-mark { height: var(--space-6); width: auto; }
.checkout-flow-page .cf-payment-card .co-payment-options .co-wallet-mark-googlePay {
    height: calc(var(--space-6) * 2);
    margin-block: calc(-1 * var(--space-4));
    margin-inline: calc(-1 * var(--space-3));
}
.checkout-flow-page .cf-payment-card .co-payment-options .pay-opt[hidden] { display: none; }
