/* Delimitación visible del control activo, SOLO en el iframe de vista previa. */
html.appearance-live-preview-mode .appearance-edited-target {
    outline: 4px dashed #f59e0b !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 8px rgba(245,158,11,.16) !important;
}
/* Mostrar cómo queda el estado hover sin necesitar el mouse dentro del iframe. */
html.appearance-live-preview-mode.appearance-current-style[data-style-fields~="products_menu_surface"] #desktopProductsSubmenu button.appearance-preview-hover {
    background-color:var(--style-products-menu-surface) !important;
}
html.appearance-live-preview-mode.appearance-current-style[data-style-fields~="products_menu_hover_text"] #desktopProductsSubmenu button.appearance-preview-hover {
    color:var(--style-products-menu-hover-text) !important;
}
@media(prefers-reduced-motion:no-preference){
    html.appearance-live-preview-mode .appearance-edited-target {transition:outline-offset .12s ease;}
}

/* Keep actual margins, positioning, stacking and shadows of the selected element. */
html.appearance-live-preview-mode .appearance-edited-target {outline-style:solid !important;}

html.appearance-live-preview-mode.appearance-design-enabled [class~="appearance-preview-hover"]:is(.btn-comprar,.btn-primary) {background-color:var(--design-button-hover-bg) !important;}
html.appearance-live-preview-mode.appearance-design-colors-enabled [class~="appearance-preview-hover"]:is(.btn-comprar,.btn-primary) {background-color:var(--design-button-hover-bg) !important;}
html.appearance-live-preview-mode.appearance-design-enabled [class~="appearance-preview-hover"]:is(.btn-comprar,.btn-primary) {color:var(--design-button-hover-text) !important;}
html.appearance-live-preview-mode.appearance-design-colors-enabled [class~="appearance-preview-hover"]:is(.btn-comprar,.btn-primary) {color:var(--design-button-hover-text) !important;}
