/* =====================================================
   Custom Reviews Dropdown Widget — Stylesheet v1.0
   ===================================================== */

.custom-reviews-widget-container {
	max-width: 460px;
	margin: 0 auto;
	background: #fff;
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	border: 1px solid #ebebeb;
	box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────── */
.reviews-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 0;
}

.header-left {
	flex: 1;
}

.widget-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 12px 0;
	letter-spacing: -0.3px;
	line-height: 1.2;
}

.rating-summary {
	display: flex;
	flex-direction: column;
}

.big-rating {
	font-size: 68px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -2px;
}

.out-of-text {
	color: #999;
	font-weight: 600;
	font-size: 14px;
	margin-top: 4px;
}

/* ── Header Right: Logo + Bars ───────────────────── */
.header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.brand-logo {
	height: 32px;
	object-fit: contain;
}

.brand-logo-placeholder {
	width: 80px;
	height: 32px;
	background: #e8e8e8;
	border-radius: 6px;
}

.rating-bars {
	width: 130px;
}

.bar-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
}

.dots {
	display: flex;
	gap: 2px;
	width: 26px;
	justify-content: flex-end;
}

.dot {
	width: 4px;
	height: 4px;
	background: #ccc;
	border-radius: 50%;
}

.bar-bg {
	flex: 1;
	height: 5px;
	background: #efefef;
	border-radius: 3px;
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	background: #bbb;
	border-radius: 3px;
}

.total-ratings-label {
	font-size: 10px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	text-align: right;
	margin-top: 6px;
	letter-spacing: 0.3px;
}

/* ── Tap to Rate ─────────────────────────────────── */
.tap-to-rate {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0;
	border-top: 1px solid #f2f2f2;
	margin-top: 20px;
}

.tap-label {
	color: #aaa;
	font-weight: 600;
	font-size: 14px;
}

.blue-stars {
	display: flex;
	gap: 4px;
}

.blue-star {
	font-size: 30px;
	color: #007bff;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
	line-height: 1;
}

.blue-star:hover {
	transform: scale(1.2);
}

/* ── See All / Toggle ────────────────────────────── */
.toggle-container {
	text-align: center;
	padding: 16px 0 8px;
}

.see-all-btn {
	color: #007bff;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.see-all-btn:hover {
	background: #e8f0fe;
	text-decoration: none;
}

/* ── Reviews Cards ───────────────────────────────── */
.reviews-list-wrapper {
	margin-top: 4px;
}

.reviews-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.review-card {
	background: #fff;
	border: 2px solid #1a1a1a;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.15s ease;
}

.review-card:hover {
	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.12);
}

/* Hidden/visible states — JS also uses slideDown/slideUp but we set the CSS default */
.review-card.is-hidden {
	display: none;
}

.review-card.is-visible {
	display: block;
}

.card-title {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.card-desc {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin: 0 0 14px 0;
}

.card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.user-avatar-placeholder {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #ddd;
	flex-shrink: 0;
}

.username {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Star Rating Circles ─────────────────────────── */
.star-rating {
	display: flex;
	gap: 4px;
	flex-shrink: 0;
}

.orange-circle {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
}

.orange-circle.star-filled {
	background: #ff9500;
	color: #fff;
}

.orange-circle.star-empty {
	background: #e8e8e8;
	color: #bbb;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 420px) {
	.custom-reviews-widget-container {
		padding: 20px 16px;
		border-radius: 18px;
	}
	.big-rating      { font-size: 52px; }
	.widget-title    { font-size: 18px; }
	.rating-bars     { width: 110px; }
}
