/* ======================================================================
   UBD Visual UX · PRODUCT CLEAN CARDS 1.6.7

   Producto:
   - “¿Qué incluye este regalo?” cerrada = ficha verde fuerte + letras blancas.
   - Abierta = fondo blanco + texto oscuro normal.
   - Elimina bordes/sombras visibles de Puntos Bonitos, Qué incluye y Reviews.
   - Conserva controles, contenido, datos y funcionamiento.

   Sólo CSS. No modifica hooks, HTML, JS, eventos, carrito, checkout ni datos.
   ====================================================================== */

/* ----------------------------------------------------------------------
   A. LIMPIEZA GENERAL DE CONTENEDORES VISIBLES EN ESTA ZONA
   ---------------------------------------------------------------------- */
html.ubd-product-ready body#product.ubd-modular-page
:is(.tvwishlist-compare-wrapper-page, .tvproduct-stock-social, .product-additional-info) {
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* ----------------------------------------------------------------------
   B. PUNTOS BONITOS · sin borde exterior ni bordes decorativos internos
   ---------------------------------------------------------------------- */
html.ubd-product-ready body#product.ubd-modular-page #loyalty_product_wrapper {
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  background-color: #fff !important;
}

html.ubd-product-ready body#product.ubd-modular-page #loyalty_product_wrapper::before,
html.ubd-product-ready body#product.ubd-modular-page #loyalty_product_wrapper .loyalty-icon-container,
html.ubd-product-ready body#product.ubd-modular-page #loyalty_product_wrapper .loyalty-card-modern {
  border: 0 !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------------------
   C. “¿QUÉ INCLUYE ESTE REGALO?”
   CERRADA: verde fuerte + tipografía blanca
   ABIERTA: blanca + tipografía normal oscura
   ---------------------------------------------------------------------- */
html.ubd-product-ready body#product.ubd-modular-page #ubd-product-includes-v11024 {
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* CERRADA */
html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024:not([open]) {
  background: #4b8b61 !important;
  background-color: #4b8b61 !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024:not([open]) > summary {
  background: #4b8b61 !important;
  background-color: #4b8b61 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024:not([open]) .ubd-product-includes-copy-v11024 strong,
html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024:not([open]) .ubd-product-includes-copy-v11024 small {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024:not([open]) .ubd-product-includes-icon-v11024,
html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024:not([open]) .ubd-product-includes-chevron-v11024 {
  border: 0 !important;
  box-shadow: none !important;
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

/* ABIERTA */
html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024[open] {
  background: #fff !important;
  background-color: #fff !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024[open] > summary {
  background: #fff !important;
  background-color: #fff !important;
  color: #18333a !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024[open] .ubd-product-includes-copy-v11024 strong {
  color: #18333a !important;
  -webkit-text-fill-color: #18333a !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024[open] .ubd-product-includes-copy-v11024 small {
  color: #728083 !important;
  -webkit-text-fill-color: #728083 !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024[open] .ubd-product-includes-icon-v11024 {
  border: 0 !important;
  box-shadow: none !important;
  background: #fff0bf !important;
  color: #18333a !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024[open] .ubd-product-includes-chevron-v11024 {
  border: 0 !important;
  box-shadow: none !important;
  background: #f0f3ef !important;
  color: #496067 !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#ubd-product-includes-v11024 .ubd-product-includes-content-v11024 {
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  background-color: #fff !important;
}

/* ----------------------------------------------------------------------
   D. ETS REVIEWS · quitar marcos y sombras sin tocar datos ni controles
   ---------------------------------------------------------------------- */
html.ubd-product-ready body#product.ubd-modular-page
:is(
  .ets_rv_wrap,
  .ets_rv_reviews,
  #ets-rv-product-comments-list-header,
  .ets_rv_wrap_filter,
  .ets_rv_statistics,
  .ets_rv_stats_review,
  .ets_rv_average_rating,
  .ets_rv_statistic_rating,
  .ets_rv_wrap_content,
  .ets_rv_tab_content,
  .ets_rv_reviews_header,
  .ets_rv_review_filter
) {
  border: 0 !important;
  box-shadow: none !important;
}

html.ubd-product-ready body#product.ubd-modular-page .ets_rv_reviews_header,
html.ubd-product-ready body#product.ubd-modular-page .ets_rv_review_filter {
  border-bottom: 0 !important;
}

/* El contenedor exterior se funde con la página: sin “tarjeta sobre tarjeta”. */
html.ubd-product-ready body#product.ubd-modular-page .ets_rv_wrap,
html.ubd-product-ready body#product.ubd-modular-page .ets_rv_reviews {
  background: #fff !important;
  background-color: #fff !important;
}

/* Mantener el bloque amarillo de puntuación como superficie de color,
   pero sin línea alrededor. */
html.ubd-product-ready body#product.ubd-modular-page .ets_rv_average_rating {
  border: 0 !important;
  box-shadow: none !important;
}

/* Quita posibles líneas de cajas internas de estadísticas, sin afectar barras. */
html.ubd-product-ready body#product.ubd-modular-page
:is(.ets_rv_wrap_filter, .ets_rv_statistics, .ets_rv_stats_review, .ets_rv_statistic_rating) {
  outline: 0 !important;
}

/* Comentarios individuales: sin borde externo adicional si el módulo lo añade. */
html.ubd-product-ready body#product.ubd-modular-page
:is(.ets-rv-product-comment-list-item, .ets-rv-comment, .ets-rv-question) {
  border: 0 !important;
  box-shadow: none !important;
}
