/*!
 * Softx Reviews And Videos
 */

.sxrv-block,
.sxrv-lb {
	--sxrv-accent: #6d28d9;
	--sxrv-accent-2: #db2777;
	--sxrv-ink: #0b1020;
	--sxrv-text: #374151;
	--sxrv-muted: #6b7280;
	--sxrv-line: rgba(11, 16, 32, .08);
	--sxrv-ease: cubic-bezier(.22, 1, .36, 1);
	box-sizing: border-box;
}
.sxrv-block *, .sxrv-lb * { box-sizing: border-box; }

/* Blocks sit flush; the Elementor container gap controls spacing.
   Several shortcodes in one text widget get a small gap between them. */
.sxrv-block { position: relative; width: 100%; max-width: 100%; margin: 0; clear: both; }
.sxrv-block + .sxrv-block,
p:has(> .sxrv-block) + p:has(> .sxrv-block) { margin-top: 14px; }

/* =========================================================================
 * EMPTY — no video / review / description: take up no space at all
 * ====================================================================== */

.sxrv-empty { display: none !important; }
.elementor-widget:has(.sxrv-empty):not(:has(.sxrv-block)),
.wpb_content_element:has(.sxrv-empty):not(:has(.sxrv-block)),
.wd-text-block:has(.sxrv-empty):not(:has(.sxrv-block)),
p:has(> .sxrv-empty):not(:has(.sxrv-block)) {
	display: none !important;
}

.sxrv-placeholder {
	padding: 10px 14px;
	font: 500 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #6b7280;
	text-align: center;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	background: #fafafa;
}

/* =========================================================================
 * VIDEO — full container width, 20px radius, autoplays
 * Desktop: wide frame (same height as before). Everything outside the
 * picture is one solid black, so it reads as a single clean surface.
 * ====================================================================== */

/* Never let a flex/grid parent squeeze the video (that made the next section overlap it) */
.sxrv-block,
.elementor-widget:has(.sxrv-block) { flex-shrink: 0 !important; }

.sxrv-video { container-type: inline-size; }

.sxrv-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: calc(100cqw * 9 / 16);
	overflow: hidden;
	border-radius: 20px;
	background: #000;
	isolation: isolate;
	transform: translateZ(0);
	box-shadow: 0 12px 30px -20px rgba(11, 16, 32, .55);
}
@supports not (aspect-ratio: 1 / 1) {
	.sxrv-video__frame { height: 0; padding-top: 56.25%; }
}
.sxrv-video--vertical .sxrv-video__frame { max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; height: calc(min(100cqw, 380px) * 16 / 9); }

.sxrv-video__stage {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	background: #000;
}

@media (min-width: 1025px) {
	.sxrv-video:not(.sxrv-video--vertical) .sxrv-video__frame {
		aspect-ratio: auto;
		height: calc(100cqw * .39375); /* same height as the earlier 70%-wide 16:9 video */
	}
}

.sxrv-video .sxrv-video__media {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #000;
	object-fit: contain;
}

/* Paused / ended → thumbnail + YouTube-red play button, exactly centred.
   A <div>, not a <button>, so theme button styles (grey backgrounds, hover colours) can't touch it. */
.sxrv-video .sxrv-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}
.sxrv-video.is-paused .sxrv-video__overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
.sxrv-video .sxrv-video__overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .35));
	pointer-events: none;
}
.sxrv-video .sxrv-video__thumb {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	object-fit: contain;
	background: #000;
	color: transparent;   /* never show alt text while loading */
	font-size: 0;
	transition: transform .8s var(--sxrv-ease);
}
.sxrv-video--vertical .sxrv-video__thumb { object-fit: cover; }
.sxrv-video .sxrv-video__overlay:hover .sxrv-video__thumb { transform: scale(1.03); }

