/* Loop rating (catalog): align to the right edge */
.woocommerce ul.products li.product .price,
li.product .price {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
}

.woocommerce ul.products li.product .price .techno-pr-loop-price-wrap,
li.product .price .techno-pr-loop-price-wrap {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
}

.woocommerce ul.products li.product .price .techno-pr-loop-price-main,
li.product .price .techno-pr-loop-price-main {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}

/* Loop rating (catalog) */
.techno-pr-loop-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 0;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	font-weight: 500;
	margin-left: auto !important;
}
.techno-pr-loop-star {
	display: inline-block;
	color: #e86c03 !important;
	font-size: 14px;
	line-height: 1;
	transform: translateY(-1px);
}
.techno-pr-loop-star--full {
	color: #e86c03 !important;
}
.woocommerce ul.products li.product .techno-pr-loop-rating .techno-pr-loop-star,
li.product .techno-pr-loop-rating .techno-pr-loop-star {
	color: #e86c03 !important;
}
.techno-pr-loop-avg {
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
}
.techno-pr-review-count {
	opacity: 0.8;
	margin-left: 2px;
	font-size: 15px;
	line-height: 1;
	font-weight: 500;
}

@media (max-width: 767px) {
	.woocommerce ul.products li.product .price .techno-pr-loop-price-wrap--sale,
	li.product .price .techno-pr-loop-price-wrap--sale {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.woocommerce ul.products li.product .price .techno-pr-loop-price-wrap--regular,
	li.product .price .techno-pr-loop-price-wrap--regular {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
	}

	.woocommerce ul.products li.product .price .techno-pr-loop-price-main,
	li.product .price .techno-pr-loop-price-main {
		display: inline-flex;
		flex-wrap: wrap;
		row-gap: 2px;
		column-gap: 6px;
	}

	.woocommerce ul.products li.product .price .techno-pr-loop-price-wrap--sale .techno-pr-loop-rating,
	li.product .price .techno-pr-loop-price-wrap--sale .techno-pr-loop-rating {
		align-self: flex-start;
		margin-left: 0 !important;
	}

	.woocommerce ul.products li.product .price .techno-pr-loop-price-wrap--regular .techno-pr-loop-rating,
	li.product .price .techno-pr-loop-price-wrap--regular .techno-pr-loop-rating {
		align-self: flex-end;
		margin-left: auto !important;
	}

	.woocommerce ul.products li.product .techno-pr-loop-rating,
	li.product .techno-pr-loop-rating {
		font-size: 14px;
		gap: 3px;
	}

	.woocommerce ul.products li.product .techno-pr-loop-avg,
	.woocommerce ul.products li.product .techno-pr-review-count,
	li.product .techno-pr-loop-avg,
	li.product .techno-pr-review-count {
		font-size: 14px;
		font-weight: 500;
	}
}

/* Reviews block */
.techno-pr-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 16px 0;
}
.techno-pr-filters__label {
	font-weight: 600;
}
.techno-pr-filters__chk {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.techno-pr-pagination {
	margin: 12px 0;
}
.techno-pr-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0;
}
.techno-pr-pagination a,
.techno-pr-pagination button.techno-pr-page {
	padding: 4px 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	text-decoration: none;
	font: inherit;
	line-height: inherit;
	cursor: pointer;
	background: transparent;
	color: inherit;
}

.techno-pr-loadmore-wrap {
	margin: 10px 0 20px;
}
@media (min-width: 768px) {
	.techno-pr-loadmore-wrap {
		display: none;
	}
}

.techno-pr-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.techno-pr-review-images__link {
	display: block;
	line-height: 0;
}
.techno-pr-review-images__img {
	border-radius: 4px;
}

/* Modal */
.techno-pr-modal[hidden] {
	display: none !important;
}
.techno-pr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.techno-pr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.techno-pr-modal__panel {
	position: relative;
	z-index: 1;
	background: #fff;
	color: #111;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	padding: 24px 20px 20px;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.techno-pr-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.techno-pr-stars {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	gap: 4px;
	margin-bottom: 12px;
}
.techno-pr-stars__btn {
	background: none;
	border: 0;
	font-size: 28px;
	color: #ccc;
	cursor: pointer;
	padding: 0 2px;
	line-height: 1;
}
.techno-pr-stars__btn.is-active {
	color: #e86c03;
}
.techno-pr-field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.techno-pr-form-msg {
	min-height: 1.25em;
	font-weight: 600;
}
.techno-pr-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
body.techno-pr-modal-open {
	overflow: hidden;
}
.techno-pr-hidden-form {
	display: none !important;
}

/* Rating anchor near add-to-cart actions */
.techno-pr-atc-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 10px;
	text-decoration: none;
	color: #fff;
	opacity: 0.9;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}
.techno-pr-atc-rating__star {
	color: #e86c03;
	font-size: 14px;
}
.techno-pr-atc-rating__count {
	opacity: 0.8;
}
.techno-pr-atc-rating--empty {
	color: rgba(255, 255, 255, 0.8);
}
