/**
 * diy-like product reviews — true masonry (column flow by image height).
 */

body.single-product .fi-reviews-section {
	width: min(100% - 32px, 1280px);
	max-width: min(100% - 32px, 1280px);
	margin: 8px auto 48px;
	padding: 36px 0 48px;
	background: #fff;
	box-sizing: border-box;
	clear: both;
}

body.single-product .fi-reviews-section > .elementor-element,
body.single-product .fi-reviews-section .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

body.single-product #reviews {
	font-family: Outfit, "Segoe UI", sans-serif;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

body.single-product #reviews .woocommerce-Reviews-title,
body.single-product #reviews .woocommerce-noreviews {
	font-size: 18px;
	font-weight: 800;
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.35;
	margin: 0 0 12px;
	padding: 0 0 14px;
	border-bottom: 1px solid #e6e6e6;
}

body.single-product #reviews .woocommerce-Reviews-title span {
	font-weight: inherit;
}

.fi-reviews-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-family: Outfit, "Segoe UI", sans-serif;
}

.fi-reviews-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 16px;
	padding: 4px 0 14px;
	border-bottom: 1px solid #ececec;
	font-family: Outfit, "Segoe UI", sans-serif;
}

.fi-reviews-toolbar__mid {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
	flex: 1 1 240px;
}

.fi-reviews-toolbar__collect {
	font-size: 14px;
	color: #555;
	line-height: 1.4;
}

