/* =========================
   CUSTOM REVIEWS
========================= */

.tubuy-reviews-title {
	font-size: 24px;
	font-weight: 900;
	color: #07121d;
	margin-bottom: 20px;
	letter-spacing: -0.5px;
}

/* =========================
   REVIEWS LIST
========================= */

.tubuy-reviews-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* =========================
   REVIEW CARD
========================= */

.tubuy-review-card {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border: 1px solid #eef2f7;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
	transition: 0.2s ease;
}

.tubuy-review-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* =========================
   REVIEW TOP
========================= */

.tubuy-review-card-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

/* =========================
   REVIEW AVATAR
========================= */

.tubuy-review-avatar img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* =========================
   REVIEW META
========================= */

.tubuy-review-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* =========================
   REVIEW AUTHOR
========================= */

.tubuy-review-author {
	font-size: 13px;
	font-weight: 800;
	color: #07121d;
	line-height: 1.4;
}

/* =========================
   REVIEW DATE
========================= */

.tubuy-review-date {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	line-height: 1.4;
}

/* =========================
   REVIEW STARS
========================= */

.tubuy-review-stars {
	margin-left: auto;
}

.tubuy-review-stars .star-rating {
	font-size: 13px !important;
	margin: 0 !important;
}

.tubuy-review-stars .star-rating::before {
	color: #fcd34d !important;
	opacity: 0.35;
}

.tubuy-review-stars .star-rating span::before {
	color: #f59e0b !important;
}

/* =========================
   REVIEW CONTENT
========================= */

.tubuy-review-content p {
	font-size: 13px;
	line-height: 1.7;
	color: #475569;
	margin: 0;
}

/* =========================
   REVIEW GALLERY
========================= */

.tubuy-review-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

/* =========================
   GALLERY ITEM
========================= */

.tubuy-review-gallery-item {
	width: 72px;
	height: 72px;
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	transition: 0.2s ease;
}

.tubuy-review-gallery-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

/* =========================
   GALLERY IMAGE
========================= */

.tubuy-review-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

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

.tubuy-review-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(2, 6, 23, 0.88);
	backdrop-filter: blur(4px);
	padding: 30px;
	opacity: 0;
	visibility: hidden;
	transition: 0.25s ease;
}

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

.tubuy-review-lightbox.is-active {
	opacity: 1;
	visibility: visible;
}

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

.tubuy-review-lightbox-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 1100px;
}

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

.tubuy-review-lightbox-image {
	max-width: 100%;
	max-height: 82vh;
	border-radius: 20px;
	object-fit: contain;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	animation: tubuyReviewZoom 0.25s ease;
}

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

.tubuy-review-lightbox-prev,
.tubuy-review-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 54px;
	height: 54px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	color: #ffffff;
	font-size: 34px;
	font-weight: 300;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.2s ease;
}

/* =========================
   PREV BUTTON
========================= */

.tubuy-review-lightbox-prev {
	left: -70px;
}

/* =========================
   NEXT BUTTON
========================= */

.tubuy-review-lightbox-next {
	right: -70px;
}

/* =========================
   BUTTON HOVER
========================= */

.tubuy-review-lightbox-prev:hover,
.tubuy-review-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: translateY(-50%) scale(1.06);
}

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

.tubuy-review-lightbox-close {
	position: absolute;
	top: -60px;
	right: 0;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(239, 68, 68, 0.16);
	backdrop-filter: blur(6px);
	color: #ffffff;
	font-size: 30px;
	font-weight: 300;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.2s ease;
	z-index: 20;
}

/* =========================
   CLOSE HOVER
========================= */

.tubuy-review-lightbox-close:hover {
	background: #ef4444;
	transform: scale(1.06);
}

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

@keyframes tubuyReviewZoom {

	from {
		opacity: 0;
		transform: scale(0.92);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}

}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

	.tubuy-review-gallery-item {
		width: 64px;
		height: 64px;
		border-radius: 12px;
	}

	.tubuy-review-lightbox {
		padding: 16px;
	}

	.tubuy-review-lightbox-prev,
	.tubuy-review-lightbox-next {
		width: 46px;
		height: 46px;
		font-size: 28px;
	}

	.tubuy-review-lightbox-prev {
		left: 8px;
	}

	.tubuy-review-lightbox-next {
		right: 8px;
	}

	.tubuy-review-lightbox-close {
		top: -52px;
		right: 0;
		width: 42px;
		height: 42px;
		font-size: 26px;
	}

	.tubuy-review-lightbox-image {
		border-radius: 16px;
	}

}