/* Star rating on regular comments (posts/pages). WooCommerce styles its own product reviews. */
.aiwr-stars {
	display: inline-flex;
	gap: 1px;
	margin: 0 0 .4em;
	line-height: 1;
	font-size: 1.05em;
}
.aiwr-star { color: #d5d5d5; }
.aiwr-star.is-on { color: #f0a500; }

/* Review photos (both WooCommerce reviews and regular comments). */
.aiwr-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: .6em 0 0;
}
.aiwr-photo {
	display: block;
	line-height: 0;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .08);
}
.aiwr-photo img {
	width: 84px;
	height: 84px;
	object-fit: cover;
	display: block;
	transition: transform .15s;
}
.aiwr-photo:hover img { transform: scale(1.04); }

/* Questions & answers (product tab / [aiwr_questions]). */
.aiwr-qa-list { list-style: none; margin: 0 0 1.5em; padding: 0; }
.aiwr-qa-item { padding: .9em 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.aiwr-qa-q, .aiwr-qa-a { display: grid; grid-template-columns: 4.5em 1fr; gap: .25em .6em; align-items: start; }
.aiwr-qa-a { margin-top: .5em; padding-left: 1.2em; border-left: 3px solid rgba(0, 0, 0, .1); }
.aiwr-qa-label { font-weight: 600; opacity: .7; font-size: .9em; text-transform: uppercase; letter-spacing: .03em; }
.aiwr-qa-text p { margin: 0; }
.aiwr-qa-meta { grid-column: 2; font-size: .85em; opacity: .65; }
.aiwr-qa-form { max-width: 560px; margin-top: 1em; }
.aiwr-qa-form input[type="text"], .aiwr-qa-form textarea { width: 100%; }
.aiwr-qa-hp { position: absolute !important; left: -9999px !important; }
.aiwr-qa-notice { padding: .7em 1em; background: rgba(0, 163, 42, .1); border-left: 3px solid #00a32a; }

/* [aiwr_reviews] list. */
.aiwr-reviews { display: grid; gap: 1em; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aiwr-reviews-title { grid-column: 1 / -1; margin: 0; }
.aiwr-review { padding: 1em 1.1em; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; background: rgba(0, 0, 0, .02); }
.aiwr-review-head { display: flex; justify-content: space-between; gap: .5em; margin-bottom: .3em; }
.aiwr-review-author { font-weight: 600; }
.aiwr-review-date { font-size: .85em; opacity: .65; }
.aiwr-review-text p:last-child { margin-bottom: 0; }
.aiwr-review-item { margin-top: .5em; font-size: .85em; }