.fi-reviews-write-link {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fi-reviews-toolbar__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.fi-reviews-write-btn {
	min-height: 36px;
	padding: 7px 14px;
	border: 1px solid #d5d5d5;
	border-radius: 2px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.fi-reviews-write-btn:hover {
	border-color: #111;
	background: #fafafa;
}

body.single-product #reviews.fi-reviews-ui-ready #review_form_wrapper,
body.single-product #reviews.fi-reviews-ui-ready #review_form,
body.single-product #reviews.fi-reviews-ui-ready .comment-respond {
	display: none !important;
}

/* —— Write review wizard (Loox / diy 1:1) —— */
body.fi-rw-open {
	overflow: hidden;
}

.fi-rw {
	--fi-rw-radius: 12px;
	--fi-rw-ink: #111;
	--fi-rw-muted: #6b6b6b;
	--fi-rw-line: #e6e6e6;
	--fi-rw-star: #f5c518;
	--fi-rw-ease: cubic-bezier(0.165, 0.84, 0.44, 1);
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 12px;
	background: rgba(0, 0, 0, 0.38);
	opacity: 0;
	transition: opacity 0.2s linear;
	box-sizing: border-box;
	font-family: Inter, Outfit, "Segoe UI", system-ui, sans-serif;
}

.fi-rw.is-open {
	opacity: 1;
}

.fi-rw.is-closing {
	opacity: 0;
	pointer-events: none;
}

.fi-rw__paper {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(680px, 96vw);
	min-height: min(620px, 86vh);
	max-height: min(92vh, 860px);
	background: #fff;
	border-radius: var(--fi-rw-radius);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	color: var(--fi-rw-ink);
	transform: scale(0);
	opacity: 0;
}

.fi-rw.is-open .fi-rw__paper {
	animation: fiRwBlowUp 0.28s var(--fi-rw-ease) forwards;
}

.fi-rw.is-closing .fi-rw__paper {
	animation: fiRwBlowDown 0.22s var(--fi-rw-ease) forwards;
}

@keyframes fiRwBlowUp {
	from {
		transform: scale(0);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes fiRwBlowDown {
	from {
		transform: scale(1);
		opacity: 1;
	}
	to {
		transform: scale(0);
		opacity: 0;
	}
}

.fi-rw__mheader {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px 0;
	flex: 0 0 auto;
	transition: opacity 0.18s ease;
}

.fi-rw__mheader.is-fade-out,
.fi-rw__footer.is-fade-out {
	opacity: 0;
}

.fi-rw__main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: auto;
	padding: 32px 40px 20px;
	-webkit-overflow-scrolling: touch;
	position: relative;
}

.fi-rw__main-inner {
	width: 100%;
	flex: 0 0 auto;
	margin-block: auto;
	will-change: transform, opacity;
}

.fi-rw__main-inner.is-enter-fwd {
	animation: fiRwStepInFwd 0.3s var(--fi-rw-ease) both;
}

.fi-rw__main-inner.is-enter-back {
	animation: fiRwStepInBack 0.3s var(--fi-rw-ease) both;
}

.fi-rw__main-inner.is-leave-fwd {
	animation: fiRwStepOutFwd 0.2s ease-in forwards;
}

.fi-rw__main-inner.is-leave-back {
	animation: fiRwStepOutBack 0.2s ease-in forwards;
}

.fi-rw__main-inner.is-enter-thanks {
	animation: fiRwThanksIn 0.36s var(--fi-rw-ease) both;
}

@keyframes fiRwStepInFwd {
	from {
		opacity: 0;
		transform: translateX(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fiRwStepInBack {
	from {
		opacity: 0;
		transform: translateX(-22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes fiRwStepOutFwd {
	from {
		opacity: 1;
		transform: none;
	}
	to {
		opacity: 0;
		transform: translateX(-16px);
	}
}

@keyframes fiRwStepOutBack {
	from {
		opacity: 1;
		transform: none;
	}
	to {
		opacity: 0;
		transform: translateX(16px);
	}
}

@keyframes fiRwThanksIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.fi-rw__step {
	position: relative;
	text-align: center;
}

.fi-rw__close {
	position: absolute;
	top: -8px;
	left: -8px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #222;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.18s var(--fi-rw-ease), opacity 0.15s ease;
}

.fi-rw__close:hover {
	transform: scale(1.08);
	opacity: 0.75;
}

.fi-rw__step-head {
	margin: 0 0 22px;
}

.fi-rw__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #111;
}

.fi-rw__subtitle {
	margin: 10px 0 0;
	font-size: 15px;
	font-weight: 400;
	color: var(--fi-rw-muted);
	line-height: 1.4;
}

.fi-rw__stars {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 8px 0 12px;
}

.fi-rw__star {
	padding: 0;
	border: 0;
	background: none;
	color: var(--fi-rw-star);
	cursor: pointer;
	line-height: 0;
	transform: scale(1);
	transition: transform 0.18s var(--fi-rw-ease);
}

.fi-rw__star:hover,
.fi-rw__star:focus-visible {
	transform: scale(1.14);
	outline: none;
}

.fi-rw__star svg path {
	fill: transparent;
	stroke: var(--fi-rw-star);
	stroke-width: 1.35;
	stroke-linejoin: round;
	transition: fill 0.16s ease;
}

.fi-rw__star.is-preview svg path,
.fi-rw__star.is-on svg path {
	fill: var(--fi-rw-star);
}

.fi-rw__star.is-pop {
	animation: fiRwStarPop 0.42s cubic-bezier(0.34, 1.45, 0.64, 1) both;
	animation-delay: var(--star-delay, 0ms);
}

@keyframes fiRwStarPop {
	0% {
		transform: scale(1);
	}
	35% {
		transform: scale(1.32);
	}
	70% {
		transform: scale(0.94);
	}
	100% {
		transform: scale(1);
	}
}

.fi-rw__star-labels {
	display: flex;
	justify-content: space-between;
	width: min(260px, 100%);
	margin: 0 auto;
	font-size: 13px;
	color: #333;
}

/* Upload step — Loox boxed form */
.fi-rw__upload {
	position: relative;
	margin: 0 auto;
	padding: 22px 20px 18px;
	border: 1px solid var(--fi-rw-line);
	border-radius: 10px;
	background: #fff;
	text-align: center;
}

.fi-rw__discount {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	color: #111;
}

.fi-rw__upload-row {
	margin: 0 0 10px;
}

.fi-rw__upload-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.fi-rw__upload-btn:hover:not(:disabled) {
	background: #2a2a2a;
}

.fi-rw__upload-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.fi-rw__icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.fi-rw__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.fi-rw__terms {
	display: inline-block;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 12px;
	font-family: inherit;
	color: #666;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fi-rw__terms:hover {
	color: #111;
}

/* Discount terms — bottom sheet inside write modal */
.fi-rw__sheet {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}

.fi-rw__sheet.is-open {
	pointer-events: auto;
}

.fi-rw__sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.fi-rw__sheet.is-open .fi-rw__sheet-backdrop {
	opacity: 1;
}

.fi-rw__sheet-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0;
	padding: 28px 28px 18px;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
	color: #111;
	transform: translateY(105%);
	transition: transform 0.32s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-sizing: border-box;
}

.fi-rw__sheet.is-open .fi-rw__sheet-panel {
	transform: translateY(0);
}

.fi-rw__sheet-title {
	margin: 0 36px 16px 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-align: left;
}

.fi-rw__terms-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #222;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.fi-rw__terms-body {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.55;
	color: #222;
	text-align: left;
}

.fi-rw__terms-link {
	color: #111;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fi-rw__terms-link:hover {
	opacity: 0.75;
}

.fi-rw__sheet-footer {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	padding-top: 8px;
}

.fi-rw__sheet-footer .fi-rw__text-btn:last-child {
	justify-self: end;
}

.fi-rw__sheet-progress .fi-rw__progress {
	margin: 0;
}

@media (max-width: 640px) {
	.fi-rw__sheet-panel {
		width: 100%;
		border-radius: 16px 16px 0 0;
		padding: 24px 20px calc(18px + env(safe-area-inset-bottom, 0));
	}

	.fi-rw__sheet-title {
		font-size: 24px;
	}
}

/* Native file control is triggered by Add photos — never show browser UI */
.fi-rw__file,
.fi-rw input[type="file"].fi-rw__file {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	opacity: 0 !important;
}

.fi-rw__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
}

.fi-rw__thumb {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f3f3;
}

.fi-rw__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fi-rw__thumb-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

.fi-rw__textarea {
	display: block;
	width: 100%;
	min-height: 160px;
	margin: 0;
	padding: 16px;
	border: 1px solid #d9d9d9;
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
	resize: vertical;
	box-sizing: border-box;
	background: #fff;
}

.fi-rw__textarea:focus {
	outline: none;
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}

.fi-rw__textarea::placeholder {
	color: #a0a0a0;
}

.fi-rw__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 0 0 14px;
	text-align: left;
}

.fi-rw__field {
	display: block;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	color: #111;
}

.fi-rw__field--full {
	width: 100%;
}

.fi-rw__field em {
	color: #e10600;
	font-style: normal;
}

.fi-rw__field span {
	display: block;
	margin-bottom: 8px;
}

.fi-rw__input {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	box-sizing: border-box;
	background: #fff;
}

.fi-rw__input:focus {
	outline: none;
	border-color: #111;
	box-shadow: 0 0 0 1px #111;
}

.fi-rw__legal {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.55;
	color: #666;
	text-align: center;
	font-weight: 400;
}

/* Footer — Loox layout */
.fi-rw__footer {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	padding: 14px 18px 16px;
	border-top: 1px solid transparent;
	flex: 0 0 auto;
	background: #fff;
	transition: opacity 0.18s ease;
}

.fi-rw__footer-start {
	justify-self: start;
}

.fi-rw__footer-mid {
	justify-self: center;
}

.fi-rw__footer-end {
	justify-self: end;
}

.fi-rw__text-btn,
.fi-rw__icon-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1;
}

.fi-rw__icon-btn {
	width: 36px;
	height: 36px;
	justify-content: center;
	padding: 0;
	border-radius: 8px;
}

.fi-rw__text-btn .fi-rw__icon,
.fi-rw__icon-btn .fi-rw__icon {
	width: 18px;
	height: 18px;
}

.fi-rw__progress {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fi-rw__bar {
	width: 36px;
	height: 4px;
}

.fi-rw__bar-track {
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: #e4e4e4;
	overflow: hidden;
}

.fi-rw__bar-fill {
	height: 100%;
	background: #111;
	border-radius: inherit;
	transition: width 0.35s var(--fi-rw-ease, cubic-bezier(0.165, 0.84, 0.44, 1));
}

.fi-rw__cta {
	min-width: 78px;
	min-height: 38px;
	padding: 8px 16px;
	border: 0;
	border-radius: 8px;
	background: #d8d8d8;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.fi-rw__cta.is-ready {
	background: #111;
}

.fi-rw__cta.is-ready:hover {
	background: #2a2a2a;
}

.fi-rw__powered {
	width: min(680px, 96vw);
	text-align: right;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.88);
	letter-spacing: 0.02em;
	pointer-events: none;
}

/* Success step — modern checkmark confirmation */
.fi-rw__paper--step-5 {
	background: linear-gradient(180deg, #fafafa 0%, #fff 42%);
}

.fi-rw__paper--step-5 .fi-rw__main {
	padding: 24px 28px 16px;
}

.fi-rw__paper--step-5 .fi-rw__main-inner {
	margin-block: auto;
}

.fi-rw__step--thanks {
	position: relative;
	width: 100%;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.fi-rw__thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 340px;
	padding: 12px 8px 8px;
}

.fi-rw__thanks-icon {
	position: relative;
	width: 72px;
	height: 72px;
	margin: 0 0 22px;
	opacity: 0;
	animation: fiRwThanksIconIn 0.45s var(--fi-rw-ease, cubic-bezier(0.165, 0.84, 0.44, 1)) forwards;
}

.fi-rw__thanks-glow {
	position: absolute;
	inset: -18%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(34, 160, 94, 0.22) 0%, rgba(34, 160, 94, 0) 70%);
	animation: fiRwThanksGlow 1.2s ease-out 0.15s both;
}

.fi-rw__thanks-svg {
	display: block;
	width: 72px;
	height: 72px;
	position: relative;
	z-index: 1;
}

.fi-rw__thanks-ring {
	stroke: #22a05e;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: fiRwThanksRing 0.55s ease-out 0.08s forwards;
}

.fi-rw__thanks-check {
	stroke: #22a05e;
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: fiRwThanksCheck 0.35s ease-out 0.48s forwards;
}

@keyframes fiRwThanksIconIn {
	from {
		opacity: 0;
		transform: scale(0.72);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fiRwThanksGlow {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fiRwThanksRing {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes fiRwThanksCheck {
	to {
		stroke-dashoffset: 0;
	}
}

.fi-rw__thanks-title {
	margin: 0;
	font-size: clamp(26px, 5vw, 32px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #111;
	opacity: 0;
	animation: fiRwFadeUp 0.4s ease 0.35s forwards;
}

.fi-rw__thanks-sub {
	margin: 10px 0 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: #6b6b6b;
	opacity: 0;
	animation: fiRwFadeUp 0.4s ease 0.45s forwards;
}

.fi-rw__thanks-rating {
	display: flex;
	gap: 4px;
	margin-top: 18px;
	opacity: 0;
	animation: fiRwFadeUp 0.4s ease 0.55s forwards;
}

.fi-rw__thanks-star {
	display: inline-flex;
	color: #e5e5e5;
	transform: scale(0.6);
	opacity: 0;
	animation: fiRwThanksStar 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
	animation-delay: calc(0.58s + var(--d, 0) * 45ms);
}

.fi-rw__thanks-star.is-on {
	color: #f5c518;
}

.fi-rw__thanks-star svg {
	display: block;
}

.fi-rw__thanks-star svg path {
	fill: currentColor;
}

@keyframes fiRwThanksStar {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fiRwFadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.fi-rw__footer--thanks {
	display: flex;
	justify-content: center;
	grid-template-columns: none;
	border-top: 0;
	padding: 8px 24px 28px;
	background: transparent;
	opacity: 0;
	animation: fiRwFadeUp 0.4s ease 0.62s forwards;
}

.fi-rw__continue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 200px;
	min-height: 46px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 15px;
}

.fi-rw__continue .fi-rw__icon {
	width: 18px;
	height: 18px;
}

.fi-rw--success .fi-rw__powered {
	visibility: hidden;
}

.fi-rw__powered strong {
	font-weight: 800;
}

@media (max-width: 640px) {
	.fi-rw {
		padding: 0;
		justify-content: flex-end;
	}

	.fi-rw.is-open .fi-rw__paper {
		animation: fiRwFadeInUp 0.28s ease-in-out forwards;
	}

	.fi-rw.is-closing .fi-rw__paper {
		animation: fiRwFadeOutDown 0.22s ease-in-out forwards;
	}

	@keyframes fiRwFadeInUp {
		from {
			transform: translateY(20%);
			opacity: 0;
		}
		to {
			transform: none;
			opacity: 1;
		}
	}

	@keyframes fiRwFadeOutDown {
		from {
			transform: none;
			opacity: 1;
		}
		to {
			transform: translateY(20%);
			opacity: 0;
		}
	}

	.fi-rw__paper {
		width: 100%;
		max-width: 100%;
		min-height: min(78vh, 720px);
		max-height: 94vh;
		border-radius: 16px 16px 0 0;
	}

	.fi-rw__mheader {
		display: flex;
	}

	.fi-rw__main {
		padding: 12px 20px 8px;
	}

	.fi-rw__title {
		font-size: 24px;
	}

	.fi-rw__paper--step-2 .fi-rw__footer-end .fi-rw__skip {
		visibility: hidden;
		pointer-events: none;
	}

	.fi-rw__grid {
		grid-template-columns: 1fr;
	}

	.fi-rw__powered {
		display: none;
	}
}

@media (min-width: 641px) {
	.fi-rw__mheader {
		display: none !important;
	}
}

.fi-reviews-summary__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: #e8c24a;
	line-height: 1;
}

.fi-reviews-summary__star {
	color: #ddd;
	display: block;
}

.fi-reviews-summary__star.is-on {
	color: #e8c24a;
}

.fi-reviews-summary__count {
	font-size: 14px;
	font-weight: 500;
	color: #444;
	line-height: 1;
}

body.single-product #reviews .star-rating {
	color: #f5b400;
	float: none !important;
	margin: 0 0 6px !important;
}

/* True masonry: items pack by natural height (driven by photos). */
body.single-product #reviews .commentlist {
	display: block !important;
	column-count: 5;
	column-gap: 14px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product #reviews .commentlist > .review,
body.single-product #reviews .commentlist > .comment {
	display: inline-block;
	width: 100%;
	margin: 0 0 14px !important;
	padding: 12px !important;
	border: 1px solid #ececec !important;
	border-radius: 8px;
	background: #fff;
	box-shadow: none !important;
	float: none !important;
	break-inside: avoid;
	page-break-inside: avoid;
	-webkit-column-break-inside: avoid;
	box-sizing: border-box;
	vertical-align: top;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.single-product #reviews .commentlist > .review.fi-review--collapsed,
body.single-product #reviews .commentlist > .comment.fi-review--collapsed {
	display: none !important;
}

.fi-reviews-more {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 8px 0 4px;
	padding: 8px 0 20px;
	min-height: 56px;
}

.fi-reviews-more__btn {
	appearance: none;
	position: relative;
	border: 1px solid #1a1a1a;
	background: #fff;
	color: #1a1a1a;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	padding: 12px 28px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.fi-reviews-more__btn:hover {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.fi-reviews-more.is-loading .fi-reviews-more__btn {
	color: transparent !important;
	pointer-events: none;
	cursor: wait;
}

.fi-reviews-more.is-loading .fi-reviews-more__btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(26, 26, 26, 0.2);
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: fiReviewsMoreSpin 0.6s linear infinite;
}

@keyframes fiReviewsMoreSpin {
	to {
		transform: rotate(360deg);
	}
}

body.single-product #reviews .woocommerce-pagination,
body.single-product #reviews .woocommerce-Comments-pagination,
body.single-product #reviews nav.navigation.comment-navigation {
	display: none !important;
}

body.single-product #reviews .commentlist > .review:hover,
body.single-product #reviews .commentlist > .comment:hover {
	border-color: #d8d8d8 !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

body.single-product #reviews .comment_container {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body.single-product #reviews .comment-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.single-product #reviews .avatar,
body.single-product #reviews img.avatar {
	display: none !important;
}

body.single-product #reviews .meta {
	order: 2;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	line-height: 1.35;
}

