/* ==========================================================================
   YCT Review System
   Accent color: #6b0f1a (stars, bars, average number, buttons)
   Section + form background: white
   Mobile (<=767px): font-size in vw, padding/margin in %, button padding in em
   Heading / label / input text: Outfit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

.yct-reviews-section {
	--yct-accent: #6b0f1a;
	background: #ffffff;
	color: #1a1a1a;
	font-family: inherit;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 8px;
	box-sizing: border-box;

	/* Grow with content so "See less" is never covered by the next section */
	display: flow-root;
	position: relative;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}

.yct-reviews-section,
.yct-reviews-section * {
	box-sizing: border-box;
}

/* -----------------------------------------------------------------------
   Header — "Write a Review" button, top-right of the whole section
   ----------------------------------------------------------------------- */

.yct-reviews-header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 24px;
}

.yct-review-toggle-btn {
	background: #000000;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.yct-review-toggle-btn:hover,
.yct-review-toggle-btn:active {
	background-color: var(--yct-accent) !important;
	color: #ffffff !important;
}

.yct-review-toggle-btn:focus-visible {
	outline: 2px solid var(--yct-accent);
	outline-offset: 2px;
}

/* -----------------------------------------------------------------------
   Two-column layout: progress bars LEFT, written reviews RIGHT
   ----------------------------------------------------------------------- */

.yct-reviews-layout {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	height: auto !important;
	overflow: visible !important;
}

.yct-reviews-col-left {
	flex: 0 0 320px;
}

.yct-reviews-col-right {
	flex: 1 1 auto;
	min-width: 0;
	height: auto !important;
	overflow: visible !important;
}

/* -----------------------------------------------------------------------
   Summary block (average number + stars + progress bars)
   ----------------------------------------------------------------------- */

.yct-review-summary {
	background: #ffffff;
	text-align: center;
	padding: 0 0 32px;
}

.yct-average-rating {
	font-size: 44px;
	font-weight: 800;
	color: var(--yct-accent);
	line-height: 1.1;
}

.yct-average-stars {
	margin: 6px 0 4px;
	font-size: 22px;
	letter-spacing: 2px;
}

.yct-avg-star {
	color: #e2d9d5;
	transition: color 0.2s ease;
}

.yct-avg-star.is-filled {
	color: var(--yct-accent);
}

.yct-based-on {
	font-size: 13px;
	color: #6f6f6f;
	margin-bottom: 20px;
}

.yct-rating-bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.yct-rating-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.yct-bar-label {
	width: 34px;
	font-size: 13px;
	color: #333333;
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.yct-bar-star {
	color: var(--yct-accent);
	font-size: 12px;
}

.yct-bar-track {
	flex: 1 1 auto;
	height: 8px;
	background: #efe9e7;
	border-radius: 999px;
	overflow: hidden;
}

.yct-bar-fill {
	height: 100%;
	background: var(--yct-accent);
	border-radius: 999px;
	width: 0%;
	transition: width 0.5s ease;
}

.yct-bar-percent {
	width: 38px;
	text-align: right;
	font-size: 13px;
	color: #6f6f6f;
	flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Review form — card style with box shadow
   ----------------------------------------------------------------------- */

.yct-review-form-wrap {
	background: #ffffff;
	border: 1px solid #000000;
	border-radius: 0.5em;
	padding: 24px;
	margin-bottom: 24px;
	box-sizing: border-box;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s ease;
}

.yct-review-form-wrap:hover,
.yct-review-form-wrap:active {
	box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yct-review-form-wrap[hidden] {
	display: none;
}

.yct-review-form h3 {
	font-family: 'Outfit', sans-serif;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #1a1a1a;
}

.yct-review-form label {
	display: block;
	font-family: 'Outfit', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #333333;
	margin: 18px 0 8px;
}

.yct-required {
	color: var(--yct-accent);
}

.yct-review-form textarea,
.yct-review-form input[type="text"],
.yct-review-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #dddddd;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: 'Outfit', sans-serif;
	background: #ffffff;
	color: #1a1a1a;
	transition: border-color 0.2s ease;
}

.yct-review-form textarea {
	min-height: 110px;
	resize: vertical;
}

.yct-review-form textarea:hover,
.yct-review-form input[type="text"]:hover,
.yct-review-form input[type="email"]:hover {
	border-color: #000000;
}

.yct-review-form textarea:focus,
.yct-review-form textarea:active,
.yct-review-form input:focus,
.yct-review-form input:active {
	outline: none;
	border-color: var(--yct-accent);
}

.yct-photo-label {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px dashed #cccccc;
	border-radius: 999px;
	padding: 12px 16px;
	cursor: pointer;
	font-weight: 600;
	font-family: 'Outfit', sans-serif;
	font-size: 13px;
	color: #333333;
	background: #ffffff;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.yct-photo-label:hover,
.yct-photo-label:active {
	border-color: var(--yct-accent);
	color: var(--yct-accent);
}

.yct-review-form input[type="file"] {
	display: none;
}

.yct-media-hint {
	display: block;
	font-size: 11px;
	color: #8a8a8a;
	margin-top: 6px;
}

.yct-media-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.yct-media-preview:empty {
	display: none;
}

.yct-media-preview-item {
	position: relative;
	width: 56px;
	height: 56px;
	flex: 0 0 56px;
}

.yct-media-preview-thumb {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 6px;
	border: 1px solid #eeeeee;
	display: block;
}

.yct-media-preview-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #000000;
	color: #ffffff;
	font-size: 12px;
	line-height: 18px;
	text-align: center;
	cursor: pointer;
	border: none;
	padding: 0;
	transition: background-color 0.2s ease;
}

.yct-media-preview-remove:hover,
.yct-media-preview-remove:active {
	background-color: var(--yct-accent) !important;
	color: #ffffff !important;
}

.yct-file-error {
	display: block;
	font-size: 12px;
	color: var(--yct-accent);
	margin-top: 6px;
}

.yct-star-input {
	display: flex;
	gap: 6px;
	font-size: 26px;
	line-height: 1;
}

.yct-star-choice {
	cursor: pointer;
	color: #e2d9d5;
	transition: color 0.15s ease, transform 0.1s ease;
}

.yct-star-choice:hover,
.yct-star-choice.is-hover {
	transform: scale(1.08);
}

.yct-star-choice:hover,
.yct-star-choice:active,
.yct-star-choice.is-active,
.yct-star-choice.is-hover {
	color: var(--yct-accent);
}

.yct-submit-review-btn {
	width: 100%;
	background: var(--yct-accent);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
	margin-top: 24px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.yct-submit-review-btn:hover,
.yct-submit-review-btn:active {
	background-color: #000000 !important;
	color: #ffffff !important;
}

.yct-submit-review-btn:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 2px;
}

.yct-submit-review-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.yct-form-message {
	margin-top: 14px;
	font-size: 13px;
	min-height: 18px;
}

.yct-form-message.is-success {
	color: #1c7a3c;
}

.yct-form-message.is-error {
	color: var(--yct-accent);
}

/* -----------------------------------------------------------------------
   Existing reviews list (right column)
   ----------------------------------------------------------------------- */

.yct-existing-reviews {
	background: #ffffff;
	height: auto !important;
	overflow: visible !important;
}

.yct-no-reviews {
	padding: 32px 0;
	text-align: center;
	color: #6f6f6f;
	font-size: 14px;
}

.yct-see-more-btn {
	display: block;
	width: 100%;
	background: transparent;
	border: none;
	border-top: 1px solid #eeeeee;
	color: var(--yct-accent);
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 14px;
	padding: 18px 0 4px;
	margin-top: 4px;
	cursor: pointer;
	text-align: center;
	transition: color 0.2s ease;
}

.yct-see-more-btn:hover,
.yct-see-more-btn:active {
	color: #000000 !important;
	background-color: transparent !important;
}

.yct-see-more-btn:focus-visible {
	outline: 2px solid var(--yct-accent);
	outline-offset: 2px;
}

/* -----------------------------------------------------------------------
   Lightbox — shared overlay for review photos/videos
   ----------------------------------------------------------------------- */

.yct-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
	box-sizing: border-box;
}

.yct-lightbox-overlay[hidden] {
	display: none;
}

.yct-lightbox-content {
	max-width: 90vw;
	max-height: 90vh;
}

.yct-lightbox-content img,
.yct-lightbox-content video {
	display: block;
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 8px;
}

.yct-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: transparent;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease;
}

.yct-lightbox-close:hover,
.yct-lightbox-close:active {
	background-color: #000000 !important;
	color: #ffffff !important;
}

.yct-single-review {
	border-top: 1px solid #eeeeee;
	padding: 20px 0;
}

.yct-single-review:first-child {
	border-top: none;
	padding-top: 0;
}

.yct-single-review-top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.yct-single-review-avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(107, 15, 26, 0.12);
	color: var(--yct-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
}

.yct-single-review-meta {
	flex: 1 1 auto;
	min-width: 0;
}

.yct-single-review-namerow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.yct-single-review-author {
	font-weight: 700;
	font-size: 14px;
	color: #1a1a1a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.yct-single-review-date {
	flex: 0 0 auto;
	font-size: 13px;
	color: #8a8a8a;
	white-space: nowrap;
}

.yct-single-review-stars {
	font-size: 13px;
	letter-spacing: 1px;
}

.yct-single-review-content {
	font-size: 14px;
	color: #333333;
	line-height: 1.5;
	margin-left: 52px;
}

.yct-media-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	margin-left: 52px;
}

