/**
* All of the CSS for your public-facing functionality should be
* included in this file.
*/

.wiser-reviews-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	position: relative;
}

.wiser-reviews-title {
	text-align: center;
	margin-bottom: 2rem;
	color: #333;
	letter-spacing: 0.14em;
}

/* Carousel Outer */
.wiser-carousel-outer {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

/* Nav Buttons */
.wiser-nav-btn {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	font-size: 40px;
	color: #333 !important;
	cursor: pointer;
	padding: 0 15px;
	z-index: 2;
	transition: transform 0.2s;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.wiser-nav-btn:hover {
	transform: scale(1.1);
}

/* Carousel Inner */
.wiser-carousel-inner {
	flex: 1;
	width: 100%;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 20px;
	padding: 15px 5px;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	/* IE and Edge */
	scrollbar-width: none;
	/* Firefox */
}

.wiser-carousel-inner::-webkit-scrollbar {
	display: none;
}

/* Review Card */
.wiser-review-card {
	flex: 0 0 auto;
	width: 320px;
	background: #f4f5f7;
	border-radius: 8px;
	padding: 20px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	border: 1px solid transparent;
}

.wiser-review-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: #eee;
}

/* Header Info */
.wiser-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.wiser-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	flex-shrink: 0;
}

.wiser-header-info {
	display: flex;
	flex-direction: column;
}

.wiser-name {
	font-weight: 600;
	color: #111;
	font-size: 14px;
}

.wiser-rating {
	display: flex;
	gap: 2px;
}

.wiser-star {
	color: #e0e0e0;
	font-size: 14px;
}

.wiser-star.filled {
	color: #f5a623;
}

/* Body */
.wiser-card-body {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.wiser-title {
	font-weight: 600;
	font-size: 15px;
	margin: 0 0 8px 0;
	color: #111;
}

.wiser-text {
	font-size: 14px;
	color: #333;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wiser-date {
	font-size: 12px;
	color: #888;
	text-align: right;
	margin-top: auto;
	padding-top: 10px;
}

/* Divider */
.wiser-divider {
	border: 0;
	height: 1px;
	background: #e2e2e2;
	margin: 15px 0;
}

/* Footer (Product/Media) */
.wiser-card-footer {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wiser-card-thumb {
	width: 40px;
	height: 40px;
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

.wiser-card-thumb img,
.wiser-card-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wiser-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 14px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.wiser-card-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.wiser-product-name-link {
	text-decoration: none;
	overflow: hidden;
}

.wiser-product-name-link:hover .wiser-product-name {
	text-decoration: underline;
}

.wiser-product-name {
	font-size: 13px;
	color: #111;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}


/* MODAL STYLES */
.wiser-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.wiser-modal-overlay.wiser-active {
	opacity: 1;
	visibility: visible;
}

.wiser-modal-container {
	background: #f4f5f7;
	width: 95%;
	max-width: 1200px;
	max-height: 90vh;
	border-radius: 12px;
	display: flex;
	flex-direction: row;
	overflow: hidden;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wiser-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: rgba(0, 0, 0, 0.2);
	border: none;
	color: #fff;
	font-size: 24px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s;
}

.wiser-modal-close:hover {
	background: rgba(0, 0, 0, 0.5);
}

/* Modal Media Side */
.wiser-modal-left {
	flex: 1;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
}

.wiser-modal-left img,
.wiser-modal-left video {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Modal Text Side */
.wiser-modal-right {
	flex: 1;
	padding: 40px 30px;
	background: #f4f5f7;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.wiser-modal-rating {
	margin-bottom: 20px;
}

.wiser-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.wiser-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wiser-badge {
	font-size: 11px;
	color: #3858e9;
	display: flex;
	align-items: center;
	gap: 4px;
}

.wiser-modal-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 10px 0;
}

.wiser-modal-text {
	font-size: 15px;
	line-height: 1.5;
	flex-grow: 1;
}

.wiser-inline-media {
	margin-top: 10px;
	position: relative;
	width: 100px;
	height: 120px;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f1f1;
}

.wiser-inline-media img,
.wiser-inline-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wiser-inline-media .wiser-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.wiser-modal-product {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
}

.wiser-modal-product img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 4px;
}

.wiser-modal-product a {
	color: #111;
	font-weight: 500;
	text-decoration: none;
	font-size: 14px;
}

.wiser-modal-product a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.wiser-modal-container {
		flex-direction: column;
		max-height: 95vh;
	}

	.wiser-modal-left {
		min-height: 250px;
		max-height: 40vh;
	}

	.wiser-modal-right {
		padding: 20px;
	}
}