body.single-product #reviews .star-rating {
	order: 3;
}

body.single-product #reviews .description {
	order: 4;
}

body.single-product #reviews .fi-review-photos {
	order: 1;
	margin-top: 0;
	margin-bottom: 4px;
}

body.single-product #reviews .woocommerce-review__author {
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

body.single-product #reviews .woocommerce-review__dash {
	display: none;
}

body.single-product #reviews .woocommerce-review__published-date {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #8a8f94;
	font-weight: 400;
}

body.single-product #reviews .woocommerce-review__verified {
	font-size: 0;
	color: transparent;
}

body.single-product #reviews .woocommerce-review__verified::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 4px;
	vertical-align: middle;
	background: #111;
	border-radius: 50%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 8px 8px no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 8px 8px no-repeat;
}

body.single-product #reviews .description,
body.single-product #reviews .comment-text {
	font-size: 13px;
	line-height: 1.5;
	color: #333;
}

body.single-product #reviews .description p {
	margin: 0 0 4px;
}

.fi-review-photos {
	position: relative;
	display: block;
	margin: 0;
}

.fi-review-photo {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	overflow: hidden;
	border-radius: 6px;
	background: #f5f5f5;
	cursor: pointer;
}

.fi-review-photo.is-extra {
	display: none;
}