.sxrv-video .sxrv-video__btn {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	color: #fff;
	background: #ff0000;
	box-shadow: 0 0 0 8px rgba(255, 255, 255, .18), 0 12px 30px -6px rgba(0, 0, 0, .6);
	transform: scale(.85);
	transition: transform .35s var(--sxrv-ease), background-color .2s;
}
.sxrv-video .sxrv-video__btn svg {
	display: block;
	width: 34px;
	height: 34px;
	margin: 0;
	fill: #fff;
	stroke: none;
}
.sxrv-video.is-paused .sxrv-video__btn { transform: scale(1); }
.sxrv-video .sxrv-video__overlay:hover .sxrv-video__btn,
.sxrv-video .sxrv-video__overlay:focus-visible .sxrv-video__btn { transform: scale(1.08); background: #e00000; }
.sxrv-video .sxrv-video__overlay:focus-visible .sxrv-video__btn { box-shadow: 0 0 0 4px #fff, 0 12px 30px -6px rgba(0, 0, 0, .6); }
@media (max-width: 767px) {
	.sxrv-video .sxrv-video__btn { width: 60px; height: 60px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 10px 24px -6px rgba(0, 0, 0, .6); }
	.sxrv-video .sxrv-video__btn svg { width: 28px; height: 28px; }
}

/* =========================================================================
 * DESCRIPTION
 * ====================================================================== */

.sxrv-about__icon {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	color: #fff;
	background: linear-gradient(135deg, var(--sxrv-accent), var(--sxrv-accent-2));
	box-shadow: 0 4px 10px -4px rgba(109, 40, 217, .6);
}
.sxrv-about__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767px) { .sxrv-about__icon { width: 22px; height: 22px; border-radius: 7px; } }

.sxrv-desc {
	padding: 18px 20px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--sxrv-line);
	box-shadow: 0 8px 24px -20px rgba(11, 16, 32, .4);
	color: var(--sxrv-text);
	font-size: 15px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}
.sxrv-desc > :first-child { margin-top: 0 !important; }
.sxrv-desc > :last-child { margin-bottom: 0 !important; }
.sxrv-desc p { margin: 0 0 .75em; }
.sxrv-desc h1, .sxrv-desc h2, .sxrv-desc h3,
.sxrv-desc h4, .sxrv-desc h5, .sxrv-desc h6 {
	margin: 1em 0 .4em;
	color: var(--sxrv-ink);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.sxrv-desc h1, .sxrv-desc h2 { font-size: 1.3em; }
.sxrv-desc h3 { font-size: 1.15em; }
.sxrv-desc h4, .sxrv-desc h5, .sxrv-desc h6 { font-size: 1em; }
.sxrv-desc strong, .sxrv-desc b { color: var(--sxrv-ink); }
.sxrv-desc a { color: var(--sxrv-accent); text-decoration: underline; text-underline-offset: 2px; }

.sxrv-desc ul { margin: 0 0 .8em; padding: 0; list-style: none; }
.sxrv-desc ul li { position: relative; margin: 0 0 .35em; padding-left: 22px; }
.sxrv-desc ul li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sxrv-accent), var(--sxrv-accent-2));
}
.sxrv-desc ol { margin: 0 0 .8em; padding-left: 1.3em; }
.sxrv-desc ol li { margin: 0 0 .35em; padding-left: 2px; }
.sxrv-desc ol li::marker { color: var(--sxrv-accent); font-weight: 700; }

.sxrv-desc img { max-width: 100%; height: auto; border-radius: 14px; }
.sxrv-desc iframe, .sxrv-desc video { max-width: 100%; border: 0; border-radius: 14px; }
.sxrv-desc blockquote {
	margin: 0 0 .8em;
	padding: 10px 14px;
	border-left: 3px solid var(--sxrv-accent);
	border-radius: 0 12px 12px 0;
	background: #faf7ff;
	font-style: normal;
}
.sxrv-desc table { width: 100%; margin: 0 0 .8em; border-collapse: separate; border-spacing: 0; border: 1px solid var(--sxrv-line); border-radius: 12px; overflow: hidden; font-size: .93em; }
.sxrv-desc th, .sxrv-desc td { padding: 8px 12px; border: 0; border-bottom: 1px solid var(--sxrv-line); text-align: left; }
.sxrv-desc tr:last-child th, .sxrv-desc tr:last-child td { border-bottom: 0; }
.sxrv-desc th { width: 35%; color: var(--sxrv-ink); font-weight: 600; background: #f9fafb; }
.sxrv-desc hr { margin: 1em 0; border: 0; border-top: 1px solid var(--sxrv-line); }

@media (max-width: 767px) {
	.sxrv-desc { padding: 14px 15px; border-radius: 16px; font-size: 14.5px; }
}

/* =========================================================================
 * REVIEW CAROUSEL — 5 columns desktop / 3 tablet / 2 mobile
 * ====================================================================== */

.sxrv-reviews {
	--cols: 5;
	--gap: 12px;
	min-width: 0;
	color: var(--sxrv-ink);
}
@media (max-width: 1024px) { .sxrv-reviews { --cols: 3; --gap: 10px; } }
@media (max-width: 767px)  { .sxrv-reviews { --cols: 2; --gap: 8px; } }

.sxrv-about__head,
.sxrv-reviews__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.sxrv-about .sxrv-about__title,
.sxrv-reviews .sxrv-reviews__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 19px;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -.015em;
	text-transform: none;
	color: inherit;
}
.sxrv-reviews__stars { font-size: 13px; letter-spacing: 1px; color: #f59e0b; }
.sxrv-reviews__count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 22px;
	padding: 0 8px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	color: #fff;
	background: linear-gradient(135deg, var(--sxrv-accent), var(--sxrv-accent-2));
}

