/* ======================================================================
   UBD Visual UX · ETS CLEAN 1.6.5
   Producto: limpia visualmente ETS Extra Options sin tocar su funcionamiento.

   Objetivo:
   - Fondo amarillo -> blanco.
   - La sección completa de ETS queda sin borde/sombra visibles.
   - Sólo las fichas individuales conservan borde.
   - "Total de Extras" vuelve a tipografía negra simple, sin contorno.

   Seguridad:
   - Sólo CSS.
   - No cambia HTML, inputs, values, data-price, JS ni eventos de ETS.
   ====================================================================== */

/* 1) Contenedor general ETS: blanco y sin borde */
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom {
  background: #fff !important;
  background-color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 2) Subsecciones ETS sin caja propia; sólo quedan las fichas */
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .form-group,
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .list-attribute-custom,
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .from-group-option {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .from-group-option {
  padding: 0 !important;
}

/* Título de la sección más limpio, sin pastilla amarilla */
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .form-group h4 {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Encabezados internos neutrales */
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .from-group-option > h5 {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
}

/* 3) Mantener solamente borde en las fichas individuales */
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .ubd-eto-modular-track > :is(.radio, .checkbox) {
  border: 1px solid rgba(24, 51, 58, .12) !important;
  border-radius: 18px !important;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: none !important;
}

html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .ubd-eto-modular-track > :is(.radio, .checkbox):has(input:checked) {
  border-color: rgba(231, 146, 60, .95) !important;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 1px rgba(231, 146, 60, .95) inset !important;
}

/* 4) Total de Extras en negro, sin contorno negro ni relleno blanco */
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .ubd-ets-total-contrast-v1918,
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .ubd-ets-total-contrast-v1918 *,
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .attribute-custom-price,
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .attribute-custom-price * {
  color: #111 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #111 !important;
  -webkit-text-stroke: 0 !important;
  paint-order: normal !important;
  text-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .ubd-ets-total-contrast-v1918,
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .attribute-custom-price {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin-top: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .ubd-ets-total-contrast-v1918 .price,
html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom .attribute-custom-price .price {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  font-weight: 900 !important;
}

/* 5) Móvil: dejar aire inferior para el total, sin caja alrededor */
@media (max-width: 767px) {
  html.ubd-product-ready body#product.ubd-modular-page .block-product-attribute-custom {
    padding-bottom: 4px !important;
  }
}
