/**
 * Componente: ayuda con las medidas (.akx-sp-sizing)
 *
 * Figma "Sizing help (live copy + sizing video)": banda gris #F1F0EF con título, texto,
 * vídeo 16:9 (póster, velo azul y botón de play blanco) y enlace "Sizing Guides →".
 * Contenido de 760px máx. de ancho.
 *
 * Dos tipos de vídeo: el propio del producto (<video> de la descripción corta de
 * WooCommerce, con controles nativos) o, si no tiene, el de Wistia general que abre
 * su popover (mismo patrón que /sizing-how-to/: Wistia envuelve el enlace en un div
 * relativo de altura 0, que se fuerza a static para centrar el play).
 */

.akx-sp-sizing {
	background: var(--akx-sp-grey);
}

.akx-sp-sizing__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 760px;
}

.akx-sp .akx-sp-sizing__text {
	margin: 0;
	font: 400 16px/24px 'Jost', sans-serif;
	color: var(--akx-sp-text);
}

.akx-sp-sizing__video {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--akx-sp-navy) center / cover no-repeat;
	border-radius: 12px;
}

/* ---------- Vídeo propio del producto ---------- */

.akx-sp-sizing__video--native .wp-video,
.akx-sp-sizing__video--native .mejs-container {
	width: 100% !important;
	height: 100% !important;
	margin: 0;
}

.akx-sp-sizing__video--native video,
.akx-sp-sizing__video--native iframe {
	display: block;
	width: 100% !important;
	height: 100% !important;
	border: 0;
	background: #000000;
	object-fit: cover;
}

/* ---------- Vídeo de Wistia (póster + velo + play) ---------- */

.akx-sp-sizing__video--wistia::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(20, 27, 77, 0.22);
	pointer-events: none;
}

.akx-sp .akx-sp-sizing__embed {
	position: absolute !important;
	inset: 0;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
}

.akx-sp .akx-sp-sizing__embed .wistia_click_to_play {
	position: static !important;
}

.akx-sp .akx-sp-sizing__play-link {
	position: absolute;
	inset: 0;
	display: block;
	text-decoration: none;
}

.akx-sp-sizing__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
	background: #FFFFFF;
	border-radius: 50%;
}

@media (min-width: 640px) {
	.akx-sp-sizing__play {
		width: 72px;
		height: 72px;
	}
}

.akx-sp-sizing__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	transform: translate(-30%, -50%);
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent var(--akx-sp-navy);
}

@media (min-width: 640px) {
	.akx-sp-sizing__play::after {
		border-width: 8px 0 8px 13px;
	}
}

.akx-sp .akx-sp-sizing__play-link:focus-visible .akx-sp-sizing__play,
.akx-sp .akx-sp-sizing__play-link:hover .akx-sp-sizing__play {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}
