/* Custom Product Reviews — WPBakery element styles
   Scoped under .cprvc-reviews so nothing here can leak into the rest of the site. */

.cprvc-reviews {
	max-width: 100%;
}

.cprvc-reviews__title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 24px;
	color: #000;
}

/* ---- Ratings summary ---- */
.cprvc-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
	padding: 24px;
	margin-bottom: 32px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
}

.cprvc-summary__score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 120px;
	text-align: center;
}

.cprvc-summary__number {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	color: #3E63AF;
}

.cprvc-summary__count {
	font-size: 13px;
	color: #777;
}

.cprvc-summary__breakdown {
	flex: 1;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cprvc-summary__bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.cprvc-summary__bar-label {
	width: 28px;
	flex-shrink: 0;
	color: #000;
}

.cprvc-summary__bar-track {
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.cprvc-summary__bar-fill {
	display: block;
	height: 100%;
	background: #3E63AF;
	border-radius: 4px;
}

.cprvc-summary__bar-count {
	width: 28px;
	flex-shrink: 0;
	text-align: right;
	color: #777;
}

/* ---- Review cards ---- */
.cprvc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.cprvc-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 20px;
	background: #fff;
}

.cprvc-card__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.cprvc-card__avatar {
	border-radius: 50%;
	width: 48px;
	height: 48px;
}

.cprvc-card__author {
	font-weight: 600;
	color: #000;
}

.cprvc-card__date {
	font-size: 13px;
	color: #777;
}

.cprvc-card__stars {
	margin-bottom: 10px;
}

.cprvc-card__text {
	font-size: 14px;
	color: #000;
	line-height: 1.6;
}

.cprvc-card__text p:last-child {
	margin-bottom: 0;
}

.cprvc-no-reviews {
	color: #777;
	margin-bottom: 32px;
}

/* ---- Write a review form ---- */
.cprvc-write-review #reply-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 16px;
	color: #000;
}

.cprvc-form p {
	margin-bottom: 16px;
}

.cprvc-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #000;
}

.cprvc-form input[type="text"],
.cprvc-form input[type="email"],
.cprvc-form select,
.cprvc-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	font-size: 14px;
}

.cprvc-form textarea {
	resize: vertical;
}

.cprvc-form .required {
	color: #e02b27;
}

.cprvc-write-review .form-submit input[type="submit"] {
	background-color: #3E63AF;
	border: 1px solid #3E63AF;
	color: #fff;
	padding: 14px 28px;
	border-radius: 7px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cprvc-write-review .form-submit input[type="submit"]:hover {
	background-color: #fff;
	color: #3E63AF;
}