/* Qualified with ancestor classes to raise specificity above generic
   theme resets like "img, video { max-width:100%; height:auto }" */
.yct-existing-reviews .yct-media-gallery .yct-media-thumb,
.yct-existing-reviews .yct-media-gallery img.yct-media-thumb,
.yct-existing-reviews .yct-media-gallery video.yct-media-thumb {
	width: 70px !important;
	height: 70px !important;
	max-width: 70px !important;
	min-width: 70px !important;
	flex: 0 0 70px !important;
	object-fit: cover !important;
	border-radius: 6px;
	border: 1px solid #eeeeee;
	cursor: pointer;
	display: block;
	background: #000000;
	transition: border-color 0.2s ease;
}

.yct-existing-reviews .yct-media-gallery .yct-media-thumb:hover,
.yct-existing-reviews .yct-media-gallery .yct-media-thumb:active {
	border-color: var(--yct-accent);
}

/* =========================================================================
   MOBILE — 767px and below
   font-size in vw, padding/margin/spacing in %, button padding in em
   ========================================================================= */

@media (max-width: 767px) {

	/* Full-width chain + let everything grow with its content */
	.yct-reviews-section,
	.yct-reviews-layout,
	.yct-reviews-col-right,
	.yct-existing-reviews,
	.yct-existing-reviews .yct-single-review,
	.yct-existing-reviews .yct-single-review-top,
	.yct-existing-reviews .yct-single-review-meta {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.yct-reviews-section {
		padding: 4% 5% 12%;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	.yct-reviews-header {
		margin-bottom: 6%;
	}

	.yct-reviews-layout {
		flex-direction: column;
		gap: 8%;
		height: auto !important;
		overflow: visible !important;
	}

	.yct-reviews-col-left,
	.yct-reviews-col-right {
		flex: 0 0 auto !important;
		height: auto !important;
	}

	.yct-reviews-col-left {
		width: 100%;
	}

	.yct-review-summary {
		padding: 0 0 6%;
		max-width: 100%;
	}

	.yct-review-toggle-btn {
		padding: 0.8em 1.6em;
		font-size: 3.7vw;
	}

	.yct-average-rating {
		font-size: 11.5vw;
	}

	.yct-average-stars {
		margin: 1.6% 0 1%;
		font-size: 5.8vw;
	}

	.yct-based-on {
		font-size: 3.4vw;
		margin-bottom: 5%;
	}

	.yct-rating-bars {
		gap: 2%;
	}

	.yct-rating-bar-row {
		gap: 2.6%;
	}

	.yct-bar-label {
		width: 9%;
		font-size: 3.4vw;
	}

	.yct-bar-star {
		font-size: 3.2vw;
	}

	.yct-bar-track {
		height: 1.8vw;
		min-height: 6px;
	}

	.yct-bar-percent {
		width: 10%;
		font-size: 3.4vw;
	}

	.yct-review-form-wrap {
		padding: 6%;
		margin-bottom: 6%;
		max-width: 100%;
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
	}

	.yct-review-form h3 {
		font-size: 5.2vw;
		margin: 0 0 5%;
	}

	.yct-review-form label {
		font-size: 3.2vw;
		margin: 5% 0 2%;
	}

	.yct-review-form textarea,
	.yct-review-form input[type="text"],
	.yct-review-form input[type="email"] {
		padding: 3.2% 3.7%;
		font-size: 3.7vw;
	}

	.yct-photo-label {
		padding: 3.2% 4.2%;
		font-size: 3.4vw;
	}

	.yct-file-name,
	.yct-file-error {
		font-size: 3.2vw;
		margin-top: 1.6%;
	}

	.yct-star-input {
		gap: 1.6%;
		font-size: 6.9vw;
	}

	.yct-submit-review-btn {
		padding: 1em 1.4em;
		font-size: 4vw;
		margin-top: 6%;
	}

	.yct-form-message {
		margin-top: 3.7%;
		font-size: 3.4vw;
	}

	.yct-existing-reviews {
		padding: 0 0 8%;
		max-width: 100%;
	}

	.yct-no-reviews {
		padding: 8% 0;
		font-size: 3.7vw;
	}

	.yct-single-review {
		padding: 5% 0;
	}

	.yct-single-review-top {
		gap: 3%;
		margin-bottom: 2.6%;
	}

	.yct-single-review-avatar {
		flex-basis: 10vw;
		width: 10vw;
		height: 10vw;
		font-size: 4vw;
	}

	.yct-single-review-stars {
		font-size: 3.7vw;
	}

	.yct-single-review-namerow {
		margin-bottom: 1%;
		gap: 4vw;
	}

	.yct-single-review-author {
		font-size: 3.7vw;
	}

	.yct-single-review-date {
		font-size: 3.2vw;
	}

	.yct-single-review-content {
		font-size: 3.7vw;
		margin-left: 13vw;
	}

	.yct-media-gallery {
		margin-left: 13vw;
		gap: 2.6%;
	}

	.yct-existing-reviews .yct-media-gallery .yct-media-thumb,
	.yct-existing-reviews .yct-media-gallery img.yct-media-thumb,
	.yct-existing-reviews .yct-media-gallery video.yct-media-thumb {
		width: 16vw !important;
		height: 16vw !important;
		max-width: 16vw !important;
		min-width: 16vw !important;
		flex: 0 0 16vw !important;
	}

	.yct-media-preview-item {
		width: 15vw;
		height: 15vw;
		flex-basis: 15vw;
	}

	.yct-media-hint {
		font-size: 3vw;
	}

	.yct-see-more-btn {
		padding: 0.9em 1em;
		font-size: 3.7vw;
		margin-bottom: 4%;
	}
		.elementor-widget:has(.yct-reviews-section),
	.elementor-widget-container:has(.yct-reviews-section),
	.e-con:has(.yct-reviews-section),
	.elementor-section:has(.yct-reviews-section),
	.elementor-column:has(.yct-reviews-section) {
		position: relative !important;
		z-index: 5 !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
		margin-bottom: 12% !important;
	}

	.yct-reviews-section {
		position: relative;
		z-index: 5;
		background: transparent;
		padding-bottom: 6%;
	}

	.yct-see-more-btn {
		position: relative;
		z-index: 10;
		pointer-events: auto;
		margin-bottom: 4%;
	}

	.yct-see-more-btn:hover,
	.yct-see-more-btn:active {
		color: #000000 !important;
		background-color: transparent !important;
	}
}