/* Vitfix Product Reviews — front-end styles */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://googleapis.com');

:root {
  --font: 'Poppins','Segoe UI',Helvetica,Arial,sans-serif;
}

.vfpr-products-grid,
.vfpr-review-form,
.vfpr-reviews-section {
	--vfpr-grey-light: #F4F4F5;
	--vfpr-grey-dark: #414142;
	--vfpr-blue: #689AC8;
	--vfpr-green-light: #DDEFE1;
	--vfpr-green-dark: #3B7246;
	--vfpr-rv-blue-light: #5BAEE8;
	box-sizing: border-box;
}

.vfpr-reviews-section {
	--vfpr-rv-blue: #689AC8;
	--vfpr-rv-muted-blue: #5B8FC9;
	--vfpr-rv-blue-dark: #3F6A9E;
	--vfpr-rv-blue-tint: #EAF1F9;
	--vfpr-rv-select-border: #C9D8EA;
	--vfpr-rv-border: #E6EBF1;
	--vfpr-rv-border-light: #EEF2F6;
	--vfpr-rv-arrow-grey: #C3CCD6;
	--vfpr-rv-dot-grey: #CDD6E0;
	--vfpr-rv-text: #414142;
	--vfpr-rv-text-body: #414142;
	--vfpr-rv-text-muted: #8A97A5;
	--vfpr-rv-text-muted-2: #7A8896;
	--vfpr-rv-green: #DDEFE1;
	--vfpr-rv-grey-light: #F4F4F5;
	--vfpr-rv-light-blue: #5BAEE8;
}

.vfpr-products-grid *,
.vfpr-review-form *,
.vfpr-reviews-section * {
	box-sizing: border-box;
}

.vfpr-empty {
	color: var(--vfpr-grey-dark, #414142);
}

/* ---------- Products grid ---------- */

.vfpr-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

.vfpr-product-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	padding: 16px;
}

.vfpr-product-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 280px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
}

.vfpr-product-media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.vfpr-product-title {
	margin: 14px 0 18px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
}

.vfpr-product-title-btn {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: #1a1a1a;
	cursor: pointer;
}

.vfpr-read-more-btn {
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
}
/*.vfpr-read-more-btn {
	background: #111;
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}

.vfpr-read-more-btn:hover {
	background: var(--vfpr-blue);
}*/

/* ---------- Modal ---------- */

.vfpr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.vfpr-modal.is-open {
	display: flex;
}

.vfpr-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 22, 0.55);
}

.vfpr-modal-panel {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 520px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 24px;
}

.vfpr-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: var(--vfpr-grey-dark);
	cursor: pointer;
}

.vfpr-modal-image img {
	width: 100%;
	border-radius: 8px;
	display: none;
	margin-bottom: 16px;
}

.vfpr-modal-image img[src]:not([src=""]) {
	display: block;
}

.vfpr-modal-title {
	color: var(--vfpr-grey-dark);
	margin: 0 0 12px;
}

.vfpr-modal-body {
	color: var(--vfpr-grey-dark);
	line-height: 1.6;
}

/* ---------- Review form ---------- */

.vfpr-review-form {
	max-width: 700px;
	background: #FFFFFF;
	padding: 48px;
	border-radius: 10px;
	border: 1px solid #9CCDEF;
}
@media (max-width: 768px) {
 .vfpr-review-form {
	padding: 20px;
}
}

.vfpr-form-row {
	margin: 0 0 26px;
}

.vfpr-form-row label {
	display: block;
    font-family: var(--font);
	font-weight: 600;
	color: #1F2A33;
	margin-bottom: 6px;
}
.vfpr-form-row .vfpr_customer_subtitle {
	display: block;
    font-family: var(--font);
	font-size: 13px !important;
	font-weight: 400;
	color: var(--vfpr-grey-dark);
	margin-bottom: 6px;
}
.vfpr-counter {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}
.vfpr-form-row .req {
	color: #c0392b;
}

