/* vdavid Reviews – form + display helpers.
 * Colors are CSS variables so they can be overridden from Elementor › Site Settings › Custom CSS:
 *   .vrev-form { --vrev-accent: #000; }
 */
.vrev-form,
.vrev-average,
.vrev-stars-display {
	--vrev-accent: #1a1a1a;
	--vrev-star: #f5a623;
	--vrev-star-off: #ddd;
	--vrev-border: #e2e2e2;
	--vrev-radius: 10px;
}

.vrev-form {
	max-width: 640px;
	margin: 0 auto;
	direction: rtl;
	text-align: right;
}
.vrev-title { margin: 0 0 20px; }
.vrev-field { margin-bottom: 18px; }
.vrev-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .vrev-row { grid-template-columns: 1fr; gap: 0; } }

.vrev-label { display: block; font-weight: 600; margin-bottom: 6px; }
.vrev-label small { font-weight: 400; opacity: .6; }
.vrev-req { color: #c0392b; }

.vrev-form input[type="text"],
.vrev-form input[type="email"],
.vrev-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--vrev-border);
	border-radius: var(--vrev-radius);
	background: #fff;
	font: inherit;
	transition: border-color .15s;
}
.vrev-form input:focus,
.vrev-form textarea:focus { outline: none; border-color: var(--vrev-accent); }

/* Star picker (RTL: inputs rendered 5→1, so with row-reverse in RTL they show 1..5 right-to-left) */
.vrev-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	direction: ltr;
	gap: 4px;
}
.vrev-stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.vrev-stars label {
	font-size: 34px;
	line-height: 1;
	color: var(--vrev-star-off);
	cursor: pointer;
	transition: color .1s, transform .1s;
}
.vrev-stars label:hover { transform: scale(1.12); }
.vrev-stars input:checked ~ label,
.vrev-stars label:hover,
.vrev-stars label:hover ~ label { color: var(--vrev-star); }
.vrev-stars:hover input:checked ~ label:not(:hover):not(:hover ~ label) { color: var(--vrev-star-off); }
.vrev-stars input:focus-visible + label { outline: 2px solid var(--vrev-accent); outline-offset: 2px; border-radius: 4px; }

/* Upload */
.vrev-drop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	padding: 16px;
	border: 2px dashed var(--vrev-border);
	border-radius: var(--vrev-radius);
	cursor: pointer;
	text-align: center;
	transition: border-color .15s, background .15s;
}
.vrev-drop:hover, .vrev-drop.is-over { border-color: var(--vrev-accent); background: #fafafa; }
.vrev-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vrev-drop-text small { display: block; opacity: .6; margin-top: 4px; }
.vrev-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.vrev-previews img {
	width: 80px; height: 80px; object-fit: cover;
	border-radius: 8px; border: 1px solid var(--vrev-border);
}

.vrev-submit {
	width: 100%;
	padding: 14px 20px;
	border: 0;
	border-radius: var(--vrev-radius);
	background: var(--vrev-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 1.05em;
	cursor: pointer;
	transition: opacity .15s;
}
.vrev-submit:hover { opacity: .88; }
.vrev-submit[disabled] { opacity: .5; cursor: wait; }

.vrev-error {
	padding: 12px 14px; margin-bottom: 18px;
	border-radius: var(--vrev-radius);
	background: #fdecea; color: #922;
}
.vrev-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

.vrev-success { text-align: center; padding: 40px 20px; }
.vrev-success-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--vrev-accent); color: #fff; font-size: 28px; margin-bottom: 12px;
}
.vrev-success p { font-size: 1.15em; margin: 0; }

/* Display: stars (supports fractions for averages) */
.vrev-stars-display {
	position: relative;
	display: inline-block;
	line-height: 1;
	letter-spacing: 2px;
	direction: ltr;
	white-space: nowrap;
}
.vrev-stars-bg { color: var(--vrev-star-off); }
.vrev-stars-fg {
	position: absolute; top: 0; left: 0;
	overflow: hidden; color: var(--vrev-star);
}

.vrev-average {
	display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: var(--vrev-average-size, 18px); line-height: 1;
}
.vrev-average-num { font-weight: 700; }
.vrev-average .vrev-stars-display { font-size: 1em; }
.vrev-average-count { opacity: .65; }

.vrev-meta { opacity: .65; font-size: .9em; }

.vrev-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.vrev-gallery img {
	width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block;
}

/* ---- v1.1: order-based form ---- */
.vrev-notice { padding: 24px; border: 1px solid var(--vrev-border); border-radius: var(--vrev-radius); text-align: center; }
.vrev-again { display: inline-block; width: auto; margin-top: 18px; text-decoration: none; }

.vrev-product-single {
	display: flex; align-items: center; gap: 12px;
	padding: 10px; margin-bottom: 18px;
	border: 1px solid var(--vrev-border); border-radius: var(--vrev-radius);
}
.vrev-product-single img,
.vrev-product-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.vrev-product-single span { font-weight: 600; }

.vrev-products { display: grid; gap: 8px; }
.vrev-product-choice { cursor: pointer; }
.vrev-product-choice input { position: absolute; opacity: 0; }
.vrev-product-card {
	display: flex; align-items: center; gap: 12px; padding: 8px;
	border: 2px solid var(--vrev-border); border-radius: var(--vrev-radius);
	transition: border-color .15s;
}
.vrev-product-choice input:checked + .vrev-product-card { border-color: var(--vrev-accent); }
.vrev-product-choice input:focus-visible + .vrev-product-card { outline: 2px solid var(--vrev-accent); outline-offset: 2px; }

/* ---- Review card helpers ---- */
.vrev-verified {
	display: inline-flex; align-items: center; gap: 3px;
	padding: 2px 9px; border-radius: 999px;
	background: #e7f6ec; color: #1e8e4e;
	font-size: .8em; font-weight: 600; line-height: 1.6; white-space: nowrap;
}

.vrev-product-link,
.vrev-product-link:hover,
.vrev-product-link:focus {
	display: inline-flex; align-items: center; gap: 8px;
	color: inherit; text-decoration: none !important; box-shadow: none;
	font-size: var(--vrev-product-size, 13px);
}
.vrev-product-link * { text-decoration: none !important; }
.vrev-product-link-img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.vrev-product-link-text { display: flex; flex-direction: column; line-height: 1.35; }
.vrev-product-link-text strong { font-weight: 700; font-size: 1em; }
.vrev-product-link-text small { font-size: .85em; font-weight: 600; white-space: nowrap; opacity: .75; }
.vrev-product-link:hover small { opacity: 1; }

/* ---- Font: Google Sans (same as the souvenirs form) ---- */
.vrev-form,
.vrev-form input,
.vrev-form textarea,
.vrev-form button,
.vrev-form .vrev-submit,
.vrev-average,
.vrev-verified,
.vrev-product-link,
.vrev-meta,
.vrev-stars-display {
	font-family: 'Google Sans', 'google sans', 'Assistant', 'Heebo', Arial, sans-serif !important;
}
