/*
 * player.css
 * Extraido de los estilos que el snippet original (wf-videos-en-dfg.js)
 * inyectaba en runtime via <style> + textContent. Mismo CSS, ahora como
 * archivo real versionado por filemtime() — más fácil de mantener/depurar
 * y el navegador puede cachearlo igual que cualquier otra hoja de estilos.
 */

article.dp-dfg-item .dp-dfg-header.entry-header h4.entry-title {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	overflow: hidden !important;
}
article.dp-dfg-item p.dp-dfg-custom-field.dp-dfg-cf-descripcion_del_plato span.dp-dfg-custom-field-value {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 4 !important;
	overflow: hidden !important;
}
.dp-dfg-image { position: relative !important; }
.dp-dfg-image video.video-plato-raw {
	display: block !important;
	cursor: pointer !important;
	object-fit: cover !important;
	width: 100% !important;
	height: 200px !important;
	background: #000 !important;
	border: 1px solid black !important;
	border-radius: 10px !important;
	/*
	 * Bug conocido de Android Chrome/WebView en hardware de gama media/baja:
	 * un <video> autoplay puede quedar reproduciendose de verdad (currentTime
	 * avanza, confirmado con el heartbeat de ?wfdebug=1) pero la pantalla
	 * sigue mostrando el primer frame congelado hasta que algo fuerza un
	 * repintado (mover el mouse, hacer scroll...) -> parece que "solo
	 * funciona con hover", pero el video nunca dejo de reproducirse. Forzar
	 * su propia capa de composicion GPU evita que dependa de un repintado
	 * externo del documento para mostrar el frame actual.
	 */
	transform: translateZ(0) !important;
	-webkit-transform: translateZ(0) !important;
	will-change: transform, opacity !important;
	backface-visibility: hidden !important;
}
.dp-dfg-image:has(video.video-plato-raw) .dp-dfg-featured-image { display: none !important; }

.wf-video-play-overlay {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 48px; height: 48px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .62);
	display: flex; align-items: center; justify-content: center;
	pointer-events: none;
	transition: opacity .25s ease;
	animation: wf-play-pulse 2.4s ease-in-out infinite;
}
@keyframes wf-play-pulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.25); }
	50%      { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

.dp-dfg-image:not(:has(video)) .dp-dfg-featured-image:not([data-kb-ocultada]) {
	display: block !important;
	cursor: pointer !important;
}
.dp-dfg-item video:hover,
.dp-dfg-item .dp-dfg-featured-image:hover {
	opacity: .9;
	transform: scale(1.02);
	transition: all .3s ease;
}
.wf-contenedor-video-oculto { display: none !important; }

body.mfp-open { overflow: hidden !important; position: fixed !important; width: 100% !important; }

.wf-pp-panel::-webkit-scrollbar { width: 3px; }
.wf-pp-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.wf-pp-tab:hover { opacity: .85 !important; }
.wf-pp-accordion-btn:hover { background: rgba(255,255,255,.28) !important; }
.wf-pp-close:hover { background: rgba(255,255,255,.18) !important; transform: scale(1.06) !important; }
.wf-pp-close:active { transform: scale(1.02) !important; }
.wf-pp-close:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.4) !important; outline: none !important; }

.wf-pp-media img {
	width: 100% !important; height: 100% !important; object-fit: cover !important;
	position: absolute !important; top: 0 !important; left: 0 !important;
}

.wf-pp-pedidos .wf-list-bottom { background: transparent !important; padding: 0 !important; margin: 0 !important; border: none !important; }
.wf-pp-pedidos .price,
.wf-pp-pedidos .woocommerce-Price-amount,
.wf-pp-pedidos [class*="price"] { color: #fff !important; font-weight: 600 !important; }
.wf-pp-pedidos button,
.wf-pp-pedidos .button,
.wf-pp-pedidos [type="submit"] { border-radius: 8px !important; cursor: pointer !important; }

.wf-pp-pedidos .variations { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; width: 100% !important; border: none !important; }
.wf-pp-pedidos .variations tr,
.wf-pp-pedidos .variations tbody { display: contents !important; }
.wf-pp-pedidos .variations td,
.wf-pp-pedidos .variations th { display: block !important; padding: 0 !important; border: none !important; }
.wf-pp-pedidos [class*="variation"]:not(button):not(input):not(select) {
	display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important;
	list-style: none !important; padding: 0 !important; margin: 0 !important;
}

/* Estilos exactos del shortcode [pedidos_dinamico] copiados del loop */
.wf-pp-pedidos .opciones-precio {
	display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important;
	margin-bottom: 8px !important; border-radius: 5px !important; background: transparent !important; width: 100% !important;
}
.wf-pp-pedidos .opcion-precio { margin: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: 3px !important; background: transparent !important; }
.wf-pp-pedidos .opcion-precio label {
	border: 1px solid #e0e0e0 !important; border-radius: 8px !important; text-align: center !important;
	line-height: 1.3 !important; font-weight: 500 !important; color: #fff !important; width: 100% !important;
	box-sizing: border-box !important; display: flex !important; align-items: center !important; justify-content: center !important;
	cursor: pointer !important; padding: 5px !important; transition: background 0.3s !important; font-size: 18px !important;
	background: transparent !important; margin: 0 !important; gap: 2px !important;
}
.wf-pp-pedidos .opcion-precio input[type="radio"] {
	display: inline-block !important; flex-shrink: 0 !important; width: 14px !important; height: 14px !important;
	margin: 0 !important; accent-color: #fff !important; cursor: pointer !important;
}
.wf-pp-pedidos .opcion-precio span { flex-shrink: 0 !important; white-space: nowrap !important; }
.wf-pp-pedidos .opcion-precio .separador { margin: 0 !important; padding: 0 !important; }
.wf-pp-pedidos .label-precio { margin-right: 0 !important; min-width: 0 !important; }
.wf-pp-pedidos .opcion-precio label:has(input[type="radio"]:checked) { background: rgba(255,255,255,.15) !important; border-color: #fff !important; }

.wf-pp-abar { display: flex; align-items: center; }
.wf-pp-abar .alergenos-toggle-btn { font-size: 11px !important; padding: 5px 9px !important; white-space: nowrap !important; }
