/**
 * Offshore Broker Reviews — front-end styles.
 * This file is yours to edit; it is loaded as an external stylesheet so you can
 * restyle reviews to match your theme without touching the plugin PHP.
 */

.wwrv-reviews,
.wwrv-form-wrap {
	--wwrv-star: #e6a817;
	--wwrv-star-off: #d4d4d8;
	--wwrv-border: #e4e4e7;
	--wwrv-ink: #1f2937;
	--wwrv-muted: #6b7280;
	--wwrv-accent: #0f3d2e;
	--wwrv-radius: 10px;
	color: var(--wwrv-ink);
	font-size: 16px;
	line-height: 1.6;
}

/* ---------- Stars ---------- */
.wwrv-stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}

.wwrv-star {
	color: var(--wwrv-star-off);
	font-size: 1.05em;
}

.wwrv-star.wwrv-on {
	color: var(--wwrv-star);
}

/* ---------- Aggregate ---------- */
.wwrv-aggregate {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 16px;
	margin: 0 0 20px;
	border: 1px solid var(--wwrv-border);
	border-radius: var(--wwrv-radius);
	background: #fafafa;
}

.wwrv-aggregate-score {
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1;
}

.wwrv-aggregate .wwrv-stars {
	font-size: 1.3em;
}

.wwrv-aggregate-meta {
	color: var(--wwrv-muted);
	font-size: 0.95em;
}

/* ---------- Review list ---------- */
.wwrv-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wwrv-review {
	padding: 18px 0;
	border-bottom: 1px solid var(--wwrv-border);
}

.wwrv-review:last-child {
	border-bottom: 0;
}

.wwrv-review-head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.wwrv-review-rating .wwrv-stars {
	font-size: 1.1em;
}

.wwrv-review-author {
	font-weight: 600;
}

.wwrv-review-date {
	color: var(--wwrv-muted);
	font-size: 0.9em;
}

.wwrv-review-title {
	margin: 4px 0 6px;
	font-size: 1.1em;
}

.wwrv-review-body {
	margin: 0;
}

.wwrv-review-body p:last-child {
	margin-bottom: 0;
}

.wwrv-review-cf {
	margin-top: 6px;
	font-size: 0.92em;
	color: var(--wwrv-muted);
}

.wwrv-cf-label {
	font-weight: 600;
}

/* ---------- Owner response ---------- */
.wwrv-response {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var(--wwrv-accent);
	background: #f4f7f5;
	border-radius: 0 var(--wwrv-radius) var(--wwrv-radius) 0;
}

.wwrv-response-label {
	display: block;
	font-weight: 700;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wwrv-accent);
	margin-bottom: 4px;
}

.wwrv-response-date {
	display: block;
	font-size: 0.82em;
	color: var(--wwrv-muted);
	margin-bottom: 6px;
}

.wwrv-response-body p:last-child {
	margin-bottom: 0;
}

.wwrv-empty {
	color: var(--wwrv-muted);
}

/* ---------- Notices ---------- */
.wwrv-notice {
	padding: 12px 16px;
	border-radius: var(--wwrv-radius);
	margin: 0 0 16px;
	font-weight: 500;
}

.wwrv-notice-success {
	background: #e8f5ee;
	border: 1px solid #a7d7bd;
	color: #0f3d2e;
}

.wwrv-notice-error {
	background: #fdecec;
	border: 1px solid #f3b4b4;
	color: #8a1c1c;
}

/* ---------- Form ---------- */
.wwrv-form-wrap {
	margin-top: 28px;
}

.wwrv-form {
	max-width: 560px;
}

.wwrv-field {
	margin: 0 0 16px;
}

.wwrv-field label,
.wwrv-field .wwrv-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.wwrv-req {
	color: #b42318;
}

.wwrv-field input[type="text"],
.wwrv-field input[type="email"],
.wwrv-field select,
.wwrv-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wwrv-border);
	border-radius: 8px;
	font: inherit;
	box-sizing: border-box;
}

.wwrv-field select {
	cursor: pointer;
}

.wwrv-field textarea {
	resize: vertical;
}

.wwrv-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	color: var(--wwrv-muted);
}

/* Star rating input — rendered right-to-left so hover fills left-to-right. */
.wwrv-rating-input {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 2px;
	font-size: 1.8em;
	line-height: 1;
}

.wwrv-rating-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.wwrv-rating-input label {
	color: var(--wwrv-star-off);
	cursor: pointer;
	margin: 0;
	transition: color 0.1s ease;
}

.wwrv-rating-input input:checked ~ label,
.wwrv-rating-input label:hover,
.wwrv-rating-input label:hover ~ label {
	color: var(--wwrv-star);
}

.wwrv-rating-input input:focus-visible + label {
	outline: 2px solid var(--wwrv-accent);
	outline-offset: 2px;
}

.wwrv-submit {
	display: inline-block;
	padding: 11px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--wwrv-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.wwrv-submit:hover {
	filter: brightness(1.08);
}

/* ---------- Leave-a-review button ---------- */
.wwrv-button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--wwrv-accent, #0f3d2e);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.12s ease;
}

.wwrv-button:hover,
.wwrv-button:focus {
	color: #fff !important;
	filter: brightness(1.1);
	text-decoration: none;
}

/* Honeypot — hidden from humans, present for bots. */
.wwrv-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
