/* ============================================================
   Ajustes de plantilla heredados de "CSS adicional" del Personalizador
   Origen: Apariencia > Personalizar > CSS adicional (histórico).
   Se integra al plugin para que el deploy sea solo de archivos.

   Limpieza aplicada:
   - fuera la regla de ancho del mega menú (3 de 12), obsoleta desde que el
     panel se rearmó en tres columnas de 4 de 12
   - unificados los dos bloques duplicados de .wp-block-column
   - URLs de imágenes del dominio -> relativas, para que funcionen en local
     y en producción con el mismo archivo
   ============================================================ */

img.attachment-shop_catalog.size-shop_catalog.wp-post-image {
    /* height: auto; */
    /* max-width: none; */
    /* vertical-align: top; */
    height: auto;
    max-width: none;
    vertical-align: top;
    display: block;
    margin-left: 20%;
    /* margin: 0 auto; */
}
dt.tm-options-totals {
    display: none !important;
}

dd.tm-options-totals {
    display: none !important;
}

/* Aumentar el tamaño de los títulos */
.wp-block-column p {
    font-size: 1.2em; /* Puedes ajustar el valor según tus necesidades */
}

/* Quitar el subrayado de los enlaces */
.wp-block-column a {
    text-decoration: none;
}

.tm-hidden{
	border:none!important;
}
/*Añadimos un puntero en el area de atributos*/
body:not(.customize-preview) form.customize-unpreviewable,
body:not(.customize-preview) form.customize-unpreviewable input,
body:not(.customize-preview) form.customize-unpreviewable select,
body:not(.customize-preview) form.customize-unpreviewable button,
body:not(.customize-preview) a.customize-unpreviewable,
body:not(.customize-preview) area.customize-unpreviewable {
    cursor: pointer !important;
}

/* Incluido para el color del mueble */

