/**
 * 4Green Product Reviews V2 Styles
 * Brand green: #bccf00, Accent green: #5a6800, Ink: #111111, Surface: #f7fff2
 */

:root {
	--fg-green: #bccf00;
	--fg-green-dark: #5a6800;
	--fg-green-hover: #a8bb00;
	--fg-green-soft: #f4ffed;
	--fg-green-border: #dce8cd;
	--fg-surface-grad: linear-gradient(135deg, #f7fff2 0%, #eff9e8 100%);
	--fg-ink: #111111;
	--fg-text-muted: #525c4f;
	--fg-card-border: rgba(90, 104, 0, 0.16);
	--fg-radius-lg: 24px;
	--fg-radius-md: 16px;
	--fg-radius-sm: 8px;
	--fg-shadow-sm: 0 4px 14px rgba(38, 66, 15, 0.06);
	--fg-shadow-md: 0 10px 28px rgba(38, 66, 15, 0.09);
	--fg-shadow-lg: 0 18px 50px rgba(38, 66, 15, 0.13);
}

/* ==========================================================================
   1. Description Read-More Progressive Fold
   ========================================================================== */
.acf-product-section-wrapper {
	width: 100% !important;
	box-sizing: border-box !important;
}

.acf-product-section-wrapper.fg-description--collapsible {
	position: relative !important;
	transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.acf-product-section-wrapper.fg-description--collapsed {
	max-height: 520px !important;
	overflow: hidden !important;
}

.acf-product-section-wrapper.fg-description--collapsed::after {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	height: 160px !important;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.96) 80%, #ffffff 100%) !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

.fg-description-toggle-wrap {
	display: flex;
	justify-content: center;
	margin: 18px 0 42px 0;
}

.fg-description-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--fg-green-dark);
	background: #ffffff;
	border: 1.5px solid var(--fg-green-border);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(38, 66, 15, 0.08);
	cursor: pointer;
	transition: all 0.2s ease;
	min-height: 46px;
}

.fg-description-toggle-btn:hover,
.fg-description-toggle-btn:focus-visible {
	background: var(--fg-green-soft);
	border-color: var(--fg-green);
	color: var(--fg-ink);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(38, 66, 15, 0.12);
}

.fg-description-toggle-btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.25s ease;
}

