/* Payment ordering and field disclosure only; gateway styling stays native. */
body.skp-payment-selection-active form.checkout #payment .skp-payment-methods {
    display: flex !important;
    flex-direction: column;
}

body.skp-payment-selection-active form.checkout .skp-payment-method:not(.skp-payment-selected) .payment_box {
    display: none !important;
}

body.skp-payment-selection-active form.checkout .skp-riverty-details[hidden] {
    display: none !important;
}

body.skp-payment-selection-active form.checkout .skp-riverty-details {
    clear: both;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 8px;
}

body.skp-payment-selection-active form.checkout .skp-riverty-summary {
    cursor: pointer;
    font-weight: 600;
    line-height: 1.5;
}

body.skp-payment-selection-active form.checkout .skp-riverty-summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

body.skp-payment-selection-active form.checkout .skp-riverty-description {
    margin: .75rem 0;
    font-size: .925em;
    line-height: 1.5;
}

body.skp-payment-selection-active form.checkout .skp-riverty-fields::after {
    display: table;
    clear: both;
    content: "";
}

body.skp-payment-selection-active form.checkout .skp-riverty-details #billing_last_name_field.skp-riverty-field,
body.skp-payment-selection-active form.checkout .skp-riverty-details #billing_address_1_field.skp-riverty-field,
body.skp-payment-selection-active form.checkout .skp-riverty-details #billing_address_2_field.skp-riverty-field,
body.skp-payment-selection-active form.checkout .skp-riverty-details #billing_city_field.skp-riverty-field,
body.skp-payment-selection-active form.checkout .skp-riverty-details #billing_postcode_field.skp-riverty-field {
    display: block !important;
    visibility: visible !important;
}

body.skp-payment-selection-active form.checkout .skp-riverty-fields label .required[hidden],
body.skp-payment-selection-active form.checkout .skp-riverty-fields label .optional[hidden] {
    display: none !important;
}

body.skp-payment-selection-active form.checkout #billing_country_field.skp-country-field {
    display: block !important;
    visibility: visible !important;
    clear: both;
    max-width: 26rem;
}