.color-section {
  background: #f9f9f9;
  border-radius: 20px;
  padding: 15px 15px !important;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Cada imagen de color como tarjeta elegante */
.color-selector-ul img.radio-image{
  object-fit: cover;
  border-radius: 20px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 3px solid transparent;
  transition: all 0.2s ease-in-out;
  background: white;
  padding: 0px;
  cursor: pointer;
	overflow: hidden;
}

/* Etiqueta Color del Mueble*/ 
.color-selector-div .tc-epo-element-label-text
{
	font-size: 19px;
	font-weight: bold;
}

/* Nombre del color debajo (si activas mostrar texto) */
.color-selector-ul .tc-label-text {
  display: block !important;
	border-radius: 25px;
  text-align: center;
  font-size: 11px;
  color: #333;
  margin-top: -3px;
}

/*Boton-ver colores*/
.btn-ver-colores {
	float: right;
	font-size: 12px;
}

/* Mostrar solo los 5 primeros colores por defecto */
.color-selector-ul:not(.is-expanded) > li:nth-child(n+7) {
  display: none !important;
}

/* Estilo moderno para tablas */
.custom-product-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-family: sans-serif;
  font-size: 14px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Cabecera */
.custom-product-table thead {
  background-color: #f3f3f3;
  font-weight: bold;
}

.custom-product-table th{
	text-align: center;
	font-size: 18px;
	
}
.custom-product-table td {
  padding: 12px 16px;
  text-align: left;
	font-size: 16px;
  border-bottom: 1px solid #eee;
}

.custom-product-table tbody tr:last-child td {
  border-bottom: none;
}

/* Alternancia de color */
.custom-product-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.measurements-section {
  background: #f9f9f9;
  border-radius: 20px;
  padding: 15px 15px !important;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

.measurements-selector-div .tc-epo-element-label-text
{
	font-size: 19px;
	font-weight: bold;
}

.measurements-selector-div img.radio-image {
	  width: 100px;
		height: auto;
    border-radius: 8px !important;
}

.measurements-selector-div .tc-label-text {
  display: block !important;
	border-radius: 25px;
  text-align: center;
  font-size: 11px;
  color: #333;
  margin-top: -3px;
}

/*Lupa */
.tc-lightbox-wrap{
	border: 0px;
	background: none;
}

.tc-lightbox-button {
    content: url('/wp-content/uploads/2025/08/lupa-8be2b3.svg');
    width: 20px;
    height: 20px;
    display: inline-block;
}

.woocommerce-product-gallery__trigger {
    content: url('/wp-content/uploads/2025/08/lupa-8be2b3.svg');
    width: 30px;
    height: 30px;
    display: inline-block;
		border-radius: 25px;
}

.cpf-section{
  background: #f9f9f9;
  border-radius: 20px;
  padding: 15px 15px !important;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

.cpf-section .tc-epo-element-label-text {
	font-weight: bold;
	font-size: 19px;
}

.btn-quitar-encimeras, .btn-quitar-tiradores, .btn-ver-encimeras , .btn-ver-tiradores{
	font-size: 12px;
	border: 0px;
	background: none;
}

.btn-ver-encimeras , .btn-ver-tiradores{
	float: right;
}

/* Summary “Lavabo Encimera” */
.beb-encimera-summary,
.beb-tiradores-summary{
  display:flex; align-items:center; gap:.75rem;
  padding:14px 16px; border-radius:16px;
  background:#f8f9fa; margin-bottom:10px;
}

/* Estructura común interna */
.beb-encimera-summary .beb-summary__left,
.beb-tiradores-summary .beb-summary__left{
  display:flex; align-items:center; gap:15px; flex:1;
}
.beb-summary__thumb{ width:70px; height:56px; border-radius:12px; overflow:hidden; background:#fff; }
.beb-summary__thumb img{ width:100%; height:100%; object-fit:cover; visibility:hidden; }
.beb-summary__name{ flex:1; }
.beb-summary__price{ margin-left:auto; color:#111827; font-weight:600; }

.beb-encimera-summary .btn-ver-encimeras{
  border:1px solid #ddd; background:#fff; padding:.5rem .9rem; border-radius:12px; cursor:pointer;
}

/* Drawer footer */
#beb-drawer .beb-drawer__footer{
  padding:12px 16px; border-top:1px solid #eee; display:flex; justify-content:flex-end; background:#fff;
  position: sticky; bottom: 0;
}

#beb-drawer .beb-confirm{
  padding:.7rem 1.1rem; border-radius:12px; border:0; cursor:pointer; font-weight:700;
  background:#111827; color:#fff;
}
#beb-drawer .beb-confirm[disabled]{ opacity:.45; cursor:not-allowed; }

/* (si no lo tienes ya) panel base */
#beb-drawer .beb-drawer__panel{ width:520px; max-width:92vw; }
@media (max-width:768px){ #beb-drawer .beb-drawer__panel{ width:100%; } }

/* Oculta radios en el clon pero deja eventos */
#beb-drawer .tmcp-field.tc-epo-field-product.tmcp-radio{
  position:absolute; opacity:0; width:0; height:0;
}
#beb-drawer .tm-epo-field-label.is-selected{
  border-color:#111827; box-shadow:0 0 0 2px rgba(17,24,39,.10);
}

.beb-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 9999;
  pointer-events: none;
}

.beb-drawer__overlay {
  flex: 1;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.beb-drawer__panel {
  background: #fff;
  width: 400px;
  max-width: 90%;
  height: 100%;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 1rem;
}

.beb-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.beb-drawer__close {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Cuando está abierto */
.beb-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.beb-drawer[aria-hidden="false"] .beb-drawer__overlay {
  opacity: 1;
}

.beb-drawer[aria-hidden="false"] .beb-drawer__panel {
  transform: translateX(0);
}

/* Animación al actualizar precios */
.beb-price-animate { will-change: transform, background-color; }
.beb-price-pop { animation: bebPricePop .35s ease; }
.beb-price-flash { animation: bebPriceFlash .9s ease; }

@keyframes bebPricePop {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes bebPriceFlash {
  0% { background-color: rgba(255, 230, 150, 0.8); }
  60% { background-color: rgba(255, 230, 150, 0.0); }
  100% { background-color: transparent; }
}

body.no-scroll {
  position: fixed;
  width: 100%;
  overflow: hidden; 
}
