/* Consistent dropdown styling for checkout page */
/* Make dropdowns match the same style as .ven-form-control inputs */

/* Force Select2 dropdowns to have consistent styling from page load */
body.woocommerce-checkout .select2-container--default .select2-selection--single {
    background-color: white !important;
    border: thin solid #c4c4c4 !important;
    border-radius: 0 !important;
    height: 48px !important;
    padding: 4px 20px !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Ensure consistent arrow styling - use SVG arrow like other form elements */
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
    top: 15px !important;
    width: 10px !important;
    background: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: 10px 6px !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

/* Consistent text styling */
body.woocommerce-checkout .select2-container--default .select2-selection__rendered {
    color: #333 !important;
    font-family: ProximaNova, sans-serif !important;
    font-size: 16px !important;
    line-height: 40px !important;
    padding: 0 30px 0 0 !important;
    font-weight: normal !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Placeholder styling */
body.woocommerce-checkout .select2-container--default .select2-selection__placeholder {
    color: #c4c4c4 !important;
    font-weight: normal !important;
}

/* Remove focus outline and maintain consistent border */
body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border: thin solid #c4c4c4 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Consistent dropdown panel styling */
body.woocommerce-checkout .select2-dropdown {
    border: thin solid #c4c4c4 !important;
    border-top: none !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin-top: -1px !important;
    background-color: white !important;
}

/* Option styling */
body.woocommerce-checkout .select2-results__option {
    padding: 8px 20px !important;
    font-family: ProximaNova, sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: white !important;
}

/* Hover state */
body.woocommerce-checkout .select2-results__option--highlighted[aria-selected] {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

/* Selected state */
body.woocommerce-checkout .select2-results__option[aria-selected="true"] {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    font-weight: normal !important;
}

/* Container spacing */
body.woocommerce-checkout .select2-container {
    width: 100% !important;
    margin: 0 !important;
}

/* Fix for form field wrapper */
body.woocommerce-checkout .form-row .select2-container {
    display: block !important;
}

/* Ensure native select is hidden */
body.woocommerce-checkout select.select2-hidden-accessible {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    body.woocommerce-checkout .select2-container--default .select2-selection__rendered {
        font-size: 14px !important;
    }
    
    body.woocommerce-checkout .select2-results__option {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}