/* Use WooCommerce's own payment radios, scoped to the Futurepay gateways. */
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] {
    position: relative;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > input[name="payment_method"] {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    accent-color: #173d68;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label,
.wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"] {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 18px 20px 18px 52px;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    background: #fff;
    color: #172b43;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    row-gap: 0;
    overflow-wrap: anywhere;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label > .futurepay-method-description {
    grid-column: 1;
    grid-row: 2;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label > .futurepay-method-logo {
    grid-column: 2;
    grid-row: 1;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label:has(> .futurepay-method-description) > .futurepay-method-logo {
    grid-row: 1 / span 2;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label:hover,
.wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"]:hover {
    border-color: #9baec2;
    background: #fafcfe;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > input:checked + label,
.wc-block-components-radio-control label.wc-block-components-radio-control__option-checked[for*="-onlinepay_futurepay_"] {
    border-color: #173d68;
    background: #f5f9fd;
    box-shadow: inset 0 0 0 1px #173d68;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > input:focus-visible + label,
.wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"]:has(input:focus-visible) {
    outline: 3px solid #80afe0;
    outline-offset: 3px;
}
#payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > input:focus { outline: none; }
.wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"] > input {
    left: 18px;
}
.wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"]::after,
.wc-block-components-radio-control-accordion-option:has(> label[for*="-onlinepay_futurepay_"])::after {
    display: none;
}
.wc-block-components-radio-control .wc-block-components-radio-control-accordion-option:has(> label[for*="-onlinepay_futurepay_"]) {
    margin: 0 0 10px;
    border-radius: 10px;
    box-shadow: none;
}
.wc-block-components-radio-control-accordion-content[id*="-onlinepay_futurepay_"] { display: none; }
.futurepay-method-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.futurepay-method-copy { min-width: 0; }
.futurepay-method-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.futurepay-method-description {
    display: block;
    margin-top: 4px;
    color: #526477;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.futurepay-method-logo {
    display: flex;
    flex: 0 0 96px;
    align-items: center;
    justify-content: center;
    height: 44px;
}
#payment .futurepay-method-logo img,
.futurepay-method-logo img {
    display: block;
    float: none;
    width: auto;
    height: auto;
    max-width: 96px;
    max-height: 44px;
    margin: 0;
    object-fit: contain;
}
.futurepay-logo-blik { box-sizing: border-box; padding: 7px 10px; border-radius: 6px; background: #161616; }
#payment .futurepay-logo-blik img,
.futurepay-logo-blik img { max-width: 100%; max-height: 30px; }
#payment .futurepay-logo-bancontact img,
.futurepay-logo-bancontact img { width: 70px; max-height: 70px; }
@media (max-width: 480px) {
    #payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label,
    .wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"] { gap: 10px; padding-right: 12px; padding-left: 43px; min-height: 80px; }
    #payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label { grid-template-columns: minmax(0, 1fr) 76px; row-gap: 0; }
    #payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > input[name="payment_method"],
    .wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"] > input { left: 13px; }
    .futurepay-method-label { gap: 10px; }
    .futurepay-method-logo { flex-basis: 76px; }
    #payment .futurepay-method-logo img,
    .futurepay-method-logo img { max-width: 76px; max-height: 38px; }
    #payment .futurepay-logo-bancontact img,
    .futurepay-logo-bancontact img { width: 60px; max-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    #payment ul.payment_methods li.wc_payment_method[class*="payment_method_onlinepay_futurepay_"] > label,
    .wc-block-components-radio-control label.wc-block-components-radio-control__option[for*="-onlinepay_futurepay_"] { transition: none; }
}