.fi-review-photo img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.fi-review-photo-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 7px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

/* —— Loox-style review detail modal —— */
body.fi-rm-open {
	overflow: hidden;
}

.fi-rm {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 12px;
	background: rgba(40, 40, 40, 0.72);
	opacity: 0;
	transition: opacity 0.18s ease;
	box-sizing: border-box;
}

.fi-rm.is-open {
	opacity: 1;
}

.fi-rm__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
	width: min(820px, 92vw);
	height: min(520px, 78vh);
	max-height: 78vh;
	background: #111;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
	transform: translateY(8px);
	transition: transform 0.18s ease;
}

.fi-rm.is-open .fi-rm__dialog {
	transform: translateY(0);
}

.fi-rm__dialog--text {
	grid-template-columns: 1fr;
	width: min(420px, 92vw);
	height: auto;
	max-height: min(70vh, 560px);
	background: #fff;
	border-radius: 10px;
}

.fi-rm__dialog--text .fi-rm__close--light {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f0f0f0;
	color: #444;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.fi-rm__dialog--text .fi-rm__close--light:hover {
	background: #e6e6e6;
	color: #111;
}

.fi-rm__dialog--text .fi-rm__side {
	padding: 52px 28px 28px;
	overflow: auto;
	max-height: inherit;
}