.fg-description-toggle-btn[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* ==========================================================================
   2. Product Reviews Section Container
   ========================================================================== */
.fg-reviews-section {
	box-sizing: border-box;
	max-width: 1140px;
	margin: clamp(32px, 5vw, 64px) auto;
	padding: clamp(24px, 4vw, 48px);
	color: var(--fg-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	background: var(--fg-surface-grad);
	border: 1px solid var(--fg-green-border);
	border-radius: var(--fg-radius-lg);
	box-shadow: var(--fg-shadow-lg);
	scroll-margin-top: 90px;
}

.fg-reviews-section *,
.fg-reviews-section *::before,
.fg-reviews-section *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   3. Header & Summary
   ========================================================================== */
.fg-reviews-section__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.fg-reviews-section__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px 0;
	padding: 6px 14px;
	color: var(--fg-green-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: rgba(188, 207, 0, 0.18);
	border: 1px solid rgba(90, 104, 0, 0.16);
	border-radius: 999px;
}

.fg-reviews-section__eyebrow svg {
	width: 14px;
	height: 14px;
	fill: #8f9e00;
}

.fg-reviews-section__title {
	margin: 0 0 14px 0;
	color: var(--fg-ink);
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.fg-reviews-section__summary-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.fg-reviews-section__summary-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px;
	background: #ffffff;
	border: 1px solid var(--fg-green-border);
	border-radius: 999px;
	box-shadow: var(--fg-shadow-sm);
	white-space: nowrap;
}

.fg-reviews-section__score {
	font-size: 17px;
	font-weight: 800;
	color: var(--fg-ink);
	line-height: 1;
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
}

.fg-reviews-section__score small {
	font-size: 13px;
	font-weight: 600;
	color: var(--fg-text-muted);
}

/* ==========================================================================
   4. Star Ratings SVG
   ========================================================================== */
.fg-stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.fg-star {
	width: 18px;
	height: 18px;
	fill: #cbd6b8;
	flex-shrink: 0;
}

.fg-star--filled {
	fill: #9cb000;
}

.fg-stars--lg .fg-star {
	width: 22px;
	height: 22px;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.fg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	min-height: 44px;
	border: none;
}

.fg-btn--primary {
	background: var(--fg-green);
	color: #111111;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 12px rgba(144, 160, 0, 0.25);
}

.fg-btn--primary:hover,
.fg-btn--primary:focus-visible {
	background: var(--fg-green-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(144, 160, 0, 0.35);
}

.fg-btn--outline {
	background: #ffffff;
	color: var(--fg-green-dark);
	border: 1.5px solid var(--fg-green-dark);
	box-shadow: var(--fg-shadow-sm);
}

.fg-btn--outline:hover,
.fg-btn--outline:focus-visible {
	background: var(--fg-green-soft);
	color: var(--fg-ink);
	border-color: var(--fg-green);
	transform: translateY(-1px);
}

.fg-btn--secondary {
	background: #eef3e9;
	color: var(--fg-ink);
	border: 1px solid #d5dfce;
}

.fg-btn--secondary:hover {
	background: #e2ebd9;
}

.fg-btn__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0, 0, 0, 0.2);
	border-top-color: #111111;
	border-radius: 50%;
	animation: fg-spin 0.6s linear infinite;
}

@keyframes fg-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   6. Fallback Notice Banner
   ========================================================================== */
.fg-fallback-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	margin: 0 0 20px 0;
	background: #ffffff;
	border: 1px solid var(--fg-green-border);
	border-left: 4px solid var(--fg-green);
	border-radius: var(--fg-radius-sm);
	box-shadow: var(--fg-shadow-sm);
	font-size: 13px;
	line-height: 1.45;
	color: var(--fg-text-muted);
}

.fg-fallback-notice svg {
	width: 20px;
	height: 20px;
	color: var(--fg-green-dark);
	flex-shrink: 0;
}

.fg-fallback-notice p {
	margin: 0;
}

.fg-fallback-notice--mixed {
	border-left-color: #6a7d00;
}

/* ==========================================================================
   7. Inline Review Submission Form
   ========================================================================== */
.fg-review-form-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin 0.35s ease;
	margin-bottom: 0;
	overflow: hidden;
}

.fg-review-form-panel[aria-hidden="false"] {
	grid-template-rows: 1fr;
	margin-bottom: 28px;
}

.fg-review-form-panel__inner {
	min-height: 0;
	background: #ffffff;
	border: 1.5px solid var(--fg-green-border);
	border-radius: var(--fg-radius-md);
	padding: clamp(20px, 3.5vw, 36px);
	box-shadow: var(--fg-shadow-md);
}

.fg-review-form-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eef3e8;
}

.fg-review-form-panel__title {
	margin: 0 0 4px 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--fg-ink);
}

.fg-review-form-panel__subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--fg-text-muted);
}

.fg-review-form-panel__close-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: #666;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
}

.fg-review-form-panel__close-btn:hover {
	background: #f0f0f0;
	color: #111;
}

.fg-review-form-panel__close-btn svg {
	width: 20px;
	height: 20px;
}

.fg-form-group {
	margin-bottom: 20px;
}

.fg-form-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--fg-ink);
}

.fg-form-label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.fg-char-counter {
	font-size: 12px;
	color: #777;
}

.fg-required {
	color: #c0392b;
}

.fg-form-row {
	display: flex;
	gap: 18px;
}

.fg-form-group--half {
	flex: 1;
	min-width: 0;
}

.fg-form-input,
.fg-form-textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 15px;
	color: var(--fg-ink);
	background: #ffffff;
	border: 1.5px solid #ccd8c2;
	border-radius: var(--fg-radius-sm);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fg-form-input:focus,