.sxrv-reviews__nav { display: flex; gap: 6px; flex-shrink: 0; }
.sxrv-reviews .sxrv-arrow {
	all: unset;
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	color: var(--sxrv-ink);
	background: #fff;
	border: 1px solid var(--sxrv-line);
	box-shadow: 0 4px 12px -8px rgba(11, 16, 32, .4);
	transition: color .2s, background .2s, border-color .2s, opacity .2s;
}
.sxrv-reviews .sxrv-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sxrv-reviews .sxrv-arrow:hover:not([disabled]) {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, var(--sxrv-accent), var(--sxrv-accent-2));
}
.sxrv-reviews .sxrv-arrow:focus-visible { outline: 2px solid var(--sxrv-accent); outline-offset: 2px; }
.sxrv-reviews .sxrv-arrow[disabled] { opacity: .35; cursor: default; }

.sxrv-reviews .sxrv-reviews__track {
	display: flex;
	gap: var(--gap);
	margin: 0 -4px;
	padding: 4px 4px 10px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scroll-padding-inline: 4px;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
}
.sxrv-reviews .sxrv-reviews__track::-webkit-scrollbar { display: none; }
.sxrv-reviews .sxrv-reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.sxrv-reviews .sxrv-reviews__track.is-dragging a { pointer-events: none; }

.sxrv-reviews .sxrv-reviews__track > .sxrv-slide {
	flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}
.sxrv-reviews .sxrv-slide::before,
.sxrv-reviews .sxrv-slide::marker { content: none; display: none; }

.sxrv-reviews .sxrv-shot {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 16px;
	background: #f3f4f6;
	border: 1px solid var(--sxrv-line);
	box-shadow: 0 6px 16px -12px rgba(11, 16, 32, .45);
	cursor: zoom-in;
	text-decoration: none !important;
	transform: translateZ(0);
	transition: transform .4s var(--sxrv-ease), box-shadow .4s var(--sxrv-ease);
	-webkit-tap-highlight-color: transparent;
}
.sxrv-reviews .sxrv-shot .sxrv-shot__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: cover;
	object-position: top center;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform .7s var(--sxrv-ease);
}
@media (hover: hover) {
	.sxrv-reviews .sxrv-shot:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(109, 40, 217, .55); }
	.sxrv-reviews .sxrv-shot:hover .sxrv-shot__img { transform: scale(1.04); }
}
.sxrv-reviews .sxrv-shot:focus-visible { outline: 2px solid var(--sxrv-accent); outline-offset: 2px; }

.sxrv-progress {
	position: relative;
	height: 3px;
	max-width: 160px;
	margin: 2px auto 0;
	border-radius: 99px;
	background: rgba(11, 16, 32, .08);
	overflow: hidden;
}
.sxrv-progress__bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 20%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--sxrv-accent), var(--sxrv-accent-2));
	transition: transform .35s var(--sxrv-ease), width .35s var(--sxrv-ease);
}
.sxrv-reviews.is-static .sxrv-reviews__nav,
.sxrv-reviews.is-static .sxrv-progress { display: none; }