.fi-rm__dialog--text .fi-rm__head {
	align-items: center;
	margin-bottom: 8px;
}

.fi-rm__dialog--text .fi-rm__author {
	font-size: 18px;
}

.fi-rm__dialog--text .fi-rm__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.fi-rm__dialog--text .fi-rm__meta-row .fi-rm__stars {
	margin: 0;
}

.fi-rm__dialog--text .fi-rm__date {
	font-size: 13px;
	color: #8a8f94;
}

.fi-rm__dialog--text .fi-rm__body {
	font-size: 15px;
	line-height: 1.7;
}

.fi-rm__media {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #0d0d0d;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
}

.fi-rm__close {
	position: absolute;
	top: 10px;
	left: 12px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.9;
}

.fi-rm__close:hover {
	opacity: 1;
}

.fi-rm__close--light {
	position: absolute;
	top: 8px;
	right: 10px;
	left: auto;
	color: #333;
}

.fi-rm__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	box-sizing: border-box;
	background: #0d0d0d;
}

.fi-rm__main {
	display: block;
	width: 100%;
	height: 100%;
	margin: auto;
	object-fit: contain;
	object-position: center;
}

.fi-rm__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(2px);
}

.fi-rm__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.fi-rm__nav--prev {
	left: 10px;
}

.fi-rm__nav--next {
	right: 10px;
}