.fg-form-textarea:focus {
	outline: none;
	border-color: var(--fg-green-dark);
	box-shadow: 0 0 0 3px rgba(188, 207, 0, 0.35);
}

.fg-form-hint {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--fg-text-muted);
}

.fg-field-error {
	margin-top: 6px;
	font-size: 13px;
	color: #c0392b;
	font-weight: 600;
	display: none;
}

.fg-field-error:not(:empty) {
	display: block;
}

/* Star Picker */
.fg-star-picker {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 6px;
}

.fg-star-picker__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fg-star-picker__label {
	cursor: pointer;
	padding: 4px;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fg-star-picker__icon {
	width: 32px;
	height: 32px;
	fill: #d5ded0;
	transition: fill 0.15s ease, transform 0.15s ease;
}

.fg-star-picker__input:checked ~ .fg-star-picker__label .fg-star-picker__icon,
.fg-star-picker__label:hover .fg-star-picker__icon,
.fg-star-picker__label:hover ~ .fg-star-picker__label .fg-star-picker__icon {
	fill: #9cb000;
	transform: scale(1.08);
}

.fg-rating-text-feedback {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fg-green-dark);
}

/* Dropzone for Image Uploads */
.fg-dropzone {
	border: 2px dashed #ccd8c2;
	border-radius: var(--fg-radius-sm);
	padding: 24px;
	text-align: center;
	background: #fbfdf9;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
}

.fg-dropzone:hover,
.fg-dropzone--dragover {
	border-color: var(--fg-green-dark);
	background: var(--fg-green-soft);
}

.fg-dropzone__icon {
	width: 36px;
	height: 36px;
	color: var(--fg-green-dark);
	margin-bottom: 8px;
}

.fg-dropzone__text {
	margin: 0 0 6px 0;
	font-size: 14px;
	color: var(--fg-ink);
}

.fg-dropzone__browse-btn {
	background: none;
	border: none;
	color: var(--fg-green-dark);
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font-size: inherit;
}

.fg-dropzone__hint {
	font-size: 12px;
	color: var(--fg-text-muted);
}

.fg-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

/* Preview Grid */
.fg-preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.fg-preview-item {
	position: relative;
	border-radius: var(--fg-radius-sm);
	overflow: hidden;
	aspect-ratio: 1;
	border: 1px solid var(--fg-green-border);
	background: #eee;
}

.fg-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fg-preview-item__remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.fg-preview-item__remove:hover {
	background: #c0392b;
}

.fg-preview-item__remove svg {
	width: 14px;
	height: 14px;
}

/* Checkbox */
.fg-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fg-ink);
}

.fg-checkbox-label input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--fg-green-dark);
	cursor: pointer;
}

.fg-form-actions {
	display: flex;
	gap: 14px;
	margin-top: 24px;
}

.fg-review-form-status {
	padding: 14px 18px;
	border-radius: var(--fg-radius-sm);
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
}

.fg-review-form-status--success {
	background: #e8f8e8;
	color: #1e7e34;
	border: 1px solid #c3e6cb;
}

.fg-review-form-status--error {
	background: #fdf0ed;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}

/* ==========================================================================
   8. Carousel Controls & Track
   ========================================================================== */
.fg-carousel-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding: 0 4px;
}

.fg-carousel-bar__progress {
	font-size: 13px;
	font-weight: 700;
	color: var(--fg-text-muted);
}

.fg-carousel-bar__nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fg-carousel-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #ffffff;
	border: 1.5px solid var(--fg-green-border);
	border-radius: 50%;
	color: var(--fg-ink);
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: var(--fg-shadow-sm);
	padding: 0;
}

.fg-carousel-nav-btn:hover:not(:disabled) {
	background: var(--fg-green-soft);
	border-color: var(--fg-green);
	transform: scale(1.05);
}

.fg-carousel-nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.fg-carousel-nav-btn svg {
	width: 20px;
	height: 20px;
}

