/*
 * Liscano Health 0.5.0 — optional native storefront compatibility layer.
 * This is NOT a wholesale reset of installed plugins. Payment gateways,
 * checkout, AURA and third-party iframes remain owned by their providers.
 * Activated only by an administrator from Health, off by default.
 */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura) {
  --liscano-health-font: var(--lco-ds-font-family, "Google Sans", Arial, sans-serif);
  --liscano-health-control-radius: var(--lco-ds-radius-control, var(--lsc-radius-control, 12px));
  --liscano-health-focus: var(--lco-ds-ring, var(--lsc-focus, #be1a34));
}

/* Common action controls from native WooCommerce and Liscano plugins. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(.woocommerce, .lco-cart-hero, .lp-gift-box, .lco-coupon-panel,
    .lp-product-recommendations__section, .lcp-hub, .lcp-builder,
    [class^="liscano-"], [class^="lp-"], [class^="lcp-"])
:where(button:not(.plus):not(.minus):not([class*="payment"]):not([class*="mercadopago"]):not([class*="addi"]),
       a.button, a.checkout-button, input[type="submit"], input[type="button"])
:not(#payment *):not(.payment_methods *):not([class*="mercadopago"] *)
:not([class*="wompi"] *):not([class*="addi"] *):not(.wc-block-components-payment-methods *) {
  font-family: var(--liscano-health-font) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-radius: var(--liscano-health-control-radius) !important;
}

/* Inputs should share the DS control radius but preserve provider sizes. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(.woocommerce, .lco-coupon-panel, .lp-gift-box, .lcp-hub, .lcp-builder, [class^="liscano-"])
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea)
:not(#payment *):not(.payment_methods *):not([class*="mercadopago"] *)
:not([class*="wompi"] *):not([class*="addi"] *) {
  font-family: var(--liscano-health-font) !important;
  border-radius: var(--liscano-health-control-radius) !important;
}

/* Visible keyboard focus. Never remove provider focus treatment. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(.woocommerce, .lco-cart-hero, .lp-gift-box, .lco-coupon-panel,
    .lcp-hub, .lcp-builder, [class^="liscano-"])
:where(button, a.button, a.checkout-button, input, select, textarea):focus-visible
:not(#payment *):not(.payment_methods *):not([class*="mercadopago"] *)
:not([class*="wompi"] *):not([class*="addi"] *) {
  outline: 2px solid var(--liscano-health-focus) !important;
  outline-offset: 3px;
}

/*
 * LP-DS2-ADAPTERS-20261108 — storefront-specific plugin normalization.
 *
 * Source: Health Plugin Styles 0.5.0 JSON from actual production,
 * generated 2026-11-07 19:47:23. Source CSS hashes from the production
 * code export match the report's SHA-256 samples for these modules:
 *  - Liscano Core 3.3.30       - Liscano Combos 1.5.11
 *  - Pares de obsequio 1.2.1   - Filtro por precio 1.8.0
 *  - Asistente de tallas 1.7.1 - Marcas Dinámicas 1.3.1
 *  - También llevan 1.3.1     - Ticket Booster 1.0.0
 *
 * Included: visible native-store controls, components and labels.
 * Intentionally untouched: wp-admin, AURA, checkout and payment providers,
 * logos/images, icons, out-of-stock states and layout geometry.
 * Everything below is opt-in through Liscano Health, not a global reset.
 */

/* Extend canonical tokens without replacing the provider's color scheme. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura) {
  --liscano-health-card-radius: var(--lco-ds-radius-card, 16px);
  --liscano-health-border-color: var(--lco-ds-border, #dedee2);
}

/* Editorial casing: these are the actual frontend plugin selectors found in
 * the production CSS. Labels retain their source capitalization in Spanish. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(
  .lp-gift-counter span,
  .lp-unlock-kicker,
  .lp-gift-badge,
  .lp-progress-copy strong,
  .lp-continue-shopping-secondary,
  .lcp-eyebrow,
  .lcp-tier-heading h3,
  .lcp-inventory-filters label span,
  .lcp-inventory-table th,
  .lcp-inventory-table td:nth-child(4)::before,
  .lcp-inventory-table td:nth-child(n+6)::before,
  .lp-price-filter__heading h2,
  .lp-size-guide__table-head h4,
  .lp-marca-name,
  .lp-product-recommendations__badge,
  .lp-ticket-booster__eyebrow
) {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* A predictable typographic contract for interactive controls in the native
 * Liscano plugins, including classes that the original generic bridge missed.
 * Native behavior, sizes, disabled/loading states and colors are preserved. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(
  .lp-gift-box .lp-toggle-gifts,
  .lp-gift-box .lp-add-gift,
  .lp-gift-box .lp-show-more,
  .lp-continue-shopping-secondary,
  .lp-ticket-booster .lp-ticket-booster__button,
  .lp-product-recommendations .lp-product-recommendations__button,
  .lp-product-recommendations .lp-product-recommendations__browse,
  .lp-size-guide .lp-size-guide__toggle,
  .lp-size-guide .lp-size-guide__tab,
  .lp-marcas-wrap .lp-marca-more,
  .lcp-wrap .lcp-tier-cta,
  .lcp-wrap .lcp-bulk-buttons button,
  .lcp-combo-hub .lcp-tier-cta,
  .wc-block-cart .wc-block-components-button,
  .wc-block-product-filter .wc-block-components-button
):not([class*="payment"]):not([class*="mercadopago"]):not([class*="addi"])
:not(#payment *):not(.payment_methods *) {
  font-family: var(--liscano-health-font) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-radius: var(--liscano-health-control-radius) !important;
}

/* Product-size selectors, combo fields and gift pickers: font and radius only.
 * No changes to select height, stock badges, backgrounds, values or spacing. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(
  .lp-size-guide__tab,
  .lp-gift-picker select,
  .lp-gift-picker input[type="text"],
  .lp-gift-toolbar select,
  .lp-gift-toolbar input[type="text"],
  .lcp-wrap select,
  .lcp-wrap input[type="text"],
  .lcp-wrap input[type="search"]
):not(#payment *):not(.payment_methods *) {
  font-family: var(--liscano-health-font) !important;
  border-radius: var(--liscano-health-control-radius) !important;
}

/* Only true cards receive card radius; product imagery and brand logos
 * remain untouched to avoid new clipping/cropping in brand carousels. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(
  .lp-price-filter__image-card,
  .lp-product-recommendations__item
) {
  border-radius: var(--liscano-health-card-radius) !important;
}

/* Keyboard focus is enhanced, not hidden. Focus ring is limited to the same
 * real controls and does not touch embedded payment or bank widgets. */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(
  .lp-gift-box .lp-toggle-gifts,
  .lp-gift-box .lp-add-gift,
  .lp-gift-box .lp-show-more,
  .lp-ticket-booster__button,
  .lp-product-recommendations__button,
  .lp-size-guide__toggle,
  .lp-size-guide__tab,
  .lp-price-filter__image-card,
  .lp-marcas-wrap .lp-marca-more,
  .lcp-wrap button,
  .wc-block-cart .wc-block-components-button
):focus-visible:not(#payment *):not(.payment_methods *) {
  outline: 2px solid var(--liscano-health-focus) !important;
  outline-offset: 3px;
}


/*
 * HEALTH-060 / external storefront plugin controls:
 * Contact Form 7, Elementor native forms, WPC Bought Together,
 * Advanced Product Fields (WAPF), WooCommerce Blocks.
 * Select only customer-facing form/button primitives; third-party proprietary
 * brand assets, icon fonts, React toolbars, iframes and payment widgets remain
 * untouched. No changes in AURA, checkout or wp-admin.
 */
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(.wpcf7, .elementor-form, .woobt-wrap, .wapf-wrapper,
    .wc-block-components-form, .woocommerce-product-details__short-description)
:where(
  button[type="submit"], input[type="submit"], a.button,
  .elementor-button, .woobt-btn, .wapf-button
):not([class*="payment"]):not([class*="addi"]):not([class*="mercadopago"])
:not([class*="wompi"]):not(#payment *) {
  font-family: var(--liscano-health-font) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-radius: var(--liscano-health-control-radius) !important;
}
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(.wpcf7, .elementor-form, .woobt-wrap, .wapf-wrapper)
:where(input[type="text"], input[type="email"], input[type="tel"],
       input[type="number"], select, textarea)
:not([class*="payment"]):not([class*="addi"]):not([class*="mercadopago"])
:not([class*="wompi"]):not(#payment *) {
  font-family: var(--liscano-health-font) !important;
  border-radius: var(--liscano-health-control-radius) !important;
}
body.lco-editorial:not(.woocommerce-checkout):not(.lco-aura)
:is(.wpcf7, .elementor-form, .woobt-wrap, .wapf-wrapper)
:where(button, input, select, textarea, a.button):focus-visible
:not([class*="payment"]):not(#payment *) {
  outline: 2px solid var(--liscano-health-focus) !important;
  outline-offset: 3px;
}
