/**
 * Plantilla "Reviews list" (reviews-list.php): /reviews/products/ y
 * /reviews/installation/. Figma "Product Reviews" (APPROVED).
 *
 * Solo CSS sobre el contenido que ya hay: cabecera de sección (campos
 * pre_title_2 / title_2) y, en la variante `--product`, el DOM del widget de
 * Stamped (#stamped-reviews-widget). No se toca el HTML ni hay JS. La variante
 * `--installation` (GuildQuality) sigue sin maquetar.
 *
 * Contenedor como el resto de páginas interiores (1600px de contenido,
 * content-box, + padding lateral 3%). Selectores de clase directos sobre
 * <p>/<h2>: el tema padre fija font-size/margin en p y pone los h2 en
 * mayúsculas. Stamped lleva CSS propio con !important en varios sitios: por
 * eso los selectores van con el id del widget y algún !important.
 */

.akx-reviews-list__section {
	background: #FFFFFF;
}

.akx-reviews-list__container {
	box-sizing: content-box;
	max-width: 1600px;
	margin: 0 auto;
	padding: 48px 3%;
}

@media (min-width: 1200px) {
	.akx-reviews-list__container {
		padding-block: 80px;
	}
}

.akx-reviews-list__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
}

.akx-reviews-list__eyebrow {
	margin: 0;
	font: 700 12px/16px 'Jost', sans-serif;
	text-transform: uppercase;
	color: #2B497B;
}

.akx-reviews-list__title {
	max-width: 600px;
	margin: 0;
	font: 700 32px/40px 'Jost', sans-serif;
	text-transform: none;
	color: #141B4D;
}

/* ---------- Variante product: widget de Stamped ---------- */

/* Stamped inyecta `#stamped-reviews-widget[data-widget-type="full-page"]
   .stamped-widget-buttons { display: block !important }`: hace falta más
   especificidad y !important (mismo recurso que el tema padre). Se oculta la
   barra de pestañas porque "Site Reviews" (full-page-nps, reviews de tienda)
   no devuelve datos para esta cuenta y vacía el widget al pulsarla. */
.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-widget-buttons {
	display: none !important;
}
.akx-reviews-list__section--product .stamped-reviews-title{
	display: none !important;
}

/* El widget trae `max-width: 1200px` y margen automático: ocupa el ancho del contenedor. */
.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* Resumen "★★★★★ Based on N Reviews" como rating badge (Figma), alineado a la derecha
   y bajo la cabecera de sección. */
.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-widget-title {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	margin: 0 0 24px auto;
	padding: 12px 22px 12px 20px;
	background: #F1F0EF;
	border-radius: 10px;
	font: 400 14px/22px 'Jost', sans-serif;
	text-align: left;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-widget-title .stamped-widget-stars,
.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-widget-title .stamped-widget-text {
	margin: 0;
	font-family: 'Jost', sans-serif;
	color: #141B4D !important;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-widget-title .stamped-fa {
	font-size: 13px;
	color: #141B4D;
}

/* Lista: 3 columnas (escritorio), 2 (tablet), 1 (móvil), gap 20/24/16. */
.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}

@media (max-width: 1199px) {
	.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-wrapper {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
}

/* Tarjeta: caja con borde y radio del Figma. Columna con `order` (sin tocar el
   HTML): producto (banda gris), estrellas, texto, fotos, autor y fecha. */
.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-review-card {
	display: flex !important;
	flex-direction: column;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 20px 20px !important;
	float: none !important;
	background: #FFFFFF;
	border: 1px solid #CDCBCA !important;
	border-radius: 16px !important;
	overflow: hidden;
	text-align: left;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-review-card .stamped-products-reviews-title {
	order: 0;
	margin: 0 -20px 18px !important;
	padding: 12px 20px !important;
	background: #F1F0EF;
	font: 400 12px/16px 'Jost', sans-serif;
	font-style: normal;
	color: #141B4D;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-image {
	display: none;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-rating {
	order: 1;
	display: flex;
	align-items: center;
	gap: 3px;
	margin-bottom: 10px;
	color: #141B4D !important;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-rating .stamped-fa {
	font-size: 13px;
	color: #141B4D !important;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-message {
	order: 2;
	margin-bottom: 10px;
	font: 400 14px/22px 'Jost', sans-serif;
	color: #404040 !important;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-message-image-block {
	order: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-message-image-block img {
	width: 92px;
	height: 70px;
	object-fit: cover;
	border-radius: 8px;
}

/* Autor + "Verified Buyer" (pastilla azul clara), empujado al fondo. */
.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-author {
	order: 4;
	margin-top: auto;
	font: 700 16px/24px 'Jost', sans-serif;
	color: #141B4D !important;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-author .stamped-verified-label {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 5px 10px;
	background: #CEE3F5;
	border-radius: 999px;
	font: 400 12px/16px 'Jost', sans-serif;
	color: #141B4D !important;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-date {
	order: 5;
	float: none !important;
	font: 400 12px/16px 'Jost', sans-serif;
	text-align: left;
	color: #63666A;
}

.akx-reviews-list__section--product #stamped-reviews-widget[data-widget-type] .stamped-reviews-location {
	display: none;
}

/* ---------- Banda "Prefer to install it yourself?" (antes del footer) ---------- */

.akx-reviews-list__conversion {
	background: #CEE3F5;
}

.akx-reviews-list__container--conversion {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-block: 56px;
}

@media (min-width: 900px) {
	.akx-reviews-list__container--conversion {
		padding-block: 72px;
	}
}

.akx-reviews-list__conv-eyebrow {
	margin: 0;
	font: 700 12px/16px 'Jost', sans-serif;
	text-transform: uppercase;
	color: #CB333B;
}

.akx-reviews-list__conv-title {
	margin: 0;
	font: 700 32px/40px 'Jost', sans-serif;
	text-transform: none;
	color: #141B4D;
}

.akx-reviews-list__conv-description {
	max-width: 640px;
	margin: 0;
	font: 400 18px/28px 'Jost', sans-serif;
	color: #404040;
}

.akx-reviews-list__button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin-top: 10px;
	padding: 14px 32px;
	background: #CB333B;
	border-radius: 10px;
	font: 600 18px/24px 'Jost', sans-serif;
	color: #FFFFFF;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.akx-reviews-list__button:hover {
	background: #A8272E;
	color: #FFFFFF;
}

.akx-reviews-list__button:focus-visible {
	outline: 2px solid #141B4D;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.akx-reviews-list__button {
		transition: none;
	}
}

/* ---------- Variante installation: embed de GuildQuality ---------- */

/* El embed trae su propia caja gris y tipografía Helvetica, con !important en casi
   todo (`.gq-embed .gq-embed_x { ... !important }`): se neutraliza y se reorganiza
   con grid sobre su propio DOM (.gq-embed > header + reviews), de ahí el id y los
   !important propios. */
.akx-reviews-list__section--installation #GQembeddedreview {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 20px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: 'Jost', sans-serif !important;
}