@media (max-width: 767px) {
	.sxrv-about .sxrv-about__title,
	.sxrv-reviews .sxrv-reviews__title { font-size: 16px; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
	.sxrv-reviews__stars { font-size: 11px; }
	.sxrv-reviews .sxrv-shot { border-radius: 14px; }
	.sxrv-reviews .sxrv-arrow { width: 30px; height: 30px; }
	.sxrv-reviews .sxrv-arrow svg { width: 14px; height: 14px; }
}
@media (max-width: 420px) {
	.sxrv-reviews__stars { display: none; }
}
@media (max-width: 340px) {
	.sxrv-reviews__nav { display: none; }
}

/* =========================================================================
 * LIGHTBOX
 * ====================================================================== */

.sxrv-lb {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	color: #fff;
	background: rgba(6, 6, 12, .94);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s var(--sxrv-ease), visibility 0s linear .35s;
}
.sxrv-lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sxrv-lb [hidden] { display: none !important; }

.sxrv-lb .sxrv-lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(14px, 3vw, 28px); }
.sxrv-lb .sxrv-lb__counter { padding: 7px 14px; border-radius: 99px; font: 600 13px/1 system-ui, sans-serif; letter-spacing: .04em; background: rgba(255, 255, 255, .1); font-variant-numeric: tabular-nums; }

.sxrv-lb button {
	all: unset;
	box-sizing: border-box;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: #fff;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .14);
	transition: background .25s, transform .3s var(--sxrv-ease);
	-webkit-tap-highlight-color: transparent;
}
.sxrv-lb button:hover { background: linear-gradient(135deg, var(--sxrv-accent), var(--sxrv-accent-2)); border-color: transparent; }
.sxrv-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sxrv-lb button svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sxrv-lb .sxrv-lb__close { width: 46px; height: 46px; }
.sxrv-lb .sxrv-lb__close svg { width: 20px; height: 20px; }

.sxrv-lb .sxrv-lb__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 clamp(12px, 8vw, 110px);
}
.sxrv-lb .sxrv-lb__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
	user-select: none;
	transition: opacity .3s var(--sxrv-ease), transform .45s var(--sxrv-ease);
}
.sxrv-lb .sxrv-lb__img.is-swapping { opacity: 0; transform: scale(.96); }
.sxrv-lb.is-open .sxrv-lb__img { animation: sxrv-in .5s var(--sxrv-ease); }
@keyframes sxrv-in { from { opacity: 0; transform: scale(.92); } }

.sxrv-lb .sxrv-lb__nav { position: absolute; top: 50%; width: 54px; height: 54px; transform: translateY(-50%); }
.sxrv-lb .sxrv-lb__nav:hover { transform: translateY(-50%) scale(1.06); }
.sxrv-lb .sxrv-lb__nav svg { width: 22px; height: 22px; }
.sxrv-lb .sxrv-lb__nav--prev { left: clamp(10px, 2.5vw, 32px); }
.sxrv-lb .sxrv-lb__nav--next { right: clamp(10px, 2.5vw, 32px); }

.sxrv-lb .sxrv-lb__thumbs {
	display: flex;
	justify-content: safe center;
	gap: 8px;
	padding: 16px clamp(14px, 3vw, 28px) max(18px, env(safe-area-inset-bottom));
	overflow-x: auto;
	scrollbar-width: none;
}
.sxrv-lb .sxrv-lb__thumbs::-webkit-scrollbar { display: none; }
.sxrv-lb .sxrv-lb__thumb { flex: 0 0 auto; width: 52px; height: 68px; overflow: hidden; border-radius: 10px; border: 2px solid transparent; opacity: .45; }
.sxrv-lb .sxrv-lb__thumb:hover { opacity: .85; background: rgba(255, 255, 255, .1); }
.sxrv-lb .sxrv-lb__thumb[aria-current="true"] { opacity: 1; border-color: #fff; }
.sxrv-lb .sxrv-lb__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

@media (max-width: 767px) {
	.sxrv-lb .sxrv-lb__stage { padding: 0 10px 70px; }
	.sxrv-lb .sxrv-lb__nav { top: auto; bottom: 12px; transform: none; width: 46px; height: 46px; }
	.sxrv-lb .sxrv-lb__nav:hover { transform: none; }
	.sxrv-lb .sxrv-lb__nav--prev { left: calc(50% - 56px); }
	.sxrv-lb .sxrv-lb__nav--next { right: calc(50% - 56px); }
	.sxrv-lb .sxrv-lb__thumbs { display: none; }
	.sxrv-lb .sxrv-lb__img { border-radius: 10px; }
}

html.sxrv-lock, html.sxrv-lock body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
	.sxrv-block *, .sxrv-lb, .sxrv-lb * { animation: none !important; transition-duration: .01ms !important; }
}

.sxrv-about { color: var(--sxrv-ink); }
