/* Lazuri Fit - panel publico "Encuentra tu talla". Diseño propio, no copia
   visualmente ninguna herramienta de referencia investigada. */

.lazuri-fit-launcher { margin: 14px 0; }

.lazuri-fit-open-btn {
	display: inline-block;
	width: 100%;
	max-width: 420px;
	padding: 0.85em 1.2em;
	background: #1d1a17;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}
.lazuri-fit-open-btn:hover,
.lazuri-fit-open-btn:focus-visible { background: #a3593f; }
.lazuri-fit-open-btn:focus-visible { outline: 3px solid #a3593f; outline-offset: 2px; }

.lazuri-fit-panel-backdrop {
	position: fixed; inset: 0; background: rgba(20, 18, 16, 0.5); z-index: 2147483000;
}

.lazuri-fit-panel {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: min(420px, 100vw);
	max-width: 100vw;
	background: #fff;
	z-index: 2147483001;
	box-shadow: -8px 0 30px rgba(0,0,0,0.2);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
}
.lazuri-fit-panel.is-open { transform: translateX(0); }

.lazuri-fit-panel__inner {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#lazuri-fit-panel-body { min-height: 0; }

/* Movil: panel inferior (bottom sheet) en vez de lateral, para no competir
   con el ancho reducido de la pantalla ni tapar controles del navegador. */
@media (max-width: 640px) {
	.lazuri-fit-panel {
		top: auto; left: 0; right: 0; bottom: 0; width: 100%;
		max-height: 88vh;
		border-radius: 16px 16px 0 0;
		transform: translateY(100%);
	}
	.lazuri-fit-panel.is-open { transform: translateY(0); }
}

/* Movil en horizontal: la altura visible es muy limitada; se prioriza que
   el contenido siga siendo desplazable dentro del panel sin desbordar la
   ventana visible ni cortar el pie con los botones. */
@media (max-width: 900px) and (orientation: landscape) {
	.lazuri-fit-panel { max-height: 96vh; }
	.lazuri-fit-panel__inner { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

.lazuri-fit-close-btn {
	align-self: flex-end;
	background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer;
	color: #6b645c; padding: 4px 8px; margin-bottom: 4px;
}
.lazuri-fit-close-btn:focus-visible { outline: 2px solid #a3593f; }

.lazuri-fit-step-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }

.lazuri-fit-field { margin-bottom: 14px; }
.lazuri-fit-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.lazuri-fit-field input {
	width: 100%; box-sizing: border-box; padding: 0.6em 0.7em; border: 1px solid #d8d2c8; border-radius: 6px; font-size: 1rem;
}
.lazuri-fit-field input:focus { outline: 2px solid #a3593f; border-color: #a3593f; }
.lazuri-fit-field-error { color: #a3242a; font-size: 0.78rem; margin-top: 4px; }
.lazuri-fit-field-help { color: #646970; font-size: 0.78rem; margin: 4px 0 0; }
.lazuri-fit-length-info { background: #f5f1ea; border-radius: 6px; padding: 10px 12px; font-size: 0.84rem; margin: 10px 0; }
.lazuri-fit-length-info em { color: #646970; font-style: normal; font-size: 0.76rem; }
.lazuri-fit-help-toggle { background: none; border: none; color: #a3593f; font-size: 0.78rem; padding: 0; cursor: pointer; text-decoration: underline; }

.lazuri-fit-segmented { display: flex; border: 1px solid #d8d2c8; border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.lazuri-fit-segmented button {
	flex: 1 1 0; min-width: 0; border: none; background: transparent; padding: 0.55em 0.4em; font-size: 0.82rem; cursor: pointer; color: #6b645c;
}
.lazuri-fit-segmented button.is-active { background: #1d1a17; color: #fff; }

.lazuri-fit-units-toggle { display: flex; gap: 6px; margin-bottom: 14px; font-size: 0.78rem; }
.lazuri-fit-units-toggle button { border: 1px solid #d8d2c8; background: #fff; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.lazuri-fit-units-toggle button.is-active { background: #1d1a17; color: #fff; border-color: #1d1a17; }

.lazuri-fit-btn {
	display: block; width: 100%; padding: 0.8em 1em; border: none; border-radius: 999px;
	font-weight: 700; font-size: 0.88rem; cursor: pointer; margin-top: 6px;
}
.lazuri-fit-btn-primary { background: #1d1a17; color: #fff; }
.lazuri-fit-btn-primary:hover { background: #a3593f; }
.lazuri-fit-btn-secondary { background: #fff; border: 1px solid #d8d2c8; color: #4a453f; }
.lazuri-fit-btn:focus-visible { outline: 3px solid #a3593f; outline-offset: 2px; }

.lazuri-fit-result-size { text-align: center; font-size: 2.2rem; font-weight: 800; margin: 4px 0; }
.lazuri-fit-result-meta { text-align: center; color: #6b645c; font-size: 0.85rem; margin-bottom: 12px; }
.lazuri-fit-explanation { background: #f7f4ef; border-radius: 8px; padding: 12px; font-size: 0.85rem; color: #4a453f; margin-bottom: 12px; }
.lazuri-fit-banner { border-radius: 8px; padding: 10px 12px; font-size: 0.85rem; margin-bottom: 12px; }
.lazuri-fit-banner--warn { background: #fdf1e3; color: #7a4a17; }
.lazuri-fit-banner--danger { background: #fbe7e5; color: #8a2f21; }

.lazuri-fit-between { display: flex; gap: 10px; margin-bottom: 12px; }
.lazuri-fit-between-card { flex: 1 1 0; min-width: 0; border: 2px solid #d8d2c8; border-radius: 8px; padding: 10px; text-align: center; }
.lazuri-fit-between-card.is-primary { border-color: #a3593f; background: #fbf1ec; }
.lazuri-fit-between-card__size { font-size: 1.2rem; font-weight: 800; }
.lazuri-fit-between-card__desc { font-size: 0.72rem; color: #6b645c; }

.lazuri-fit-group-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.lazuri-fit-group-options .lazuri-fit-btn { flex: 1 1 auto; min-width: 90px; }

.lazuri-fit-remember-note { font-size: 0.72rem; color: #8a8378; margin-top: 8px; }
.lazuri-fit-remember-note button { background: none; border: none; color: #a3593f; text-decoration: underline; cursor: pointer; padding: 0; font-size: inherit; }

@media (max-width: 360px) {
	.lazuri-fit-segmented button { font-size: 0.72rem; padding: 0.5em 0.2em; }
	.lazuri-fit-result-size { font-size: 1.8rem; }
}