.fg-reviews-carousel-wrap {
	position: relative;
	margin: 0 -4px;
}

.fg-reviews__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-inline: contain;
	padding: 4px 4px 16px 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}

.fg-reviews__track::-webkit-scrollbar {
	display: none;
}

/* ==========================================================================
   9. Review Cards
   ========================================================================== */
.fg-review-card {
	flex: 0 0 86vw;
	max-width: 340px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--fg-card-border);
	border-radius: var(--fg-radius-md);
	box-shadow: var(--fg-shadow-sm);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fg-review-card:hover,
.fg-review-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--fg-shadow-md);
	border-color: var(--fg-green);
}

.fg-review-card.fg-review-card--active {
	border-color: var(--fg-green-dark);
	box-shadow: 0 0 0 2px var(--fg-green);
}

/* Card Media: matching homepage showcase for perfect landscape crop */
.fg-review-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #e7efdf;
	overflow: hidden;
}

.fg-review-card__image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover !important;
	object-position: center center !important;
	transition: transform 0.3s ease;
}

.fg-review-card:hover .fg-review-card__image {
	transform: scale(1.03);
}

.fg-review-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eaf2e2, #f5faef);
}

.fg-review-card__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: #6e7a57;
	font-size: 12px;
	font-weight: 600;
}

.fg-review-card__placeholder svg {
	width: 32px;
	height: 32px;
	opacity: 0.8;
}

.fg-review-card__media-badge {
	position: absolute;
	bottom: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background: rgba(17, 17, 17, 0.82);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
}

.fg-review-card__media-badge svg {
	width: 12px;
	height: 12px;
}

.fg-review-card__scope-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

.fg-review-card__scope-badge--current {
	background: rgba(188, 207, 0, 0.92);
	color: #111111;
}

.fg-review-card__scope-badge--other {
	background: rgba(255, 255, 255, 0.92);
	color: var(--fg-text-muted);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.fg-review-card__scope-badge svg {
	width: 12px;
	height: 12px;
}

/* Card Body */
.fg-review-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px;
}

.fg-review-card__rating-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.fg-review-card__date {
	font-size: 12px;
	color: var(--fg-text-muted);
}

.fg-review-card__quote {
	margin: 0 0 16px 0;
	color: var(--fg-ink);
	font-size: 15px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fg-review-card__footer {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #edf2e7;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fg-review-card__author-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.fg-review-card__author-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--fg-ink);
}

.fg-review-card__verified-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #2b7a00;
}

.fg-review-card__verified-tag svg {
	width: 12px;
	height: 12px;
}

.fg-review-card__expand-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 9px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--fg-green-dark);
	background: var(--fg-green-soft);
	border: 1px solid var(--fg-green-border);
	border-radius: var(--fg-radius-sm);
	cursor: pointer;
	transition: all 0.2s ease;
	min-height: 40px;
}

.fg-review-card__expand-btn:hover {
	background: var(--fg-green);
	color: #111111;
}

.fg-review-card__expand-btn svg {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   10. Expanded Detail Panel
   ========================================================================== */
.fg-review-detail {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), margin 0.35s ease;
	margin-top: 0;
	overflow: hidden;
}

.fg-review-detail[aria-hidden="false"] {
	grid-template-rows: 1fr;
	margin-top: 24px;
}

.fg-review-detail__inner {
	min-height: 0;
	position: relative;
	background: #ffffff;
	border: 2px solid var(--fg-green);
	border-radius: var(--fg-radius-md);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: var(--fg-shadow-md);
}

.fg-review-detail__close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: #f0f4ea;
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	color: var(--fg-ink);
	cursor: pointer;
	z-index: 5;
	min-height: 36px;
}

.fg-review-detail__close-btn:hover {
	background: #e2ebd8;
}

.fg-review-detail__close-btn svg {
	width: 14px;
	height: 14px;
}

.fg-review-detail__layout {
	display: flex;
	gap: 28px;
}

