/* BUTTON DISABLED WEEK DIARLY MENU */

.btn-menu-diario, #next, #prev {
	cursor: pointer;
}

.et_pb_blurb_1 {
	cursor: not-allowed;
}

/* AJAX CALL DISHES */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#section-menu-entrantes, #section-menu-principal {
	opacity: 0; /* Oculta el módulo antes de la animación */
	animation: fadeInUp 0.6s ease-out forwards;
}

/* TOLTIP ALERGENOS */

.tooltip-container {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

.tooltip-container::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 5px 8px;
	border-radius: 4px;
	white-space: nowrap;
	font-size: 12px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out;
}

.tooltip-container:hover::after {
	opacity: 1;
	visibility: visible;
}


/* OPCIONES O INTOLERANCIAS ADD-TO-CART */

.intolerancias-wrap {
	display: flex;
	flex-wrap: wrap;         /* que bajen si no caben */
	justify-content: center; /* centrado horizontal */
	gap: 10px;               /* espacio entre opciones */
	margin-top: 8px;
}

.intolerancia-option {
	display: inline-flex;
	align-items: center;
	font-size: 1rem;       /* letra más grande */
	color: #000;             /* texto */
	background: #f9f9f9;     /* fondo suave */
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 3px 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.intolerancia-option:hover {
	background: #e4dcdc;
}

.intolerancia-option input {
	margin-right: 6px;
	transform: scale(1.3); /* check más grande */
}


/* BOTÓN FLOTANTE SELECTED DATE WEEK MENU */

#sticky-active-btn {
	display: none;
	position: fixed;
	top: 100px;
	left: 50%;
	transform: translateX(610px);
	z-index: 99999;
	cursor: pointer;
}

/* En móvil (centrado arriba) */
@media (max-width: 980px) {
	#sticky-active-btn {
		top: 20px;
		left: 50%;
		transform: translateX(-50%);
	}
}

/* Overlay IMAGEN PLATOS */

/* Fondo oscuro */
.lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease-in-out;
	z-index: 9999;
}

/* Imagen grande */
.lightbox-overlay img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Mostrar la capa emergente */
.lightbox-overlay.show {
	opacity: 1;
	visibility: visible;
}






/* ========================================================================= */
/* 1. ESTRUCTURA Y LAYOUT (Alineación y Estabilidad)                         */
/* ========================================================================= */

/* Contenedor principal de controles (Separa controles y botón) */
.product-variant-wrapper, 
.dish-variant-wrapper {
    display: flex;
	/* flex-direction: column; */
	/* flex-wrap: wrap; */
	justify-content: center;
    align-items: center;
    width: 100%;
	min-height: 80px;
    gap: 10px;
}

.daily-product-card,
.daily-dish-card {
    display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 15px;
}


/* Contenedor del Botón (Fija el espacio, alineación a la izquierda) */
.add-to-cart-container {
    position: relative;
    display: flex;
	flex-wrap: wrap;
	flex-direction: column;
    align-items: center;
	justify-content: center;
	gap: 5px;
}

/* Manejo de los Botones: Fluyen estáticamente, uno al lado del otro */
.add-to-cart-container .add_to_cart_button,
.add-to-cart-container .added_to_cart {
    position: static; 
    margin: 0 !important;
    display: inline-flex; /* Usar flex para centrar el texto dentro del botón */
    justify-content: center;
    align-items: center;
	flex-direction: column;
    text-decoration: none;
    line-height: 1; /* Estabiliza el texto */
}

/* Animación del botón al añadir */
.add_to_cart_button.loading {
    opacity: 0.5;
    cursor: wait;
}


/* ========================================================================= */
/* 2. TOGGLE "SIN GLUTEN" Y CANTIDAD (Tus estilos originales)                */
/* ========================================================================= */

.dish-quantity, .tray-quantity {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.tray-quantity .label, 
.dish-quantity .label {
  font-weight: 500;
}

.tray-quantity .quantity-control,
.dish-quantity .quantity-control {
	display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
}

.tray-quantity button,
.dish-quantity button {
  background: #e0e0e0;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
}

.quantity-control .quantity_input {
    width: 30px;
    text-align: center;
    border: none;
    -moz-appearance: textfield;
}

.quantity-control .quantity_input::-webkit-outer-spin-button,
.quantity-control .quantity_input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Para Chrome, Safari, etc. */
    margin: 0;
}

/* Toggle Sin Gluten */
.hidden-checkbox { position: absolute; opacity: 0; pointer-events: none; }

.gluten-toggle-label {
    cursor: pointer;
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #666;
    transition: all 0.2s ease-in-out;
    font-size: 0.85em;
    font-weight: 600;
}

.hidden-checkbox:checked + .gluten-toggle-label {
    background-color: #7e997d; 
    border-color: #7e997d;
    color: white;
}








.tray-price,
.dish-price {
  color: #666;
  font-size: 20px;
  border-top: 2px solid #666;
  width: 80px;
  padding: 10px 0;
}


a.add_to_cart_button  {
  display: inline-block !important;
  background-color: #9bb292 !important;
  color: #fff !important;
  font-size: 15px !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 5px 16px !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease !important;
}

.add_to_cart_button :hover {
  background-color: #7e997d !important;
}







/* ========================================================================= */
/* 3. BOTÓN "VER CARRITO" (Estilo Secundario con Transición)                 */
/* ========================================================================= */

/* Aplicar estilos de botón secundario al enlace "Ver Carrito" */
/* .add-to-cart-container .added_to_cart {
    margin-left: 1em !important;
	padding-top: 0 !important;
} */

/* El icono no debe empujar el contenido ni cambiar el ancho */
.woocommerce a.button.added::after,
.woocommerce button.button.added::after,
.woocommerce input.button.added::after {
    margin-left: 0 !important;
    opacity: 1 !important;
    position: absolute !important;
}
/* Mantén el mismo tamaño siempre */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    transition: none !important;
    padding: 0.3em 1em !important;
    /* border: 2px solid transparent !important; */
}

.woocommerce a.button.added,
.woocommerce button.button.added,
.woocommerce input.button.added {
    padding: 0.3em 1em !important;
    /* border: 2px solid transparent !important; */
}
/* Desactiva el cambio de contenido */
.woocommerce a.button::after,
.woocommerce button.button::after,
.woocommerce input.button::after {
    display: none !important;
    content: none !important;
}



/* ------------------------------------- */

.added-feedback-message {
    position: absolute;
    top: 100%; /* Colocar encima del botón */
    /* right: 0; */
    padding: 3px 8px;
    background-color: #8cc63f; /* Color de éxito de WC */
    color: white;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0;
    /* transform: translateY(10px); */
    transition: all 0.3s ease;
    /* Evitar que ocupe espacio si no está visible */
    pointer-events: none;
}

/* Animación de entrada (mostrado por JS/jQuery.fadeIn) */
.added-feedback-message.added-success {
    opacity: 1;
    transform: translateY(-5px);
}

.added_to_cart.wc-forward {
	display: none !important;
}
