/* Modern Payment Method Design */
.bookeey-payment-options {
    margin: 20px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bookeey-payment-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 60px;
}

.bookeey-payment-option:hover {
    border-color: #007cba;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

.bookeey-payment-option input[type="radio"],
.bookeey-payment-option .paymentoptions {
    width: 20px;
    height: 20px;
    margin: 0 16px 0 0;
    cursor: pointer;
    appearance: none;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
}

.bookeey-payment-option input[type="radio"]:checked,
.bookeey-payment-option .paymentoptions:checked {
    border-color: #007cba;
    background: #007cba;
}

.bookeey-payment-option input[type="radio"]:checked::after,
.bookeey-payment-option .paymentoptions:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.bookeey-payment-option label {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #374151;
    font-size: 16px;
}

.payment_option_img {
    max-height: 32px;
    width: auto;
    margin-right: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.payment-option-text {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
    margin-left: 8px;
}

/* Selected state styling */
.bookeey-payment-option:has(input:checked),
.bookeey-payment-option:has(.paymentoptions:checked) {
    border-color: #007cba;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .bookeey-payment-option {
        padding: 14px 16px;
        min-height: 55px;
    }
    
    .payment_option_img {
        max-height: 28px;
        margin-right: 10px;
    }
    
    .payment-option-text {
        font-size: 15px;
    }
    
    .bookeey-payment-option input[type="radio"],
    .bookeey-payment-option .paymentoptions {
        width: 18px;
        height: 18px;
        margin: 0 14px 0 0;
    }
}

.bookeey-payment-option:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.bookeey-payment-option input:checked + label {
    background: #e3f2fd;
}

.bookeey-payment-option:has(input:checked) {
    background: #e3f2fd;
    border-color: #007cba;
    box-shadow: 0 0 0 1px rgba(0, 124, 186, 0.3);
}

/* Fix radio button size and alignment */
.bookeey-payment-option .paymentoptions {
    margin: 0 12px 0 0 !important;
    cursor: pointer;
    width: 16px !important;
    height: 16px !important;
    transform: none !important;
    flex-shrink: 0;
}

.bookeey-payment-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    flex: 1;
    padding: 4px 0;
    border-radius: 4px;
}

.payment_option_img {
    max-height: 32px !important;
    width: auto;
    margin-right: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.payment-option-text {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Override theme radio button styles */
.bookeey-payment-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin: 0 12px 0 0 !important;
    flex-shrink: 0;
}

.bookeey-payment-option input[type="radio"]:checked {
    border-color: #007cba;
    background: #007cba;
}

.bookeey-payment-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* Force override any theme styles */
.bookeey-payment-option input[type="radio"],
.bookeey-payment-option .paymentoptions {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
}

/* Override theme's custom radio styles */
.bookeey-payment-option .custome-radio input[type="radio"],
.bookeey-payment-option .form-check-input,
.bookeey-payment-option .input-radio {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 2px solid #ccc !important;
    border-radius: 50% !important;
    background: #fff !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.bookeey-payment-option .custome-radio input[type="radio"]:checked,
.bookeey-payment-option .form-check-input:checked,
.bookeey-payment-option .input-radio:checked {
    border-color: #007cba !important;
    background: #007cba !important;
}

.bookeey-payment-option .custome-radio input[type="radio"]:checked::after,
.bookeey-payment-option .form-check-input:checked::after,
.bookeey-payment-option .input-radio:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #fff !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .bookeey-payment-option {
        padding: 6px 10px;
        margin: 6px 0;
        min-height: 45px;
    }
    
    .payment_option_img {
        max-height: 28px !important;
        margin-right: 8px;
    }
    
    .payment-option-text {
        font-size: 13px;
    }
    
    .bookeey-payment-option input[type="radio"] {
        width: 14px !important;
        height: 14px !important;
        margin: 0 10px 0 0 !important;
    }
    
    .bookeey-payment-option input[type="radio"]:checked::after {
        width: 5px;
        height: 5px;
    }
}

/* Ensure consistent radio button positioning for all payment methods */
.wc_payment_method.payment_method_cod {
    display: flex;
    align-items: center;
}

.wc_payment_method.payment_method_cod label {
    display: flex;
    align-items: center;
    order: 2;
    margin-left: 12px;
}

.wc_payment_method.payment_method_cod input[type="radio"] {
    order: 1;
    margin: 0 !important;
}

ul.payment_methods li.wc_payment_method {
    display: flex;
    align-items: center;
}

ul.payment_methods li.wc_payment_method label {
    display: flex;
    align-items: center;
    order: 2;
    margin-left: 12px;
}

ul.payment_methods li.wc_payment_method input[type="radio"] {
    order: 1;
    margin: 0 !important;
}