.fi-rm__thumbs {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 0 12px;
	flex: 0 0 auto;
	pointer-events: none;
}

.fi-rm__thumb {
	pointer-events: auto;
	display: block;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 2px;
	background: #2a2224;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.78;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.fi-rm__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fi-rm__thumb.is-active {
	border-color: #fff;
	opacity: 1;
}

.fi-rm__side {
	position: relative;
	background: #fff;
	padding: 22px 22px 24px;
	overflow: auto;
	font-family: Outfit, "Segoe UI", sans-serif;
}

.fi-rm__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.fi-rm__who {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	min-width: 0;
}

.fi-rm__author {
	font-size: 16px;
	font-weight: 700;
	color: #111;
	line-height: 1.2;
}

.fi-rm__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #111;
	line-height: 1;
}

.fi-rm__verified svg {
	display: block;
	flex: 0 0 auto;
}

.fi-rm__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	margin-left: 2px;
	border: 1px solid #999;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
	font-style: normal;
	color: #666;
	line-height: 1;
	cursor: help;
}

.fi-rm__date {
	flex: 0 0 auto;
	font-size: 13px;
	color: #8a8f94;
	line-height: 1.2;
	white-space: nowrap;
}

.fi-rm__stars {
	display: flex;
	gap: 2px;
	margin: 0 0 14px;
	color: #e8c24a;
}

