/* ============================================================
   Guía de talles en pop-up (2026-11-05) · la arma static/js/guia-talles.js
   Misma estética que la ficha: Creato, negro sobre blanco, bordes rectos
   #DADADA, etiquetas en mayúscula de 11px. Todo bajo .tw-gt para no
   pisar nada del theme.
   ============================================================ */
.tw-gt {
	--tw-gt-linea: #DADADA;
	--tw-gt-gris: #7C7C7C;
	--tw-gt-suave: #F3F3F3;
	font-family: 'Creato Display', sans-serif;
	color: #000;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
}

.tw-gt * { box-sizing: border-box; }

/* La ficha centra los textos y les pone display:flex a los p */
.tw-gt p, .tw-gt label, .tw-gt th { text-align: left !important; }
.tw-gt p { display: block !important; }

.tw-gt button { font-family: inherit; cursor: pointer; }

/* Letra de la medida (A/B/C): la misma en la tabla, la silueta y el campo */
.tw-gt-letra {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 1px solid #000;
	background: #fff;
	color: #000;
	font-style: normal;
	font-size: 9.5px;
	font-weight: 700;
	line-height: 1;
}

/* ---- 1 · Encabezado y tabla ---- */
.tw-gt-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 14px;
}

.tw-gt-prenda {
	padding: 6px 10px;
	background: #000;
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tw-gt-unidad { color: var(--tw-gt-gris); font-size: 12px; }

.tw-gt-t {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin: 0 0 22px;
}

.tw-gt-t th,
.tw-gt-t td { border-bottom: 1px solid #EDEDED; }

.tw-gt-t thead th {
	padding: 8px 2px;
	border-bottom: 1px solid #000;
	text-align: center !important;
	line-height: 1.1;
	transition: background .2s, color .2s;
}

.tw-gt-t .tw-gt-t-esq { width: 31%; }

.tw-gt-t-talle { display: block; font-size: 13px; font-weight: 700; }

.tw-gt-t thead small { display: block; margin-top: 2px; font-size: 10px; color: var(--tw-gt-gris); }

.tw-gt-t tbody th {
	padding: 11px 4px 11px 0;
	font-weight: 400;
	font-size: 12.5px;
	color: #333;
}

.tw-gt-t tbody th .tw-gt-letra { margin-right: 6px; vertical-align: -3px; }

.tw-gt-t td {
	padding: 11px 2px;
	text-align: center;
	font-size: 13px;
	white-space: nowrap;
	transition: background .2s;
}

/* 6 talles (pantalones): números más chicos para que entre sin scroll */
.tw-gt-t--6 .tw-gt-t-esq { width: 23%; }
.tw-gt-t--6 td { font-size: 11px; }
.tw-gt-t--6 tbody th { font-size: 11.5px; }
.tw-gt-t--6 tbody th .tw-gt-letra { display: none; }

/* Tu talle: la columna entera */
.tw-gt-t td.tu { background: var(--tw-gt-suave); font-weight: 700; }
.tw-gt-t thead th.tu { background: #000; color: #fff; }
.tw-gt-t thead th.tu small { color: #BDBDBD; }

/* ---- 2 · ¿Cuál es tu talle? ---- */
.tw-gt-calc { background: var(--tw-gt-suave); padding: 16px; }

.tw-gt p.tw-gt-kicker {
	margin: 0 0 14px !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tw-gt-calc-grid {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 16px;
	align-items: start;
}

.tw-gt-fig { position: relative; }

.tw-gt-fig img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply; /* el blanco del dibujo toma el gris del fondo */
}

.tw-gt-linea {
	position: absolute;
	left: 0;
	right: 0;
	height: 0;
	border-top: 2px solid transparent;
	font-style: normal;
	transition: border-color .2s;
}

.tw-gt-linea b {
	position: absolute;
	left: -6px;
	top: -9px;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #000;
	font-size: 9.5px;
	font-weight: 700;
	transition: background .2s, color .2s;
}

.tw-gt-linea.on { border-top-color: #000; }
.tw-gt-linea.on b { background: #000; color: #fff; }

.tw-gt-campos { display: flex; flex-direction: column; gap: 14px; }

.tw-gt-campo { display: block; margin: 0; }

.tw-gt-campo-tit {
	display: flex !important;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tw-gt-campo-como {
	display: block !important;
	margin: 3px 0 6px;
	color: #555;
	font-size: 12px;
	line-height: 1.3;
}

.tw-gt-campo-box {
	display: flex !important;
	align-items: center;
	height: 42px;
	background: #fff;
	border: 1px solid var(--tw-gt-linea);
	padding: 0 12px;
}

.tw-gt-campo-box:focus-within { border-color: #000; }

.tw-gt-campo input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 100%;
	border: 0 !important;
	outline: 0;
	padding: 0 !important;
	margin: 0;
	background: transparent;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px; /* 16px: iOS no hace zoom al enfocar */
	color: #000;
	-moz-appearance: textfield;
}

.tw-gt-campo input::-webkit-outer-spin-button,
.tw-gt-campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tw-gt-campo input::placeholder { color: #BDBDBD; }

.tw-gt-campo em { font-style: normal; color: var(--tw-gt-gris); font-size: 12px; margin-left: 6px; }

/* Resultado */
.tw-gt-res { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--tw-gt-linea); }

.tw-gt p.tw-gt-res-vacio { margin: 0 !important; color: var(--tw-gt-gris); font-size: 12px; }

.tw-gt-res-talle { display: flex; align-items: baseline; gap: 10px; animation: tw-gt-in .25s ease-out; }

@keyframes tw-gt-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.tw-gt-res-talle > span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tw-gt-res-talle b { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }

.tw-gt p.tw-gt-res-nota { margin: 6px 0 0 !important; color: #333; font-size: 12.5px; }

.tw-gt-elegir {
	display: block;
	width: 100%;
	height: 44px;
	margin-top: 12px;
	background: var(--pdp-v2-cta, #000);
	color: #fff;
	border: 0;
	border-radius: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tw-gt-elegir:hover { background: var(--pdp-v2-cta-hover, #333); }

.tw-gt-elegir:disabled { background: #fff; color: #000; border: 1px solid #000; cursor: default; }

.tw-gt p.tw-gt-pie { margin: 12px 0 0 !important; color: var(--tw-gt-gris); font-size: 11.5px; }

/* ---- En el pop-up: aire, porque el modal-body del theme viene sin padding ---- */
#size-guide-modal .tw-gt { padding: 6px 20px 28px; max-width: 520px; margin: 0 auto; }