.fg-review-detail__media-col {
	flex: 0 0 380px;
	max-width: 45%;
}

.fg-review-detail__main-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--fg-radius-sm);
	overflow: hidden;
	background: #e7efdf;
	margin-bottom: 10px;
}

.fg-review-detail__main-image {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover !important;
	object-position: center center !important;
	display: block;
	cursor: pointer;
}

.fg-review-detail__zoom-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	background: rgba(17, 17, 17, 0.85);
	backdrop-filter: blur(4px);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.fg-review-detail__zoom-btn svg {
	width: 13px;
	height: 13px;
}

.fg-review-detail__img-counter {
	position: absolute;
	bottom: 10px;
	left: 10px;
	padding: 4px 10px;
	background: rgba(17, 17, 17, 0.8);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
}

.fg-review-detail__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 0;
}

.fg-thumb-btn {
	flex: 0 0 64px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	background: #ddd;
	cursor: pointer;
	transition: border-color 0.2s;
}

.fg-thumb-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fg-thumb-btn.fg-thumb-btn--active {
	border-color: var(--fg-green-dark);
}

.fg-review-detail__info-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.fg-review-detail__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	padding-right: 90px;
}

.fg-review-detail__date {
	font-size: 13px;
	color: var(--fg-text-muted);
}

.fg-review-detail__author-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.fg-review-detail__author-name {
	font-size: 17px;
	font-weight: 800;
	color: var(--fg-ink);
}

.fg-review-detail__verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	background: #e9f6e5;
	color: #2b7a00;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
}

.fg-review-detail__verified-badge svg {
	width: 12px;
	height: 12px;
}

.fg-review-detail__content-wrap {
	margin-bottom: 20px;
}

.fg-review-detail__quote {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #222;
	white-space: pre-line;
}

.fg-review-detail__product-context {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #eef3e8;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fg-review-detail__context-label {
	font-size: 13px;
	color: var(--fg-text-muted);
}

.fg-review-detail__product-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--fg-green-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fg-review-detail__product-link svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}

.fg-review-detail__product-link:hover svg {
	transform: translateX(3px);
}

/* ==========================================================================
   11. Fullscreen Lightbox Modal
   ========================================================================== */
.fg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.fg-lightbox[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}

.fg-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 6, 0.94);
	backdrop-filter: blur(8px);
}

.fg-lightbox__container {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 16px;
}

.fg-lightbox__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	color: #ffffff;
}

.fg-lightbox__counter {
	font-size: 14px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
}

.fg-lightbox__btn--close {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.fg-lightbox__btn--close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.fg-lightbox__btn--close svg {
	width: 22px;
	height: 22px;
}

.fg-lightbox__stage {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.fg-lightbox__image-wrapper {
	max-width: 90vw;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fg-lightbox__image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: var(--fg-radius-sm);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	transition: transform 0.2s ease;
}

.fg-lightbox__nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.18);
	border: none;
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	transition: background 0.2s;
}

.fg-lightbox__nav-btn:hover {
	background: rgba(255, 255, 255, 0.35);
}

.fg-lightbox__nav-btn--prev { left: 16px; }
.fg-lightbox__nav-btn--next { right: 16px; }

.fg-lightbox__nav-btn svg {
	width: 26px;
	height: 26px;
}

.fg-lightbox__caption {
	padding: 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	display: flex;
	justify-content: center;
	gap: 16px;
}

/* ==========================================================================
   12. Trust Footer Note
   ========================================================================== */
.fg-reviews-section__footer-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--fg-green-border);
	font-size: 13px;
	color: var(--fg-text-muted);
}

.fg-reviews-section__footer-note svg {
	width: 18px;
	height: 18px;
	color: var(--fg-green-dark);
	flex-shrink: 0;
}

/* ==========================================================================
   13. Responsive Media Queries (Mobile 80%+ traffic)
   ========================================================================== */
