/**
 * Combos 2026 — ventana para elegir presentaciones al agregar un combo (home y tienda).
 * Las opciones viven ocultas dentro de cada tarjeta ([data-opciones]) y combos-2026.js las
 * copia a esta ventana. Todo con selectores reforzados: el tema viejo le mete estilos propios
 * a button, select, h3 y listas.
 */

.mps-combo-opciones[hidden] { display: none !important; }

html.mps-combo-lock, html.mps-combo-lock body { overflow: hidden; }
/* La burbuja de chat del sitio (z-index 9999) taparía el botón de la ventana. */
html.mps-combo-lock .wpsr-fm-chat-wrapper { display: none !important; }

.mps-combo-modal {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 600;
	display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 20px;
}
.mps-combo-modal[hidden] { display: none; }
.mps-combo-modal-velo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(11,11,11,0.64); animation: mps-combo-fade .2s ease both; }
.mps-combo-modal-caja {
	position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; align-items: stretch; gap: 14px;
	padding: 30px 30px 26px; background: #FFFFFF; color: #111111;
	border-top: 3px solid #C73D2C; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
	animation: mps-combo-sube .28s cubic-bezier(.2,.7,.25,1) both;
}
@keyframes mps-combo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mps-combo-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.mps-2026 .mps-combo-modal-x {
	-webkit-appearance: none; appearance: none; position: absolute; top: 12px; right: 12px;
	display: flex; flex-direction: row; align-items: center; justify-content: center;
	width: 40px; height: 40px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	background: #F5F4F2; border: 0; border-radius: 2px; box-shadow: none; cursor: pointer;
	color: #111111; font-size: 20px; font-weight: 700; line-height: 1; text-align: center;
}
.mps-2026 .mps-combo-modal-x:hover { background: #E4E2E0; color: #111111; }
.mps-combo-modal-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #C73D2C; }
.mps-2026 .mps-combo-modal-titulo { margin: -6px 48px 4px 0; font-size: 24px; line-height: 1.05; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; color: #111111; }

.mps-2026 .mps-combo-op-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; border-top: 1px solid #F0EFED; }
.mps-2026 .mps-combo-op { list-style: none; margin: 0; padding: 12px 0; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center; border-bottom: 1px solid #F0EFED; }
.mps-combo-op-img { display: block; width: 60px; height: 60px; border: 1px solid #F0EFED; border-radius: 4px; background: #FFFFFF; overflow: hidden; }
.mps-2026 .mps-combo-op-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 4px; }
.mps-combo-op-info { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.mps-combo-op-nombre { font-size: 13px; font-weight: 700; line-height: 1.25; text-transform: uppercase; color: #111111; overflow-wrap: anywhere; }
.mps-combo-op-unica { font-size: 13px; font-weight: 600; color: #6B6762; }
.mps-2026 .mps-combo-op-sel {
	-webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; height: 42px; margin: 0; padding: 0 32px 0 12px;
	border: 1px solid #E4E2E0; border-radius: 2px; box-shadow: none; background-color: #FFFFFF; color: #111111;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%23111111'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 8px 5px;
	font-size: 14px; font-weight: 600; line-height: normal; text-overflow: ellipsis; cursor: pointer;
}
.mps-2026 .mps-combo-op-sel:focus-visible, .mps-2026 .mps-combo-modal-x:focus-visible { outline: 2px solid #C73D2C !important; outline-offset: 1px; }

.mps-combo-modal-pie { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 4px; }
.mps-combo-modal-total { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mps-combo-modal-total > span { width: 100%; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #6B6762; }
.mps-combo-modal-total b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: #111111; line-height: 1; }
.mps-combo-modal-total del { font-size: 14px; color: #8A8782; text-decoration: line-through; }
.mps-combo-modal-total i { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #C73D2C; }
.mps-combo-modal-total [hidden] { display: none; }
.mps-2026 .mps-combo-modal-ok {
	-webkit-appearance: none; appearance: none;
	display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%; min-width: 0; height: 54px; margin: 0; padding: 0 16px;
	background: #C73D2C; color: #FFFFFF; border: 0; border-radius: 2px; box-shadow: none; cursor: pointer;
	font-size: 13px; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em; text-align: center;
	transition: background-color .15s ease;
}
.mps-2026 .mps-combo-modal-ok:hover { background: #B23425; color: #FFFFFF; }
.mps-2026 .mps-combo-modal-ok:focus-visible { outline: 2px solid #111111 !important; outline-offset: 2px; }
.mps-2026 .mps-combo-modal-ok[disabled] { background: #111111; cursor: progress; }
.mps-combo-modal-aviso { margin: 0; font-size: 12.5px; line-height: 1.45; color: #B23425; font-weight: 600; }
.mps-combo-modal-aviso:empty { display: none; }
/* Mientras agrega, la X y el velo no cierran (el JS lo impide): que se note. */
.mps-combo-modal-ocupado .mps-combo-modal-x, .mps-combo-modal-ocupado .mps-combo-modal-velo { cursor: progress; }
.mps-combo-modal-caja:focus { outline: none; }

/* Teléfono: hoja inferior. 16px en los select: con menos, iOS hace zoom al abrirlos. */
@media (max-width: 600px) {
	.mps-combo-modal { align-items: flex-end; padding: 0; }
	.mps-combo-modal-caja {
		max-width: none; max-height: 88vh; border-radius: 12px 12px 0 0; padding: 26px 18px 20px;
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		animation-name: mps-combo-hoja;
	}
	@keyframes mps-combo-hoja { from { transform: translateY(100%); } to { transform: none; } }
	.mps-2026 .mps-combo-modal-titulo { font-size: 20px; }
	.mps-2026 .mps-combo-op-sel { height: 46px; font-size: 16px; font-weight: 500; }
}

/* Cualquier pantalla táctil (también teléfonos en horizontal): 16px o iOS hace zoom al abrir el select. */
@media (pointer: coarse) {
	.mps-2026 .mps-combo-op-sel { height: 46px; font-size: 16px; font-weight: 500; }
}

@media (prefers-reduced-motion: reduce) {
	.mps-combo-modal-velo, .mps-combo-modal-caja { animation: none; }
}