.fi-rm__star {
	color: #ddd;
}

.fi-rm__star.is-on {
	color: #e8c24a;
}

.fi-rm__body {
	font-size: 14px;
	line-height: 1.65;
	color: #222;
	white-space: pre-wrap;
}

.fi-rm__mark {
	background: #fff3a0;
	color: inherit;
	padding: 0 1px;
}

@media (max-width: 820px) {
	.fi-rm {
		padding: 0;
		align-items: stretch;
	}

	.fi-rm__dialog:not(.fi-rm__dialog--text) {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
		grid-template-columns: 1fr;
		grid-template-rows: minmax(48vh, 1.1fr) minmax(0, 0.95fr);
	}

	.fi-rm__dialog--text {
		width: min(420px, 94vw);
		height: auto;
		max-height: 80vh;
		margin: auto;
		border-radius: 10px;
	}

	.fi-rm:has(.fi-rm__dialog--text) {
		padding: 24px 12px;
		align-items: center;
	}

	.fi-rm__main {
		left: 12px;
		right: 12px;
		top: 12px;
		bottom: 52px;
	}

	.fi-rm__dialog:not(.fi-rm__dialog--text) .fi-rm__side {
		padding: 20px 18px 28px;
	}
}

/* Legacy lightbox (unused) kept inert */
.fi-review-lb {
	display: none !important;
}

body.single-product #reviews .comment-reply-title,
body.single-product #review_form_wrapper {
	margin-top: 28px;
}

@media (max-width: 1200px) {
	body.single-product #reviews .commentlist {
		column-count: 4;
	}
}

@media (max-width: 900px) {
	body.single-product .fi-reviews-section {
		width: min(100% - 24px, 1280px);
		max-width: min(100% - 24px, 1280px);
		padding-left: 0;
		padding-right: 0;
	}

	body.single-product #reviews .commentlist {
		column-count: 3;
	}
}

@media (max-width: 700px) {
	body.single-product #reviews .commentlist {
		column-count: 2;
	}
}

@media (max-width: 480px) {
	body.single-product #reviews .commentlist {
		column-count: 1;
	}
}