@media (max-width: 860px) {
	.fg-reviews-section__header {
		flex-direction: column;
		align-items: stretch;
	}

	.fg-review-detail__layout {
		flex-direction: column;
	}

	.fg-review-detail__media-col {
		max-width: 100%;
		flex: none;
	}

	.fg-review-detail__header {
		padding-right: 0;
	}

	.fg-form-row {
		flex-direction: column;
		gap: 0;
	}
}

@media (max-width: 600px) {
	.fg-reviews-section {
		margin: 24px 8px;
		padding: 20px 14px;
		border-radius: 18px;
	}

	.fg-reviews-section__title {
		font-size: 24px;
	}

	.fg-review-card {
		flex: 0 0 88vw;
		max-width: none;
	}

	.fg-reviews-section__footer-note {
		align-items: flex-start;
	}
}

/* Desktop layout enhancement */
@media (min-width: 861px) {
	.fg-review-card {
		flex: 0 0 calc(33.333% - 11px);
		max-width: 360px;
	}
}

/* ==========================================================================
   14. Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.fg-reviews-section *,
	.fg-reviews-section *::before,
	.fg-reviews-section *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   15. Visibility hardening for closed interactive panels
   Prevent padded inner cards from leaking out of a 0fr grid row.
   ========================================================================== */
.fg-review-form-panel[aria-hidden="true"],
.fg-review-detail[aria-hidden="true"] {
	display: none !important;
	margin: 0 !important;
}

.fg-review-form-panel[aria-hidden="false"],
.fg-review-detail[aria-hidden="false"] {
	display: block;
}

/* Keep all inline icons bounded, including the camera icon above uploads. */
.fg-form-group--media > .fg-form-label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fg-form-group--media > .fg-form-label svg {
	width: 20px !important;
	height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	flex: 0 0 20px;
}

/* Detail Panel Media: matching card aspect ratio & center crop */
.fg-review-detail__main-image-wrap {
	background: #e7efdf;
	aspect-ratio: 16 / 10;
}

.fg-review-detail__main-image {
	object-fit: cover !important;
	object-position: center center !important;
}

/* ==========================================================================
   16. Homepage Review Showcase
   The original component's styles were inline in the retired legacy MU-plugin.
   They now live here so the shared shortcode stays fully styled.
   ========================================================================== */
.fg-review-showcase {
	--fg-green: #bccf00;
	--fg-deep-green: #5a6800;
	--fg-ink: #111;
	--fg-border: #dce8cd;
	box-sizing: border-box;
	max-width: 1140px;
	margin: clamp(24px, 4vw, 56px) auto;
	padding: clamp(28px, 5vw, 64px);
	overflow: hidden;
	color: var(--fg-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	background: linear-gradient(135deg, #f7fff2 0%, #eff9e8 100%);
	border: 1px solid var(--fg-border);
	border-radius: 24px;
	box-shadow: 0 18px 55px rgba(38, 66, 15, .10);
}

.fg-review-showcase *,
.fg-review-showcase *::before,
.fg-review-showcase *::after {
	box-sizing: border-box;
}

.fg-review-showcase__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin: 0 0 clamp(26px, 4vw, 38px);
}

.fg-review-showcase__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 13px;
	padding: 7px 12px;
	color: var(--fg-deep-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .075em;
	line-height: 1;
	text-transform: uppercase;
	background: rgba(188, 207, 0, .16);
	border: 1px solid rgba(90, 104, 0, .14);
	border-radius: 999px;
}

.fg-review-showcase__eyebrow svg {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	color: #9cab00;
	fill: currentColor;
	flex: 0 0 16px;
}

.fg-review-showcase__title {
	max-width: 620px;
	margin: 0;
	color: #111;
	font-size: clamp(27px, 3.5vw, 44px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.025em;
}

.fg-review-showcase__intro {
	max-width: 600px;
	margin: 13px 0 0;
	color: #505b4c;
	font-size: 15px;
	line-height: 1.55;
}

.fg-review-showcase__summary {
	position: relative;
	flex: 0 0 auto;
	min-width: 188px;
	padding: 19px 22px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--fg-border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(38, 66, 15, .08);
}

.fg-review-showcase__summary::before {
	position: absolute;
	top: 13px;
	left: 13px;
	width: 5px;
	height: 34px;
	content: "";
	background: var(--fg-green);
	border-radius: 5px;
}

.fg-review-showcase__score {
	display: block;
	color: #111;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em;
}

.fg-review-showcase__score small {
	font-size: 15px;
	font-weight: 500;
}

.fg-review-showcase__stars {
	display: block;
	margin-top: 8px;
	color: #9cad00;
	font-size: 20px;
	letter-spacing: 3px;
	line-height: 1;
}

.fg-review-showcase__count {
	display: block;
	margin-top: 8px;
	color: #596053;
	font-size: 12px;
	line-height: 1.3;
}

.fg-review-showcase__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.fg-review-showcase__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(90, 104, 0, .17);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(38, 66, 15, .08);
	transition: transform .2s ease, box-shadow .2s ease;
}

.fg-review-showcase__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(38, 66, 15, .14);
}