.vfpr-form-row input[type="text"],
.vfpr-form-row input[type="email"],
.vfpr-form-row select,
.vfpr-form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #D9E2EA;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: #1F2A33;
	outline: none;
  transition: border-color 0.2s ease-in-out;
}
.vfpr-form-row select {
   -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;

  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;

  background-size: 18px !important;
  background-position: right 15px center !important;
  padding-right: 25px !important;
  display: flex !important;
  align-items: center !important;
  
  line-height: normal !important;
  height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.vfpr-form-row select option {
    background-color: var(--vfpr-grey-light); 
    font-family: var(--font);
    font-size: 13px;
}

.vfpr-form-row input:focus,
.vfpr-form-row select:focus,
.vfpr-form-row textarea:focus {
	border: 3px solid #5BAEE8;
}

.vfpr-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vfpr-star-input {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 4px;
    font-family: var(--font);
	font-size: 38px;
}

.vfpr-star-input input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
/*#vfpr_rating_status {
    font-size: 13px !important;
}*/

.vfpr-star-input label {
	cursor: pointer;
	color: #D9E2EA;
	margin: 0;
}

.vfpr-star-input input:checked ~ label,
.vfpr-star-input label:hover,
.vfpr-star-input label:hover ~ label {
	color: var(--vfpr-rv-blue-light);
}

.vfpr-submit-btn {
	background: #000000;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 20px 30px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.vfpr-submit-btn:hover {
	background: #f16f42;
}

.vfpr-submit-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
.vfpr_customer_confirm {
	display: block;
    font-family: var(--font);
	font-size: 14px !important;
	font-weight: 400;
	color: #5A6672 !important;
	margin-bottom: 6px;
}

.vfpr-form-message {
	margin: 0 0 16px;
	font-size: 14px;
	display: none;
	padding: 10px 14px;
	border-radius: 6px;
}

.vfpr-form-message.is-success {
	display: block;
	background: var(--vfpr-green-light);
	color: var(--vfpr-green-dark);
}

.vfpr-form-message.is-error {
	display: block;
	color: #BA7517;
}

/* ---------- Reviews list ---------- */

.vfpr-reviews-section {
	padding: 28px 0;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ---------- Heading: ribbon title + rating summary ---------- */

.vfpr-reviews-heading-row {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.vfpr-reviews-ribbon {
	background: var(--vfpr-rv-blue);
	color: #fff;
	font-weight: 700;
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 28px;
	padding: 12px 56px 12px 28px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}
@media (max-width: 384px) {
    .vfpr-reviews-ribbon {
	    font-size: 24px;
    }
}

.vfpr-rating-summary {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
@media (max-width: 768px) {
.vfpr-rating-summary {
	padding: 0 28px;
}
}
.vfpr-rating-summary-stars {
	font-size: 16px;
	color: var(--vfpr-rv-muted-blue);
	letter-spacing: 3px;
}

.vfpr-rating-summary-value {
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: var(--vfpr-rv-text-body);
}

.vfpr-rating-summary-count {
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 15px;
	color: var(--vfpr-rv-text-muted-2);
}

@media (max-width: 768px) {
    .vfpr-rating-summary-stars {
	    font-size: 16px;
    }

    .vfpr-rating-summary-value {
	    font-size: 14px;
	}

    .vfpr-rating-summary-count {
	    font-size: 12px;
    }
}
/* ---------- Filters ---------- */

.vfpr-reviews-filters {
	padding: 0 83px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
}
@media (max-width: 768px) {
.vfpr-reviews-filters {
	padding: 0 28px;
}
}
.vfpr-filter-pill {
	background: var(--vfpr-rv-blue);
	color: #fff;
	border: 2px solid var(--vfpr-rv-blue);
	border-radius: 6px;
	padding: 10px 24px;
	font-weight: 700;
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 14px;
	cursor: pointer;
}

.vfpr-filter-pill:not(.is-active) {
	background: #fff;
	color: var(--vfpr-rv-blue-dark);
}

.vfpr-filter-select {
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%233F6A9E'/%3E%3C/svg%3E") no-repeat right 16px center;
	color: var(--vfpr-rv-blue-dark);
	border: 2px solid var(--vfpr-rv-blue);
	border-radius: 6px;
	padding: 10px 40px 10px 20px;
	font-weight: 600;
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 14px;
	cursor: pointer;
	min-width: 210px;
}

@media (max-width: 480px) {
	.vfpr-reviews-filters {
		flex-direction: column;
		align-items: stretch;
	}
	.vfpr-filter-pill {
		text-align: center;
		min-height: 44px;
	}
	.vfpr-filter-select {
		min-width: 0;
		min-height: 44px;
	}
}

/* ---------- Slider ---------- */

.vfpr-reviews-slider {
	padding: 0 28px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 12px;
	row-gap: 16px;
}

.vfpr-slider-prev {
	order: 1;
}

.vfpr-reviews-viewport {
	order: 2;
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
}

.vfpr-slider-next {
	order: 3;
}

.vfpr-reviews-dots {
	order: 4;
	flex-basis: 100%;
	display: flex;
	justify-content: center;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none; 
	margin-top: 10px;
}


/* Maintain container stacking contexts across the slider rows */
.vfpr-reviews-dots {
	order: 4;
	flex-basis: 100%;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin-top: 24px !important;
	overflow: visible !important; /* THE FIX: Keeps the bar from acting as a scrollable element */
	max-width: none !important;    /* THE FIX: Removes hardcoded layout limits that break mobile */
}

@media (max-width: 600px) {
	.vfpr-reviews-slider {
		justify-content: center;
	}
	.vfpr-reviews-viewport {
		order: -1;
		flex: 1 1 100%;
	}
	.vfpr-reviews-dots {
		order: 2;
		flex: 0 1 auto;
		flex-basis: auto;
		min-width: 0;
		display: flex !important;
		justify-content: center !important; 
		overflow: visible !important; /* THE FIX: Stops content masking on small phone views */
		max-width: none !important;
	}
}
/*
.vfpr-reviews-dots::-webkit-scrollbar {
	display: none;
}

@media (max-width: 600px) {
	.vfpr-reviews-slider {
		justify-content: center;
	}
	.vfpr-reviews-viewport {
		order: -1;
		flex: 1 1 100%;
	}
	.vfpr-reviews-dots {
		order: 2;
		flex: 0 1 auto;
		flex-basis: auto;
		min-width: 0;
		display: flex !important;
		justify-content: safe center !important; 
		overflow-x: scroll !important;
		scroll-behavior: smooth !important;
    	scrollbar-width: none !important; 
	}
	
	.vfpr-reviews-dots::-webkit-scrollbar {
		display: none !important;
	}
}
@media (max-width: 349px) {
	.vfpr-reviews-dots {
		max-width: 170px !important;
	}
}
@media (max-width: 371px) and (min-width: 350px) {
	.vfpr-reviews-dots {
		max-width: 190px !important;
	}
}
@media (max-width: 399px) and (min-width: 372px) {
	.vfpr-reviews-dots {
		max-width: 212px !important;
	}
}
@media (max-width: 768px) and (min-width: 400px) {
	.vfpr-reviews-dots {
		max-width: 240px !important;
	}
}
*/

.vfpr-slider-prev .vfpr-arrow-icon::before {
    font-family: 'revicons';
    content: '\e82c';
    font-size: 20px;
    display: inline-block;
    text-align: center;
}
.vfpr-slider-next .vfpr-arrow-icon::before {
    font-family: 'revicons';
    content: '\e82d';
    font-size: 20px;
    display: inline-block;
    text-align: center;
}

.vfpr-slider-arrow {
    display: flex;
	flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
	background: transparent;
	border: 3px solid #000000;
	color: #000000;
	width: 40px;
	height: 40px;
	border-radius: 50%;  
	font-family: 'revicons';
    font-size: 20px;
	cursor: pointer;
	line-height: 40px;
}

.vfpr-slider-arrow:disabled {
	color: var(--vfpr-rv-arrow-grey);
	cursor: default;
}

.vfpr-reviews-dot {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--vfpr-rv-dot-grey);
	border: 0;
	padding: 0;
	cursor: pointer;
	background: linear-gradient(to bottom, #999 0%,#e1e1e1 100%);
    border: 3px solid #e5e5e5;
}

.vfpr-reviews-dot.is-active {
	background: #666666;
}
.vfpr-review-card.is-hidden {
	display: none !important;
}


/*
.vfpr-reviews-track {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 20px;
	transition: transform 0.4s ease;
}

.vfpr-review-card {
	flex: 0 0 calc((100% - 40px) / 3);
	box-sizing: border-box;
	background: #fff;
	border: 2px solid var(--vfpr-rv-blue);
	border-radius: 10px;
	padding: 22px 20px 18px;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	gap: 10px;
	min-height: 200px;
	box-shadow: 0 2px 8px rgba(28, 39, 51, 0.05);
}
@media (max-width: 768px) {
    .vfpr-review-card {
	    padding: 22px 16px 18px;
    }
}

@media (max-width: 900px) {
	.vfpr-review-card {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 600px) {
	.vfpr-review-card {
		flex-basis: 100%;
	}
}
*/

.vfpr-review-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vfpr-review-stars {
	color: var(--vfpr-rv-muted-blue);
	font-size: 16px;
	letter-spacing: 2px;
}

.vfpr-review-date {
	color: var(--vfpr-rv-text-muted);
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 12.5px;
	white-space: nowrap;
	margin-left: auto;
}

.vfpr-review-subject {
	color: var(--vfpr-rv-text);
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 800;
}

.vfpr-review-text {
	color: var(--vfpr-rv-text-body);
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.55;
	margin: 0;
	flex-grow: 1;  
	margin-bottom: 10px;
}

.vfpr-review-bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	padding-top: 9px;
	border-top: 1px solid var(--vfpr-rv-border-light);
}

.vfpr-review-who-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.vfpr-review-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--vfpr-rv-blue-tint);
	color: var(--vfpr-rv-blue-dark);
	font-weight: 800;
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.vfpr-review-name {
	color: var(--vfpr-rv-text);
	font-weight: 800;
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 15px;
}

.vfpr-verified-text {
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: var(--vfpr-green-dark);
	background-color: var(--vfpr-green-light);
	padding: 4px 11px;
	border-radius: 5px;
	margin-left: auto;
	white-space: nowrap;
}

.vfpr-product-tag-row {
	display: flex;
}

.vfpr-product-tag {
	font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: var(--vfpr-rv-blue);
	background: var(--vfpr-rv-grey-light);
	padding: 4px 11px;
	border-radius: 5px;
	white-space: nowrap;
}
