/* ==========================================================================
   Legacy Plugin Compatibility & Theme Override Protection
   ========================================================================== */

/* MAXIMUM CSS SPECIFICITY - Override theme styles for normal (non-single-option) dropdowns */
html body.woocommerce div.product form.variations_form table.variations tbody tr td.value select[name^="attribute_"]:not(.hvp-single-option):not(.haru-single-option) {
    opacity: 1 !important;
    background-color: #ffffff !important;
    border: 2px solid var(--hvp-gray-200) !important;
    color: var(--hvp-gray-800) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    filter: none !important;
    font-style: normal !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.25rem 1.25rem !important;
    padding-right: 2.5rem !important;
}

/* Ensure disabled attribute on normal dropdowns doesn't break interactivity */
html body.woocommerce div.product form.variations_form table.variations tbody tr td.value select[name^="attribute_"][disabled]:not(.hvp-single-option):not(.haru-single-option) {
    opacity: 1 !important;
    background-color: #ffffff !important;
    border: 2px solid var(--hvp-gray-200) !important;
    color: var(--hvp-gray-800) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    filter: none !important;
}

/* Theme-specific overrides for PrintSpace and similar themes */
.haru-woo-product-variations select[name^="attribute_"]:not(.hvp-single-option):not(.haru-single-option),
.printspace select[name^="attribute_"]:not(.hvp-single-option):not(.haru-single-option) {
    opacity: 1 !important;
    background-color: #ffffff !important;
    border: 2px solid var(--hvp-gray-200) !important;
    color: var(--hvp-gray-800) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Override any green styling from other plugins/themes */
.variations_form select[name^="attribute_"]:not(.hvp-single-option):not(.haru-single-option):not(.hvp-highlight-needed):not(.haru-highlight-needed) {
    background-color: #ffffff !important;
    border-color: var(--hvp-gray-200) !important;
    color: var(--hvp-gray-800) !important;
    box-shadow: none !important;
}

/* Focus state override for normal dropdowns */
.variations_form select[name^="attribute_"]:focus:not(.hvp-single-option):not(.haru-single-option):not(.hvp-highlight-needed):not(.haru-highlight-needed) {
    border-color: var(--hvp-primary) !important;
    box-shadow: var(--hvp-focus-ring) !important;
    outline: none !important;
}

/* Note: Responsive lock icon adjustments are handled via wrapper elements
   in hvp-readonly.css because <select> elements cannot have ::after
   pseudo-elements. */