.fg-review-showcase__media {
	position: relative;
	background: #e7efdf;
}

.fg-review-showcase__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.fg-review-showcase__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	color: #69754f;
	background: linear-gradient(135deg, #e8f2df, #f4faef);
}

.fg-review-showcase__media--empty > svg {
	width: 38px !important;
	height: 38px !important;
	max-width: 38px !important;
	max-height: 38px !important;
	opacity: .8;
}

.fg-review-showcase__photo-label {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	background: rgba(17, 17, 17, .78);
	border-radius: 999px;
	backdrop-filter: blur(5px);
}

.fg-review-showcase__photo-label svg {
	width: 13px !important;
	height: 13px !important;
	max-width: 13px !important;
	max-height: 13px !important;
	flex: 0 0 13px;
}

.fg-review-showcase__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 23px;
}

.fg-review-showcase__rating {
	margin-bottom: 15px;
	color: #9cad00;
	font-size: 18px;
	letter-spacing: 1px;
	line-height: 1;
}

.fg-review-showcase__quote {
	margin: 0 0 23px;
	color: #252925;
	font-size: 16px;
	line-height: 1.58;
}

.fg-review-showcase__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #edf1e8;
	font-size: 13px;
}

.fg-review-showcase__name {
	color: #111;
	font-weight: 700;
}

.fg-review-showcase__product {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--fg-deep-green);
	font-weight: 600;
	text-align: right;
	text-decoration: none;
	text-underline-offset: 3px;
}

.fg-review-showcase__product::after {
	content: "→";
	font-size: 16px;
	line-height: 1;
	transition: transform .2s ease;
}

.fg-review-showcase__product:hover {
	color: #111;
	text-decoration: underline;
}

.fg-review-showcase__product:hover::after {
	transform: translateX(3px);
}

.fg-review-showcase__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 24px 0 0;
	color: #596053;
	font-size: 12px;
	line-height: 1.5;
}

.fg-review-showcase__note > svg {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;
	color: #829000;
	flex: 0 0 16px;
}

.fg-review-showcase__note strong {
	color: #31382c;
}

@media (max-width: 850px) {
	.fg-review-showcase__top {
		align-items: stretch;
		flex-direction: column;
	}
	.fg-review-showcase__summary {
		align-self: flex-start;
	}
	.fg-review-showcase__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.fg-review-showcase {
		margin: 24px 12px;
		padding: 26px 17px;
		border-radius: 20px;
	}
	.fg-review-showcase__title {
		font-size: 30px;
	}
	.fg-review-showcase__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.fg-review-showcase__card {
		border-radius: 14px;
	}
	.fg-review-showcase__body {
		padding: 19px;
	}
	.fg-review-showcase__footer {
		align-items: flex-start;
		flex-direction: column;
	}
	.fg-review-showcase__product {
		text-align: left;
	}
	.fg-review-showcase__note {
		align-items: flex-start;
	}
}
