#payment .payment_methods > .wc_payment_method > label,
#payment .payment_methods > .woocommerce-PaymentMethod > label {
    padding: 0.01rem !important;
}

.wc_payment_method.payment_method_woocommerce-conto-quickpay > .payment_box {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.wc_payment_method.payment_method_woocommerce-conto-quickpay-card > .payment_box {
    display: flex;
    flex-wrap: wrap;
}

.wcq-bank-list {
    display: flex;
    align-items: center;
    flex: 50%;
    padding: 0.5rem;
}

.wcq-bank-list label {
    display: flex;
    align-items: center;
    border: none !important;
}

.wcq-bank-list label img {
    display: flex;
    padding-left: 5%;
    width: 80%;
    margin-left: 7%;
}

#other_banks_label {
    font-size: 18px;
}

.wc-block-components-radio-control-accordion-content #other_banks_label {
    margin-left: 30px;
}

#conto_bank_payment {
    display: none;
}

.wc-block-components-radio-control-accordion-content {
    display: block;
}

.wcq-bank-list-container {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wcq-bank-list {
    display: flex;
    align-items: center;
}

.wcq-bank-list input[type="radio"] {
    margin-right: 10px;
}

.woocommerce .wcq-bank-list input[type="radio"] {
    margin: 0 !important;
}


.wcq-bank-list img {
    max-width: 100px;
    height: auto;
}

.wcq-periodic-payment-container {
    margin-top: 20px;
    padding: 15px;
    clear: both;
    display: block;
    width: -webkit-fill-available;
}

.wcq-periodic-payment-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wcq-periodic-payment-fields input[type="text"],
.wcq-periodic-payment-fields input[type="date"],
.wcq-periodic-payment-fields select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.wcq-periodic-payment-fields .optional {
    font-weight: normal;
    color: #666;
}

.wcq-periodic-payment-fields select {
    height: 38px;
}

.remittance-text {
    display: block;
    padding: 8px;
    border-radius: 4px;
    color: #333;
}

.wcq-periodic-payment-fields {
    margin-top: 10px;
}

.payment_box.payment_method_woocommerce-conto-quickpay #end_date_label {
    margin-top: 10px;
}

/* Multi-country bank list styling */
.payment_box.payment_method_woocommerce-conto-quickpay,
.wc-block-components-radio-control__option--woocommerce-conto-quickpay .wc-block-components-radio-control-accordion-content {
    border: 1px solid #d7dbe7;
    border-radius: 14px;
    padding: 18px 18px 22px;
    box-shadow: 0 6px 24px rgba(18, 38, 63, 0.06);
    background: #fff;
}

.wc-block-components-radio-control__option--woocommerce-conto-quickpay .wc-block-components-radio-control-accordion-content {
    margin-top: 12px;
}

.wc-block-components-form.wc-block-checkout__form .quickpay-country-selector {
    margin-bottom: 18px;
    padding: 0;
    margin-right: 18px;
    display: inline;
    width: 100vw;
    max-width: 100%;
}

.quickpay-country-selector {
    margin-bottom: 18px;
    padding: 0;
    margin-right: 18px;
    display: inline;
    width: 100%;
    max-width: 100%;
}

.quickpay-country-selector label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quickpay-country-selector select {
    width: 95%;
    padding: 14px 45px 14px 16px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    max-width: 100%;
}

.quickpay-country-selector select:hover {
    border-color: #0073aa;
}

.quickpay-country-selector select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
    outline: none;
}

#quickpay_banks {
    transition: opacity 0.15s ease;
}

#quickpay_banks.quickpay-switching {
    opacity: 0.5;
}

.quickpay-country-banks {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
    margin-top: 12px;
    margin-left: 5%;
}

.wcq-bank-list.payment_col {
    flex: 0 0 160px;
    max-width: 160px;
    padding: 0;
    justify-content: center;
}

.wcq-bank-list.payment_col label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #e6e9f0;
    background-color: #fff;
    padding: 22px 16px 18px;
    margin-bottom: 0;
    min-height: 140px;
    min-width: 140px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.wcq-bank-list.payment_col label:hover {
    border-color: #0d6efd;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.12);
    transform: translateY(-2px);
}

.wcq-bank-list.payment_col input[type="radio"]:checked + .quickpay-bank-image,
.wcq-bank-list.payment_col label:has(input:checked) {
    border-color: #0d6efd;
    background-color: #f3f7ff;
    box-shadow: 0 12px 26px rgba(13, 110, 253, 0.18);
}

.wcq-bank-list.payment_col input[type="radio"] {
    width: 12px;
    height: 12px;
    margin-bottom: 18px;
    accent-color: #0d6efd;
    transform: scale(1.02);
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    border: 2px solid #c4cad5;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fff;
    transition: all 0.2s ease;
    position: relative;
}

.wcq-bank-list.payment_col input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.wcq-bank-list.payment_col input[type="radio"]:checked {
    border-color: #0d6efd;
    box-shadow: inset 0 0 0 6px #0d6efd;
    background: #fff;
}

.quickpay-bank-image img {
    max-height: 72px;
    max-width: 100%;
}

.quickpay-other-banks {
    flex: 0 0 calc(25% - 9px);
    max-width: calc(25% - 9px);
}

.quickpay-other-banks label {
    min-height: 90px !important;
    height: 100%;
}

.quickpay-other-banks .quickpay-bank-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
}

.quickpay-other-banks .quickpay-bank-image span {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.woocommerce .quickpay-bank-image {
    margin-top: 15px;
    width: 100%;
}

@media (max-width: 768px) {
    .wcq-bank-list.payment_col,
    .quickpay-other-banks {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .quickpay-country-banks {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .wcq-bank-list.payment_col,
    .quickpay-other-banks {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wcq-bank-list.payment_col label {
        width: 80%;
    }

    .woocommerce-checkout-review-order #payment ul.payment_methods label img {
        height: unset !important;
    }

    .wc-block-components-radio-control-accordion-content {
        display: block;
        flex-wrap: unset;
        width: 100%;
    }

    .checkout.woocommerce-checkout #quickpay_banks {
        display: contents;
    }

    .quickpay-country-selector select {
        max-width: 90%;
    }

    .quickpay-country-banks {
        margin-left: unset;
        max-width: 90%;
    }

    .wcq-periodic-payment-container {
        max-width: 85%;
    }

    .checkout.woocommerce-checkout .wc_payment_method.payment_method_woocommerce-conto-quickpay > .payment_box {
        max-width: 80%
    }
}