/* ==========================================================================
   Drunel Product Reviews (.drunel-prev)
   ========================================================================== */

/* --- Summary Box --- */

.drunel-prev__summary {
	background-color: #f8f8f8;
	padding: 24px;
	border-radius: 8px;
	margin-bottom: 24px;
}

.drunel-prev__summary-top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.drunel-prev__avg-number {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	color: #333;
}

.drunel-prev__summary-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.drunel-prev__count {
	font-size: 14px;
	color: #666;
}

/* --- Stars --- */

.drunel-prev__stars {
	display: inline-flex;
	gap: 2px;
	font-size: 16px;
	line-height: 1;
}

.drunel-prev__star--filled {
	color: #f5a623;
}

.drunel-prev__star--half {
	color: #f5a623;
	opacity: .7;
}

.drunel-prev__star--empty {
	color: #d0d0d0;
}

/* --- Distribution Bars --- */

.drunel-prev__bars {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.drunel-prev__bar-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.drunel-prev__bar-label {
	flex: 0 0 28px;
	font-size: 13px;
	text-align: right;
	color: #555;
}

.drunel-prev__bar-track {
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background-color: #e0e0e0;
	overflow: hidden;
}

.drunel-prev__bar-fill {
	height: 100%;
	border-radius: 4px;
	background-color: #f5a623;
	transition: width .4s ease;
}

.drunel-prev__bar-pct {
	flex: 0 0 36px;
	font-size: 13px;
	color: #777;
	text-align: right;
}

/* --- Review Cards --- */

.drunel-prev__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.drunel-prev__review {
	padding: 20px;
	background-color: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	transition: box-shadow .2s ease;
}

.drunel-prev__review:last-child {
	margin-bottom: 0;
}

.drunel-prev__review-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

/* --- Avatar --- */

.drunel-prev__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drunel-prev__avatar--initials {
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	line-height: 40px;
	text-align: center;
}

.drunel-prev__avatar--gravatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.drunel-prev__avatar--icon {
	background-color: #e0e0e0;
	color: #888;
}

.drunel-prev__avatar--icon svg {
	width: 60%;
	height: 60%;
}

/* --- Review Meta --- */

.drunel-prev__review-meta {
	flex: 1;
	min-width: 0;
}

.drunel-prev__author-line {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 2px;
}

.drunel-prev__author {
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.drunel-prev__verified {
	font-size: 12px;
	color: #4caf50;
	font-weight: 500;
}

.drunel-prev__rating-line {
	display: flex;
	align-items: center;
	gap: 8px;
}

.drunel-prev__date {
	font-size: 13px;
	color: #999;
}

.drunel-prev__text {
	font-size: 14px;
	line-height: 1.6;
	color: #444;
}

.drunel-prev__empty {
	padding: 24px 0;
	text-align: center;
	color: #888;
	font-size: 14px;
}

/* --- Pagination --- */

.drunel-prev__load-more-wrap {
	text-align: center;
	margin-bottom: 24px;
}

.drunel-prev__load-more {
	display: inline-block;
	padding: 10px 28px;
	border: 1px solid #ddd;
	background: transparent;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: background-color .2s, border-color .2s;
}

.drunel-prev__load-more:hover {
	background-color: #f5f5f5;
	border-color: #bbb;
}

.drunel-prev__load-more.is-loading {
	opacity: .6;
	pointer-events: none;
}

.drunel-prev__pagination {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 24px;
}

.drunel-prev__page {
	min-width: 36px;
	height: 36px;
	border: 1px solid #ddd;
	background: transparent;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	transition: background-color .2s, border-color .2s;
}

.drunel-prev__page:hover {
	background-color: #f5f5f5;
	border-color: #bbb;
}

.drunel-prev__page--active {
	background-color: #333;
	color: #fff;
	border-color: #333;
}

/* --- Form --- */

.drunel-prev__form-wrap {
	padding-top: 24px;
	border-top: 1px solid #eaeaea;
}

.drunel-prev__form-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: #333;
}

.drunel-prev__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.drunel-prev__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.drunel-prev__field-label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.drunel-prev__field-label .required {
	color: #e53935;
	text-decoration: none;
	border: none;
}

.drunel-prev__fields-row {
	display: flex;
	gap: 16px;
}

.drunel-prev__field--half {
	flex: 1;
}

.drunel-prev .drunel-prev__input,
.drunel-prev .drunel-prev__textarea {
	padding: 10px 12px;
	border-width: 1px;
	border-style: solid;
	border-color: #ddd;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
	transition: border-color .2s;
	width: 100%;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.drunel-prev .drunel-prev__input:focus,
.drunel-prev .drunel-prev__textarea:focus {
	outline: none;
	border-color: #888;
}

.drunel-prev__textarea {
	resize: vertical;
	min-height: 100px;
}

/* --- Star Selector --- */

.drunel-prev__star-select {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.drunel-prev__star-buttons {
	display: flex;
	gap: 4px;
}

.drunel-prev .drunel-prev__star-btn {
	all: unset;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-size: 26px;
	cursor: pointer;
	color: #d0d0d0;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	line-height: 1;
	transition: color .15s, transform .15s;
	-webkit-appearance: none;
	appearance: none;
}

.drunel-prev .drunel-prev__star-btn .drunel-prev__star-svg {
	width: 28px;
	height: 28px;
	display: block;
	pointer-events: none;
}

.drunel-prev .drunel-prev__star-btn:hover {
	color: #f5a623;
	transform: scale(1.2);
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

.drunel-prev .drunel-prev__star-btn.is-active {
	color: #f5a623;
	background: none !important;
	border: none !important;
}

/* --- Submit Button --- */

.drunel-prev__submit {
	display: inline-block;
	padding: 12px 28px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s;
	align-self: flex-start;
}

.drunel-prev__submit:hover {
	background-color: #555;
}

.drunel-prev__submit.is-loading {
	opacity: .6;
	pointer-events: none;
}

/* --- Honeypot (must be hidden from real users) --- */

.drunel-prev__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* --- Form Messages --- */

.drunel-prev__form-msg {
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	margin-top: 8px;
}

.drunel-prev__form-msg--success {
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}

.drunel-prev__form-msg--error {
	background-color: #fbe9e7;
	color: #c62828;
	border: 1px solid #ffcdd2;
}

/* --- Login Message --- */

.drunel-prev__login-msg {
	font-size: 14px;
	color: #666;
}

.drunel-prev__login-msg a {
	color: #1976d2;
	text-decoration: underline;
}

/* --- Placeholder (editor) --- */

.drunel-prev--placeholder {
	text-align: center;
	padding: 40px 20px;
	background: #f5f5f5;
	border: 2px dashed #ccc;
	border-radius: 8px;
	color: #888;
	font-size: 14px;
}

/* --- Responsive --- */

@media (max-width: 480px) {

	.drunel-prev__summary-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.drunel-prev__avg-number {
		font-size: 36px;
	}

	.drunel-prev__fields-row {
		flex-direction: column;
		gap: 16px;
	}
}

/* --- Two-column layout --- */

@media (min-width: 768px) {

	.drunel-prev--two-col {
		display: grid;
		grid-template-columns: 340px 1fr;
		gap: 32px;
		align-items: start;
		min-height: 0;
	}

	.drunel-prev--two-col .drunel-prev__sidebar {
		position: sticky;
		top: 20px;
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.drunel-prev--two-col .drunel-prev__main {
		min-width: 0;
	}

	.drunel-prev--two-col .drunel-prev__summary {
		margin-bottom: 0;
	}

	.drunel-prev--two-col .drunel-prev__form-wrap {
		border-top: none;
		padding-top: 0;
	}
}

@media (max-width: 767px) {

	.drunel-prev--two-col {
		display: flex;
		flex-direction: column;
	}
}
