/* ==========================================================================
   Nova Market — product review area
   Loaded only on single product pages.
   ========================================================================== */

.ofosao-reviews { margin-top: 6px; }

.ofosao-reviews__notice {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid #e9e1f0;
	border-radius: 10px;
	background: #f7f3fa;
	font-size: 13px;
	color: #3c3344;
}

.ofosao-reviews__summary {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) 200px;
	gap: 28px;
	align-items: center;
	padding: 22px 24px;
	border: 1px solid #eee7f3;
	border-radius: 16px;
	background: #fff;
}

.ofosao-reviews__score { text-align: left; }
.ofosao-reviews__average { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: #241531; }
.ofosao-reviews__stars { display: flex; gap: 3px; margin: 8px 0 4px; }
.ofosao-reviews__stars svg { width: 17px; height: 17px; display: block; }
.ofosao-reviews__stars .is-full path { fill: #f5b301; }
.ofosao-reviews__stars .is-half path { fill: #f5b301; opacity: .58; }
.ofosao-reviews__stars .is-empty path { fill: #fff; stroke: #ded8ca; stroke-width: 1.4; }
.ofosao-reviews__count { font-size: 12.5px; color: #8b8191; }

.ofosao-reviews__bars { display: flex; flex-direction: column; gap: 6px; }
.ofosao-reviews__bar-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; gap: 10px; align-items: center; }
.ofosao-reviews__bar-label { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #6d6373; }
.ofosao-reviews__bar-label svg { width: 11px; height: 11px; }
.ofosao-reviews__bar-label svg path { fill: #f5b301; }
.ofosao-reviews__bar-track { height: 7px; border-radius: 999px; background: #f1ecf5; overflow: hidden; }
.ofosao-reviews__bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4a0d6b, #c2188a); }
.ofosao-reviews__bar-num { font-size: 11.5px; color: #8b8191; text-align: right; }

.ofosao-reviews__cta { display: flex; flex-direction: column; gap: 8px; justify-self: end; }
.ofosao-reviews__write {
	display: inline-block;
	text-align: center;
	padding: 11px 20px;
	border-radius: 999px;
	background: #241531;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}
.ofosao-reviews__write:hover { background: #3a2450; color: #fff !important; }
.ofosao-reviews__write--ghost { background: #fff; color: #241531 !important; border: 1px solid #e2d8e9; }
.ofosao-reviews__verified-note { font-size: 11.5px; color: #918799; line-height: 1.45; text-align: center; }
.ofosao-reviews__locked { font-size: 12.5px; color: #6d6373; border: 1px dashed #ded3e6; border-radius: 10px; padding: 10px 12px; line-height: 1.5; }

.ofosao-reviews__gate { margin: 16px 0 0; padding: 12px 15px; border: 1px dashed #e3d9ea; border-radius: 12px; background: #faf7fc; font-size: 13px; color: #5d5364; }
.ofosao-reviews__gate a { color: #c2188a; }

.ofosao-reviews__verified { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: #f0f7f1; color: #2f7d43; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.ofosao-reviews__verified svg { width: 11px; height: 11px; }
.ofosao-reviews__verified svg path { stroke: #2f7d43; stroke-width: 2.4; fill: none; }

/* Native WooCommerce review list inside our wrapper ------------------------ */

.ofosao-reviews #comments ol.commentlist { margin: 22px 0 0; }
.ofosao-reviews #comments ol.commentlist li { padding: 18px 0; border-top: 1px solid #f1ecf4; }
.ofosao-reviews #comments ol.commentlist li:first-child { border-top: 0; padding-top: 0; }
.ofosao-reviews .comment-text { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.ofosao-reviews .comment-text .meta { font-size: 12.5px; color: #8b8191; margin: 0 0 6px; }
.ofosao-reviews .comment-text .description p { font-size: 13.5px; line-height: 1.7; color: #3c3344; }
.ofosao-reviews .star-rating { color: #f5b301; }
.ofosao-reviews .star-rating span::before { color: #f5b301; }
.ofosao-reviews .star-rating::before { color: #fff; -webkit-text-stroke: .6px #ded8ca; }

/* Native WooCommerce rating input: empty white, selected yellow. */
.ofosao-reviews #respond p.stars a::before {
	color: #fff;
	-webkit-text-stroke: .6px #ded8ca;
}
.ofosao-reviews #respond p.stars:hover a::before,
.ofosao-reviews #respond p.stars a.active::before,
.ofosao-reviews #respond p.stars.selected a:not(.active)::before {
	color: #f5b301;
	-webkit-text-stroke: 0;
}

/* A gated visitor should not see a form that cannot submit. */
.ofosao-reviews--gated #review_form_wrapper,
.ofosao-reviews--gated #respond { display: none; }

@media (max-width: 900px) {
	.ofosao-reviews__summary { grid-template-columns: 1fr; gap: 16px; }
	.ofosao-reviews__cta { justify-self: start; flex-direction: row; align-items: center; flex-wrap: wrap; }
	.ofosao-reviews__verified-note { text-align: left; }
}

/* Make the review submit button look active on mobile and desktop. */
.ofosao-reviews #respond .form-submit { margin-top: 14px; }
.ofosao-reviews #respond .form-submit input#submit {
background: #2b1b3d;
border: 0;
border-radius: 999px;
color: #fff;
padding: 11px 24px;
font-size: 13px;
font-weight: 700;
cursor: pointer;
}
.ofosao-reviews #respond .form-submit input#submit:hover { background: #8a1e63; }
@media (max-width: 600px) {
.ofosao-reviews #respond .form-submit input#submit { width: 100%; }
}

/* Review list: fixed avatar column, text column. */
.ofosao-reviews #comments ol.commentlist li .comment_container {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
}
.ofosao-reviews #comments ol.commentlist li .comment_container img.avatar {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}
.ofosao-reviews #comments ol.commentlist li .comment-text {
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    grid-column: 2;
    grid-row: 1;
}
.ofosao-reviews #comments ol.commentlist li .comment-text .meta {
    margin: 0 0 7px;
    line-height: 1.5;
}
.ofosao-reviews #comments ol.commentlist li .comment-text .description {
    margin: 0;
    line-height: 1.7;
}
@media (max-width: 600px) {
    .ofosao-reviews #comments ol.commentlist li .comment_container {
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 11px;
    }
    .ofosao-reviews #comments ol.commentlist li .comment_container img.avatar {
        width: 42px !important;
        height: 42px !important;
    }
}
