#wopo_payment_form {
    width: 100% !important;
    margin: 20px auto !important;
    padding: 20px 25px !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}

#wopo_payment_form .wopo_logos {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

#wopo_payment_form .wopo_logos img.wopo_card_logo {
    height: 30px !important;
    margin: 6px !important;
    object-fit: contain !important;
    max-width: 100% !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

#wopo_payment_form .wopo_logos img.wopo_card_logo:hover {
    transform: scale(1.1) !important;
}

#wopo_payment_form input[type="radio"],
#wopo_payment_form input[type="checkbox"] {
    height: unset !important;
    margin-right: 10px !important;
}

#wopo_payment_form input[type="radio"] {
    margin: 0 10px 6px 0 !important;
}

#wopo_payment_form label {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

#wopo_payment_form input[type="radio"]:not(:last-of-type) {
    margin-bottom: 8px !important;
}

#wopo_payment_form input[type="text"] {
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    margin-bottom: 18px !important;
    background-color: #f8f8f8 !important;
    transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

#wopo_payment_form input[type="text"]:focus {
    border-color: #0073e6 !important;
    background-color: #ffffff !important;
    outline: none !important;
}

#wopo_payment_form label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: block !important;
    margin-bottom: 8px !important;
}

#wopo_payment_form input[type="radio"]:not(:checked)+label,
#wopo_payment_form input[type="checkbox"]:not(:checked)+label {
    color: #666 !important;
    transition: color 0.3s ease !important;
}

#wopo_payment_form input[type="radio"]:checked+label,
#wopo_payment_form input[type="checkbox"]:checked+label {
    color: #0073e6 !important;
}

#wopo_payment_form .woocommerce-save-card {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    margin-top: 12px !important;
    color: #555 !important;
}

#wopo_payment_form .woocommerce-save-card input[type="checkbox"] {
    margin-right: 10px !important;
}

#wopo_saved_cards label {
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    margin: 10px 0 !important;
}

#wopo_saved_cards input[type="radio"]:not(:checked)+label:hover {
    color: #0073e6 !important;
}

#wopo_card_form .form-row-first,
#wopo_card_form .form-row-last {
    width: 48% !important;
    margin-bottom: 18px !important;
}

#wopo_card_form .form-row-last {
    margin-right: 0 !important;
}

#wopo_card_form p {
    margin-bottom: 0px !important;
}

#wopo_card_form .form-row input[type="text"] {
    padding: 14px 18px !important;
    font-size: 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    margin-bottom: 5px !important;
    background-color: #f8f8f8 !important;
    transition: border-color 0.3s ease, background-color 0.3s ease !important;
}

#wopo_card_form .form-row input[type="text"]:focus {
    border-color: #0073e6 !important;
    background-color: #ffffff !important;
    outline: none !important;
}

@media (max-width: 768px) {
    #woop_payment_form {
        padding: 20px !important;
    }

    #woop_payment_form input[type="text"] {
        font-size: 15px !important;
    }

    .wopo_logos {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .wopo_logos img {
        height: 30px !important;
    }

    #wopo_card_form .form-row-first,
    #wopo_card_form .form-row-last {
        width: 100% !important;
        margin-right: 0 !important;
    }
}