/**
 * ChaCha Home — DEV-20 Product Reviews & Social Proof v1.0
 *
 * Presentation only.
 * Review storage, moderation, ratings and verified-owner truth remain owned by
 * WooCommerce / WordPress.
 */

body.single-product
.chacha-review-experience {
	width: 100%;
}


/* ==========================================================
 * 01. REVIEW SUMMARY
 * ========================================================== */

body.single-product
.chacha-review-summary {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	gap: 46px;
	align-items: center;

	margin: 0 0 42px;
	padding: 30px 32px;

	border: 1px solid var(--chacha-subtle, #D7CEC4);
	border-radius: 8px;
	background: var(--chacha-surface, #FFFDFC);
	box-shadow: none;
}

body.single-product
.chacha-review-summary.is-empty {
	grid-template-columns: 1fr;
	max-width: 760px;
	padding-right: 38px;
}

body.single-product
.chacha-review-summary__eyebrow {
	margin: 0 0 8px;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 9px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;

	color: var(--chacha-accent, #B08D57);
}

body.single-product
.chacha-review-summary h2 {
	margin: 0;

	font-family: var(--chacha-font-heading, "Cormorant Garamond", serif);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.05;

	color: var(--chacha-text-strongest, #201A17);
}

body.single-product
.chacha-review-summary__empty-copy {
	max-width: 590px;
	margin: 13px 0 0;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.75;

	color: var(--chacha-text-medium, #6A5F58);
}

body.single-product
.chacha-review-summary__content {
	display: grid;
	grid-template-columns: minmax(150px, 0.62fr) minmax(260px, 1.38fr);
	gap: 34px;
	align-items: center;
}

body.single-product
.chacha-review-summary.has-no-ratings
.chacha-review-summary__content {
	grid-template-columns: 1fr;
}

body.single-product
.chacha-review-summary__score {
	min-width: 0;
}

body.single-product
.chacha-review-summary__average {
	display: block;
	margin: 0 0 8px;

	font-family: var(--chacha-font-heading, "Cormorant Garamond", serif);
	font-size: 46px;
	font-weight: 500;
	line-height: 0.95;

	color: var(--chacha-text-strongest, #201A17);
}

body.single-product
.chacha-review-summary__average span {
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;

	color: var(--chacha-text-medium, #6A5F58);
}

body.single-product
.chacha-review-summary__stars {
	margin: 0 0 8px;
}

body.single-product
.chacha-review-summary__stars .star-rating {
	float: none;
	width: 5.4em;
	margin: 0;

	font-size: 15px;
	letter-spacing: 0.04em;
	color: var(--chacha-accent, #B08D57);
}

body.single-product
.chacha-review-summary__count {
	margin: 0;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.5;

	color: var(--chacha-text-medium, #6A5F58);
}

body.single-product
.chacha-review-summary__distribution {
	display: grid;
	gap: 8px;
}

body.single-product
.chacha-review-summary__row {
	display: grid;
	grid-template-columns: 58px minmax(100px, 1fr) 24px;
	gap: 10px;
	align-items: center;
}

body.single-product
.chacha-review-summary__label,
body.single-product
.chacha-review-summary__value {
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.35;

	color: var(--chacha-text-medium, #6A5F58);
}

body.single-product
.chacha-review-summary__value {
	text-align: right;
}

body.single-product
.chacha-review-summary__bar {
	position: relative;
	display: block;
	height: 4px;
	overflow: hidden;

	border-radius: 999px;
	background: #EDE6DD;
}

body.single-product
.chacha-review-summary__bar > span {
	display: block;
	height: 100%;

	border-radius: inherit;
	background: var(--chacha-accent, #B08D57);
}


/* ==========================================================
 * 02. NATIVE WOOCOMMERCE REVIEW LIST — CHACHA PRESENTATION
 * ========================================================== */

body.single-product
.chacha-review-experience
#reviews
.woocommerce-Reviews-title {
	display: none;
}

body.single-product
.chacha-review-experience.is-empty
#reviews
.woocommerce-noreviews {
	display: none;
}

body.single-product
.chacha-review-experience
#reviews
#comments {
	margin: 0 0 38px;
}

body.single-product
.chacha-review-experience
#reviews
.commentlist {
	margin: 0;
}

body.single-product
.chacha-review-experience
#reviews
.commentlist li.review {
	margin: 0;
	padding: 25px 0;
}

body.single-product
.chacha-review-experience
#reviews
.commentlist li.review:first-child {
	padding-top: 0;
}

body.single-product
.chacha-review-experience
#reviews
.commentlist
.comment_container {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

body.single-product
.chacha-review-experience
#reviews
#comments
ol.commentlist
li
.comment_container
> img.avatar {
	position: static;
	float: none;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;

	border: 1px solid var(--chacha-subtle, #D7CEC4);
	border-radius: 50%;
	background: #F6F1EB;
}

body.single-product
.chacha-review-experience
#reviews
.commentlist
.comment-text {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.single-product
.chacha-review-experience
#reviews
.commentlist
.comment-text > .star-rating {
	float: right;
	margin: 1px 0 8px 14px;

	font-size: 13px;
	color: var(--chacha-accent, #B08D57);
}

body.single-product
.chacha-review-experience
#reviews
.commentlist
.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;

	margin: 0 0 11px !important;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 10px !important;
	line-height: 1.5;

	color: var(--chacha-text-medium, #6A5F58) !important;
}

body.single-product
.chacha-review-experience
.woocommerce-review__author {
	font-size: 11px;
	font-weight: 600;
	color: var(--chacha-text-strongest, #201A17);
}

body.single-product
.chacha-review-experience
.woocommerce-review__verified.verified {
	display: inline-flex;
	align-items: center;
	gap: 5px;

	margin: 0;
	padding: 3px 7px;

	border: 1px solid #D8C7A8;
	border-radius: 999px;
	background: #FBF7F0;

	font-style: normal;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.2;

	color: #7B623C;
}

body.single-product
.chacha-review-experience
.woocommerce-review__verified.verified::before {
	content: "✓";
	font-size: 9px;
	line-height: 1;
}

body.single-product
.chacha-review-experience
.woocommerce-review__dash {
	color: #B9AEA3;
}

body.single-product
.chacha-review-experience
.woocommerce-review__published-date {
	color: var(--chacha-text-medium, #6A5F58);
}

body.single-product
.chacha-review-experience
#reviews
.commentlist
.description {
	clear: both;
}

body.single-product
.chacha-review-experience
#reviews
.commentlist
.description p {
	margin: 0;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.75;

	color: var(--chacha-text-strong, #3B322D);
}


/* ==========================================================
 * 03. REVIEW FORM
 * ========================================================== */

body.single-product
.chacha-review-experience
#review_form_wrapper {
	margin-top: 34px;
	padding: 28px 30px;

	border: 1px solid var(--chacha-subtle, #D7CEC4);
	border-radius: 8px;
	background: #FBF8F4;
}

body.single-product
.chacha-review-experience
#reply-title {
	display: block;
	margin: 0 0 19px;

	font-family: var(--chacha-font-heading, "Cormorant Garamond", serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.08;

	color: var(--chacha-text-strongest, #201A17);
}

body.single-product
.chacha-review-experience
#review_form
form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

body.single-product
.chacha-review-experience
#review_form
.comment-notes,
body.single-product
.chacha-review-experience
#review_form
.comment-form-rating,
body.single-product
.chacha-review-experience
#review_form
.comment-form-comment,
body.single-product
.chacha-review-experience
#review_form
.form-submit,
body.single-product
.chacha-review-experience
#review_form
.must-log-in,
body.single-product
.chacha-review-experience
#review_form
.logged-in-as,
body.single-product
.chacha-review-experience
#review_form
.comment-form-cookies-consent {
	grid-column: 1 / -1;
}

body.single-product
.chacha-review-experience
#review_form p {
	margin: 0;
}

body.single-product
.chacha-review-experience
#review_form label {
	display: block;
	margin: 0 0 7px;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;

	color: var(--chacha-text-strong, #3B322D);
}

body.single-product
.chacha-review-experience
#review_form input[type="text"],
body.single-product
.chacha-review-experience
#review_form input[type="email"],
body.single-product
.chacha-review-experience
#review_form textarea,
body.single-product
.chacha-review-experience
#review_form select {
	width: 100%;

	border: 1px solid #D7CEC4;
	border-radius: 5px;
	background: #FFFDFC;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 12px;
	line-height: 1.45;
	color: var(--chacha-text-strongest, #201A17);

	box-shadow: none;
}

body.single-product
.chacha-review-experience
#review_form input[type="text"],
body.single-product
.chacha-review-experience
#review_form input[type="email"],
body.single-product
.chacha-review-experience
#review_form select {
	height: 44px;
	padding: 0 12px;
}

body.single-product
.chacha-review-experience
#review_form textarea {
	min-height: 132px;
	padding: 11px 12px;
	resize: vertical;
}

body.single-product
.chacha-review-experience
#review_form input:focus,
body.single-product
.chacha-review-experience
#review_form textarea:focus,
body.single-product
.chacha-review-experience
#review_form select:focus {
	outline: none;
	border-color: var(--chacha-accent, #B08D57);
	box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.10);
}

body.single-product
.chacha-review-experience
#review_form
.comment-form-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

body.single-product
.chacha-review-experience
#review_form
.comment-form-rating > label {
	margin: 0;
}

body.single-product
.chacha-review-experience
#review_form
p.stars {
	margin: 0 !important;
}

body.single-product
.chacha-review-experience
#review_form
p.stars a {
	color: var(--chacha-accent, #B08D57);
}

body.single-product
.chacha-review-experience
#review_form
.form-submit input[type="submit"] {
	min-height: 44px;
	padding: 0 22px;

	border: 1px solid var(--chacha-text-strongest, #201A17);
	border-radius: 5px;
	background: var(--chacha-text-strongest, #201A17);

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: var(--chacha-button-standard-size);
	font-weight: var(--chacha-button-standard-weight);
	line-height: var(--chacha-button-standard-line-height);
	letter-spacing: var(--chacha-button-standard-letter-spacing);
	text-transform: var(--chacha-button-text-transform);

	color: #FFFDFC;
	cursor: pointer;

	transition:
		background 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

body.single-product
.chacha-review-experience
#review_form
.form-submit input[type="submit"]:hover {
	border-color: var(--chacha-accent-dark, #8F6F3F);
	background: var(--chacha-accent-dark, #8F6F3F);
}

body.single-product
.chacha-review-experience
.must-log-in,
body.single-product
.chacha-review-experience
.woocommerce-verification-required {
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 11px;
	line-height: 1.65;
	color: var(--chacha-text-medium, #6A5F58);
}

body.single-product
.chacha-review-experience
.must-log-in a {
	color: var(--chacha-text-strongest, #201A17);
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* ==========================================================
 * 04. PAGINATION / ACCESSIBILITY
 * ========================================================== */

body.single-product
.chacha-review-experience
.woocommerce-pagination {
	margin: 25px 0 0;
}

body.single-product
.chacha-review-experience
.woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 8px;
	justify-content: flex-start;

	border: 0;
}

body.single-product
.chacha-review-experience
.woocommerce-pagination ul.page-numbers li {
	border: 0;
}

body.single-product
.chacha-review-experience
.woocommerce-pagination .page-numbers a,
body.single-product
.chacha-review-experience
.woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;

	border: 1px solid #D7CEC4;
	border-radius: 4px;
	background: transparent;

	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 10px;
	color: var(--chacha-text-strong, #3B322D);
}

body.single-product
.chacha-review-experience
.woocommerce-pagination .page-numbers .current {
	border-color: var(--chacha-text-strongest, #201A17);
	background: var(--chacha-text-strongest, #201A17);
	color: #FFFDFC;
}

body.single-product
.chacha-review-experience a:focus-visible,
body.single-product
.chacha-review-experience button:focus-visible,
body.single-product
.chacha-review-experience input:focus-visible,
body.single-product
.chacha-review-experience textarea:focus-visible,
body.single-product
.chacha-review-experience select:focus-visible {
	outline: 2px solid var(--chacha-accent, #B08D57);
	outline-offset: 2px;
}


/* ==========================================================
 * 05. RESPONSIVE
 * ========================================================== */

@media (max-width: 1024px) {
	body.single-product
	.chacha-review-summary {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	body.single-product
	.chacha-review-summary__content {
		grid-template-columns: minmax(140px, 0.52fr) minmax(260px, 1.48fr);
	}
}

@media (max-width: 767px) {
	body.single-product
	.chacha-review-summary {
		gap: 22px;
		margin-bottom: 30px;
		padding: 22px 18px;
	}

	body.single-product
	.chacha-review-summary.is-empty {
		padding-right: 18px;
	}

	body.single-product
	.chacha-review-summary__content {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	body.single-product
	.chacha-review-summary__average {
		font-size: 40px;
	}

	body.single-product
	.chacha-review-summary__row {
		grid-template-columns: 54px minmax(80px, 1fr) 22px;
		gap: 8px;
	}

	body.single-product
	.chacha-review-experience
	#reviews
	.commentlist
	.comment_container {
		grid-template-columns: 38px minmax(0, 1fr);
		gap: 12px;
	}

	body.single-product
.chacha-review-experience
#reviews
#comments
ol.commentlist
li
.comment_container
> img.avatar {
		width: 36px;
		height: 36px;
	}

	body.single-product
	.chacha-review-experience
	#reviews
	.commentlist
	.comment-text > .star-rating {
		float: none;
		margin: 0 0 8px;
	}

	body.single-product
	.chacha-review-experience
	#review_form_wrapper {
		padding: 22px 18px;
	}

	body.single-product
	.chacha-review-experience
	#review_form
	form {
		grid-template-columns: 1fr;
	}

	body.single-product
	.chacha-review-experience
	#review_form
	.comment-form-author,
	body.single-product
	.chacha-review-experience
	#review_form
	.comment-form-email {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product
	.chacha-review-experience * {
		scroll-behavior: auto !important;
	}
}

/**
 * ==========================================================
 * DEV-20 v1.1 — VERIFIED REVIEW LIFECYCLE
 * ==========================================================
 */

/* Native Woo form remains the data-system fallback in source, but ChaCha's
 * verified-purchase editor owns the visible create/edit experience. */
body.single-product
.chacha-review-experience
#review_form_wrapper,
body.single-product
.chacha-review-experience
.woocommerce-verification-required {
	display: none !important;
}

.chacha-review-gate,
.chacha-review-editor {
	margin-top: 28px;
	padding: 28px;
	border: 1px solid var(--chacha-border-soft);
	border-radius: 8px;
	background: #FFFDFC;
	box-shadow: none;
}

.chacha-review-gate {
	max-width: 780px;
}

.chacha-review-gate h3,
.chacha-review-editor h3 {
	margin: 4px 0 10px;
	font-family: var(--chacha-font-heading, "Cormorant Garamond", serif);
	font-size: clamp(25px, 3vw, 34px);
	font-weight: 500;
	line-height: 1.05;
	color: #201A17;
}

.chacha-review-gate p,
.chacha-review-editor__intro {
	margin: 0;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 13px;
	line-height: 1.7;
	color: #6A5F58;
}

.chacha-review-gate__button,
.chacha-review-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 18px;
	padding: 0 22px;
	border: 1px solid #201A17;
	border-radius: 5px;
	background: #201A17;
	color: #FFFDFC !important;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.chacha-review-gate__button:hover,
.chacha-review-gate__button:focus-visible,
.chacha-review-form__submit:hover,
.chacha-review-form__submit:focus-visible {
	border-color: #6A5F58;
	background: #6A5F58;
	color: #FFFDFC !important;
}

.chacha-review-form__submit:disabled {
	opacity: .58;
	cursor: wait;
}

.chacha-review-editor__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.chacha-review-editor__eyebrow {
	margin: 0;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 9px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #B08D57;
}

.chacha-review-editor__status {
	flex: 0 0 auto;
	padding: 7px 10px;
	border: 1px solid #D7CEC4;
	border-radius: 999px;
	background: var(--chacha-surface-soft);
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 9px;
	font-weight: 600;
	line-height: 1;
	color: #6A5F58;
}

.chacha-review-form {
	display: grid;
	gap: 22px;
	margin-top: 24px;
}

.chacha-review-form__rating {
	margin: 0;
	padding: 0;
	border: 0;
}

.chacha-review-form__rating legend,
.chacha-review-form__field > label {
	display: block;
	margin-bottom: 9px;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	color: #201A17;
}

.chacha-review-form__stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 3px;
}

.chacha-review-form__stars input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.chacha-review-form__stars label {
	margin: 0;
	padding: 2px;
	font-size: 30px;
	line-height: 1;
	color: #D7CEC4;
	cursor: pointer;
	transition: color 120ms ease, transform 120ms ease;
}

.chacha-review-form__stars input:checked ~ label,
.chacha-review-form__stars label:hover,
.chacha-review-form__stars label:hover ~ label {
	color: #B08D57;
}

.chacha-review-form__stars input:focus-visible + label {
	outline: 2px solid #B08D57;
	outline-offset: 3px;
	border-radius: 3px;
}

.chacha-review-form__field textarea {
	width: 100%;
	min-height: 150px;
	padding: 14px 15px;
	border: 1px solid #D7CEC4;
	border-radius: 5px;
	background: #FFFDFC;
	box-sizing: border-box;
	resize: vertical;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 13px;
	line-height: 1.65;
	color: #201A17;
}

.chacha-review-form__field textarea:focus {
	outline: none;
	border-color: #B08D57;
	box-shadow: 0 0 0 2px rgba(176, 141, 87, .09);
}

.chacha-review-form__field small {
	display: block;
	margin-top: 7px;
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 10px;
	line-height: 1.5;
	color: #8B817B;
}

.chacha-review-upload {
	padding: 18px;
	border: 1px solid #E4DDD4;
	border-radius: 6px;
	background: var(--chacha-surface-soft);
}

.chacha-review-upload__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
}

.chacha-review-upload__heading strong,
.chacha-review-upload__heading span {
	display: block;
	font-family: var(--chacha-font-body, Inter, sans-serif);
}

.chacha-review-upload__heading strong {
	font-size: 11px;
	font-weight: 600;
	color: #201A17;
}

.chacha-review-upload__heading > div > span {
	margin-top: 3px;
	font-size: 9px;
	line-height: 1.5;
	color: #8B817B;
}

.chacha-review-upload__heading .chacha-review-upload__count {
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 600;
	color: #6A5F58;
}

.chacha-review-upload__existing,
.chacha-review-upload__preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.chacha-review-upload__existing-item,
.chacha-review-upload__preview figure {
	position: relative;
	width: 78px;
	height: 78px;
	margin: 0;
	border: 1px solid #D7CEC4;
	border-radius: 5px;
	overflow: hidden;
	background: #FFFDFC;
}

.chacha-review-upload__existing-item img,
.chacha-review-upload__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chacha-review-upload__existing-item > span {
	position: absolute;
	left: 4px;
	right: 4px;
	bottom: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 4px;
	border-radius: 4px;
	background: rgba(32, 26, 23, .82);
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 8px;
	color: #FFFDFC;
}

.chacha-review-upload__existing-item.is-removed img {
	opacity: .3;
}

.chacha-review-upload__picker {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	padding: 12px 14px;
	border: 1px dashed #CFC3B8;
	border-radius: 5px;
	background: #FFFDFC;
	cursor: pointer;
}

.chacha-review-upload__picker input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.chacha-review-upload__picker:focus-within {
	border-color: #B08D57;
	box-shadow: 0 0 0 2px rgba(176, 141, 87, .09);
}

.chacha-review-upload__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border: 1px solid #D7CEC4;
	border-radius: 50%;
	font-size: 20px;
	font-weight: 300;
	color: #6A5F58;
}

.chacha-review-upload__picker strong,
.chacha-review-upload__picker small {
	font-family: var(--chacha-font-body, Inter, sans-serif);
}

.chacha-review-upload__picker strong {
	font-size: 10px;
	font-weight: 600;
	color: #201A17;
}

.chacha-review-upload__picker small {
	margin-left: auto;
	font-size: 9px;
	color: #8B817B;
}

.chacha-review-form__status,
.chacha-review-notice {
	padding: 11px 13px;
	border: 1px solid #D7CEC4;
	border-radius: 4px;
	background: var(--chacha-surface-soft);
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 11px;
	line-height: 1.5;
	color: #3B322D;
}

.chacha-review-form__status.is-error,
.chacha-review-notice.is-error {
	border-color: #D9B3B3;
	background: #FFF7F7;
	color: #8A3336;
}

.chacha-review-form__status.is-success,
.chacha-review-notice.is-success {
	border-color: #B9C6B5;
	background: #F7FBF7;
	color: #2F6B4F;
}

.chacha-review-form__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.chacha-review-form__actions .chacha-review-form__submit {
	margin-top: 0;
}

.chacha-review-form__actions > span {
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 9px;
	line-height: 1.5;
	color: #8B817B;
}

.chacha-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.chacha-review-images__item {
	width: 76px;
	height: 76px;
	padding: 0;
	border: 1px solid #D7CEC4;
	border-radius: 5px;
	overflow: hidden;
	background: #FFFDFC;
	cursor: zoom-in;
}

.chacha-review-images__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 160ms ease;
}

.chacha-review-images__item:hover img,
.chacha-review-images__item:focus-visible img {
	transform: scale(1.035);
}

.chacha-review-lightbox[hidden] {
	display: none !important;
}

.chacha-review-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.chacha-review-lightbox__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: rgba(32, 26, 23, .82);
	cursor: zoom-out;
}

.chacha-review-lightbox__dialog {
	position: relative;
	z-index: 1;
	max-width: min(920px, 92vw);
	max-height: 88vh;
	padding: 12px;
	border-radius: 6px;
	background: #FFFDFC;
}

.chacha-review-lightbox__dialog img {
	display: block;
	max-width: 100%;
	max-height: calc(88vh - 24px);
	object-fit: contain;
}

.chacha-review-lightbox__close {
	position: absolute;
	top: -14px;
	right: -14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #D7CEC4;
	border-radius: 50%;
	background: #FFFDFC;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	color: #201A17;
	cursor: pointer;
}

html.chacha-review-lightbox-open {
	overflow: hidden;
}

@media (max-width: 760px) {
	.chacha-review-gate,
	.chacha-review-editor {
		padding: 20px 16px;
	}

	.chacha-review-editor__heading,
	.chacha-review-upload__heading,
	.chacha-review-form__actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.chacha-review-upload__picker {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.chacha-review-upload__picker small {
		width: 100%;
		margin-left: 44px;
	}

	.chacha-review-form__submit {
		width: 100%;
	}

	.chacha-review-lightbox {
		padding: 14px;
	}

	.chacha-review-lightbox__close {
		top: 6px;
		right: 6px;
	}
}

.chacha-review-verified-fallback {
	display: inline-flex;
	align-items: center;
	margin: 4px 0 0;
	padding: 5px 8px;
	border: 1px solid #D7CEC4;
	border-radius: 999px;
	background: var(--chacha-surface-soft);
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 8px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #6A5F58;
}

/* DEV-20 v1.1 — removable previews for newly selected review photos. */
.chacha-review-upload__preview-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(32, 26, 23, .14);
	border-radius: 50%;
	background: rgba(255, 253, 252, .94);
	box-shadow: 0 2px 8px rgba(32, 26, 23, .10);
	font-family: var(--chacha-font-body, Inter, sans-serif);
	font-size: 17px;
	line-height: 1;
	color: #201A17;
	cursor: pointer;
}

.chacha-review-upload__preview-remove:hover,
.chacha-review-upload__preview-remove:focus-visible {
	border-color: #B08D57;
	color: #8F6F3F;
	outline: none;
}

/**
 * ==========================================================
 * DEV-UI-ACCOUNT-REVIEW-POLISH-01
 * REVIEW LIGHTBOX BACKDROP HARDENING
 * ==========================================================
 *
 * The backdrop is intentionally not a button. Theme/global button hover
 * rules must never recolor the full-screen review viewer.
 */
.chacha-review-lightbox__backdrop,
.chacha-review-lightbox__backdrop:hover,
.chacha-review-lightbox__backdrop:focus,
.chacha-review-lightbox__backdrop:active {
	position:
		absolute;

	inset:
		0;

	width:
		100%;

	height:
		100%;

	margin:
		0;

	padding:
		0;

	border:
		0;

	border-radius:
		0;

	background:
		rgba(
			32,
			26,
			23,
			0.82
		) !important;

	box-shadow:
		none !important;

	outline:
		none;

	cursor:
		zoom-out;
}
