/* === YGBMENU SELECTOR - COMPATIBLE CON ASTRA === */

/* Contenedor principal */
.ygbmenu-unique-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Selector con clase ÚNICA */
.ygbmenu-unique-select {
    font-size: 16px !important;
    line-height: 1.4 !important;
    padding: 2px 40px 2px 12px !important;
    width: 100% !important;
    color: #E26143 !important;
    border: 2px solid #E26143 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23E26143' height='24' viewBox='0 0 18 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 40px !important;
    vertical-align: middle !important;
}

/* Estados */
.ygbmenu-unique-select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(226,97,67,0.4) !important;
    border-color: #D14F32 !important;
}

.ygbmenu-unique-select:hover {
    border-color: #D14F32 !important;
    box-shadow: 0 0 0 2px rgba(209,79,50,0.3) !important;
}

.ygbmenu-unique-select:disabled,
.ygbmenu-unique-select.loading-state {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    background-color: #f9f9f9 !important;
}

.ygbmenu-unique-select.loading-state {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23E26143' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><circle cx='12' cy='12' r='10' stroke='%23E26143' stroke-width='4' fill='none'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/></circle></svg>") !important;
}

/* Responsive */
@media (max-width: 480px) {
    .ygbmenu-unique-select {
        font-size: 14px !important;
        padding: 2px 40px 2px 12px !important;
        min-height: 36px !important;
    }
}

/* Accesibilidad */
.ygbmenu-unique-select:focus-visible {
    outline: 2px solid #E26143 !important;
    outline-offset: 2px !important;
}

.ygbmenu-unique-select:focus:not(:focus-visible) {
    outline: none !important;
}

/* Correcciones específicas para Astra */
.ast-container .ygbmenu-unique-container,
.ast-page-builder-template .ygbmenu-unique-container,
.ast-separate-container .ygbmenu-unique-container {
    margin: 15px 0 !important;
}

/* Asegurar que no sea afectado por estilos globales de Astra */
select.ygbmenu-unique-select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23E26143' height='24' viewBox='0 0 18 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    padding-right: 40px !important;
}