.akx-reviews-list__section--installation #GQembeddedreview * {
	font-family: 'Jost', sans-serif !important;
	font-style: normal !important;
}

@media (max-width: 1199px) {
	.akx-reviews-list__section--installation #GQembeddedreview {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 24px !important;
	}
}

@media (max-width: 767px) {
	.akx-reviews-list__section--installation #GQembeddedreview {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 16px !important;
	}
}

/* Resumen: nombre oculto; estrellas + "N Reviews" como rating badge, a la derecha. */
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_header {
	grid-column: 1 / -1 !important;
	justify-self: end !important;
	box-sizing: border-box !important;
	margin: 0 0 4px !important;
	padding: 12px 22px 12px 20px !important;
	background: #F1F0EF !important;
	border-radius: 10px !important;
	text-align: left !important;
	text-decoration: none !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_title {
	display: none !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_header > div {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_rating {
	display: block !important;
	width: auto !important;
	height: 16px !important;
	margin: 0 !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_count {
	width: auto !important;
	margin: 0 !important;
	white-space: nowrap !important;
	font: 400 14px/22px 'Jost', sans-serif !important;
	color: #141B4D !important;
}

/* Tarjeta: caja con borde y radio 16; columna con `order`: estrellas (+ píldora),
   texto y, al fondo, nombre y localización/fecha. */
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_review {
	display: flex !important;
	min-width: 0 !important;
	margin: 0 !important;
	text-decoration: none !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card {
	box-sizing: border-box !important;
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 24px !important;
	background: #FFFFFF !important;
	border: 1px solid #CDCBCA !important;
	border-radius: 16px !important;
	box-shadow: none !important;
}

@media (min-width: 1200px) {
	.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card {
		min-height: 264px !important;
	}
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-stars {
	order: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	margin: 0 !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-stars-rating {
	display: block !important;
	width: auto !important;
	height: 16px !important;
}

/* Píldora "GuildQuality Verified" (no existe en el DOM del embed: se pinta por CSS). */
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-stars::after {
	content: 'GuildQuality Verified' !important;
	padding: 5px 10px !important;
	background: #F1F0EF !important;
	border-radius: 999px !important;
	font: 400 12px/16px 'Jost', sans-serif !important;
	color: #141B4D !important;
	white-space: nowrap !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-comment,
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-comment-title {
	order: 2 !important;
	margin: 0 !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-comment {
	font: 400 16px/24px 'Jost', sans-serif !important;
	color: #404040 !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-comment-title {
	font: 700 14px/22px 'Jost', sans-serif !important;
	text-transform: none !important;
	color: #141B4D !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-comment span {
	color: #CB333B !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-header {
	order: 3 !important;
	margin: auto 0 0 !important;
	padding: 0 !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-title {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
	margin: 0 !important;
	font: 700 16px/24px 'Jost', sans-serif !important;
	color: #141B4D !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-title * {
	margin: 0 !important;
	font: inherit !important;
	color: inherit !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-name,
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-title h3 {
	font: 700 16px/24px 'Jost', sans-serif !important;
	color: #141B4D !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card-meta {
	font: 400 12px/16px 'Jost', sans-serif !important;
	color: #63666A !important;
}

/* Botón final del embed ("Read more reviews"): enlace rojo a ancho completo, como el CTA del Figma
   ("Read more installation reviews on GuildQuality →"). Solo se puede añadir texto por CSS. */
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_cta {
	grid-column: 1 / -1 !important;
	display: block !important;
	margin: 0 !important;
	padding: 8px 0 0 !important;
	background: transparent !important;
	text-align: left !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_cta-button {
	display: inline !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: 400 16px/24px 'Jost', sans-serif !important;
	color: #CB333B !important;
	text-decoration: none !important;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_cta-button::after {
	content: ' on GuildQuality \2192';
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_cta-button:hover {
	text-decoration: underline !important;
}

/* Hover de la tarjeta: las cajas grises del Figma (fondo #F1F0EF, sin borde) son el estado hover. */
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card {
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_review:hover .gq-embed_card,
.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_review:focus-visible .gq-embed_card {
	background: #F1F0EF !important;
	border-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
	.akx-reviews-list__section--installation #GQembeddedreview .gq-embed_card {
		transition: none;
	}
}

/* ---------- Sección "Customer video stories" (widget de Boast.io) ---------- */

.akx-reviews-list__video {
	background: #F1F0EF;
}

.akx-reviews-list__container--video {
	padding-block: 56px;
}

@media (min-width: 1200px) {
	.akx-reviews-list__container--video {
		padding-block: 72px 80px;
	}
}

.akx-reviews-list__video-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.akx-reviews-list__video-head .akx-reviews-list__head {
	flex: 1 1 320px;
	min-width: 0;
	margin-bottom: 0;
}

.akx-reviews-list__video-head .akx-reviews-list__badge {
	flex: none;
}

/* Provider badge ("Video testimonials · Boast.io") */
.akx-reviews-list__badge {
	box-sizing: border-box;
	margin: 0;
	padding: 12px 22px 12px 20px;
	background: #FFFFFF;
	border: 1px solid #CDCBCA;
	border-radius: 10px;
	font: 400 14px/22px 'Jost', sans-serif;
	color: #141B4D;
}

/* Tarjetas del widget de Boast (carrusel Swiper, sin Shadow DOM): la caja blanca es
   `.swiper-slide`. Se ajusta al Figma: radio 16, borde, sombra suave, póster 16:9 con
   velo azul y play de 56px, cuerpo con nombre en negrita y descripción debajo, y puntos de paginación. */
.akx-reviews-list__video .swiper-slide {
	overflow: hidden !important;
	background: #FFFFFF !important;
	border: 1px solid #CDCBCA !important;
	border-radius: 16px !important;
	box-shadow: 0 4px 14px rgba(20, 27, 77, 0.07) !important;
}

.akx-reviews-list__video .response-carousel-card,
.akx-reviews-list__video .response-carousel-card * {
	font-family: 'Jost', sans-serif !important;
}

.akx-reviews-list__video .response-carousel-card__preview figure {
	position: relative;
}

.akx-reviews-list__video .response-carousel-card__preview figure::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(20, 27, 77, 0.3);
	pointer-events: none;
}

.akx-reviews-list__video .response-carousel-card__play {
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 56px !important;
	height: 56px !important;
	background: rgba(20, 27, 77, 0.62) !important;
	border: 2px solid rgba(255, 255, 255, 0.55) !important;
	border-radius: 50% !important;
}

.akx-reviews-list__video .response-carousel-card__play svg {
	width: 21px !important;
	height: 21px !important;
	margin-left: 2px;
}

.akx-reviews-list__video .response-carousel-card__play svg path {
	fill: #FFFFFF !important;
}

.akx-reviews-list__video .response-carousel-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 18px !important;
}

/* En el Figma la tarjeta no lleva estrellas. */
.akx-reviews-list__video .response-carousel-card__rating,
.akx-reviews-list__video .response-carousel-card__headline:empty {
	display: none !important;
}

/* Nombre arriba (Figma "Customer Name") y la descripción debajo; basta con `order`
   porque el cuerpo es un flex en columna. */
.akx-reviews-list__video .response-carousel-card__profile {
	order: 1;
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 24px !important;
	color: #141B4D !important;
}

.akx-reviews-list__video .response-carousel-card__feedback {
	order: 2;
	margin: 0 !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 16px !important;
	color: #404040 !important;
}

/* Puntos de paginación: 8px grises, el activo es una píldora navy de 22px (alineados a la izquierda). */
.akx-reviews-list__video .swiper-pagination {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	text-align: left;
}

.akx-reviews-list__video .swiper-pagination-bullet {
	width: 8px !important;
	height: 8px !important;
	margin: 0 !important;
	background: #CDCBCA !important;
	border-radius: 999px !important;
	opacity: 1 !important;
}

.akx-reviews-list__video .swiper-pagination-bullet-active {
	width: 22px !important;
	background: #141B4D !important;
}

.akx-reviews-list__video .response-carousel-card__profile * {
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}

.akx-reviews-list__video .response-carousel-card__feedback * {
	margin: 0 !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}
