/*
 * Produktseite – Bewertungsbereich (.hk-reviews)
 *
 * Styles the WooCommerce review markup from woocommerce/single-product-reviews.php
 * (and WC's own single-product/review.php items) in the look of the product
 * template 43156. Elementor has no controls for this markup, so the user approved
 * this scoped stylesheet (2026-10-02). Loaded only on single product pages.
 *
 * WooCommerce's woocommerce.css targets these elements with
 * `.woocommerce #reviews #comments …` (two IDs), so the rules that compete with
 * it are prefixed with `body .hk-reviews#reviews` to win on specificity
 * regardless of load order.
 */

.hk-reviews {
	--hk-font: "Schibsted Grotesk", sans-serif;
	--hk-ink: #1a1815;
	--hk-body: #33312c;
	--hk-muted: #6b6862;
	--hk-label: #9b978f;
	--hk-accent: #00a2ff;
	--hk-accent-hover: #0090e3;
	--hk-border: #e6e3dd;
	--hk-border-strong: #d8d4cc;
	--hk-divider: #edeae4;
	--hk-green: #1f9d55;

	font-family: var(--hk-font);
	color: var(--hk-body);
	padding: 80px 0 88px;
	scroll-margin-top: 90px;
}

/* ---------------------------------------------------------------- head */
.hk-reviews__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--hk-accent);
	margin-bottom: 12px;
}

body .hk-reviews .hk-reviews__title {
	font-family: var(--hk-font);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--hk-ink);
	margin: 0 0 36px;
}

.hk-reviews__grid {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

/* ---------------------------------------------------------------- summary */
.hk-reviews__summary {
	background: #fff;
	border: 1px solid var(--hk-border);
	padding: 28px;
}

.hk-reviews__score {
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -2px;
	color: var(--hk-ink);
	margin-bottom: 12px;
}

.hk-reviews__score span {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--hk-label);
	margin-left: 6px;
}

body .hk-reviews .star-rating {
	float: none;
	font-size: 16px;
	margin: 0;
}

body .hk-reviews .star-rating::before {
	color: var(--hk-border-strong);
}

body .hk-reviews .star-rating span::before {
	color: var(--hk-accent);
}

.hk-reviews__count {
	font-size: 14px;
	color: var(--hk-muted);
	margin: 10px 0 20px;
}

.hk-reviews__bars {
	list-style: none;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--hk-divider);
	display: grid;
	gap: 8px;
}

.hk-reviews__bars li {
	display: grid;
	grid-template-columns: 34px 1fr 24px;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--hk-muted);
}

.hk-reviews__bar-track {
	height: 6px;
	background: var(--hk-divider);
	overflow: hidden;
}

.hk-reviews__bar-track span {
	display: block;
	height: 100%;
	background: var(--hk-accent);
}

.hk-reviews__bar-count {
	text-align: right;
}

.hk-reviews__empty {
	font-size: 15px;
	line-height: 1.6;
	color: var(--hk-muted);
	margin: 0;
}

.hk-reviews__write {
	display: block;
	margin-top: 24px;
	padding: 14px 20px;
	border: 1px solid var(--hk-border-strong);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	color: var(--hk-ink);
	text-decoration: none;
	transition: color .2s, border-color .2s;
}

.hk-reviews__write:hover,
.hk-reviews__write:focus {
	color: var(--hk-accent);
	border-color: var(--hk-accent);
}

/* ---------------------------------------------------------------- list */
body .hk-reviews#reviews #comments ol.commentlist {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

body .hk-reviews#reviews #comments ol.commentlist li {
	margin: 0;
	padding: 24px 0;
	border-bottom: 1px solid var(--hk-divider);
}

body .hk-reviews#reviews #comments ol.commentlist li:first-child {
	padding-top: 0;
}

body .hk-reviews#reviews #comments ol.commentlist li img.avatar {
	display: none;
}

body .hk-reviews#reviews #comments ol.commentlist li .comment-text {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

body .hk-reviews#reviews #comments ol.commentlist li .comment-text .star-rating {
	font-size: 14px;
	margin-bottom: 10px;
}

body .hk-reviews#reviews #comments ol.commentlist li .meta {
	font-size: 13px;
	color: var(--hk-label);
	margin: 0 0 10px;
}

body .hk-reviews#reviews #comments ol.commentlist li .meta strong {
	font-size: 15px;
	font-weight: 600;
	color: var(--hk-ink);
}

body .hk-reviews#reviews #comments ol.commentlist li .meta .woocommerce-review__verified {
	font-style: normal;
	font-weight: 500;
	color: var(--hk-green);
}

body .hk-reviews#reviews #comments ol.commentlist li .description {
	font-size: 16px;
	line-height: 1.65;
	color: var(--hk-body);
}

body .hk-reviews#reviews #comments ol.commentlist li .description p {
	margin: 0 0 10px;
}

body .hk-reviews#reviews #comments ol.commentlist li .description p:last-child {
	margin-bottom: 0;
}

.hk-reviews .woocommerce-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: -16px 0 40px;
	padding: 0;
	border: 0;
}

.hk-reviews .woocommerce-pagination .page-numbers {
	display: block;
	min-width: 36px;
	padding: 8px 10px;
	border: 1px solid var(--hk-border);
	font-size: 14px;
	text-align: center;
	color: var(--hk-ink);
	text-decoration: none;
}

.hk-reviews .woocommerce-pagination .page-numbers.current {
	background: var(--hk-ink);
	border-color: var(--hk-ink);
	color: #fff;
}

/* ---------------------------------------------------------------- form */
body .hk-reviews #review_form_wrapper {
	background: #fff;
	border: 1px solid var(--hk-border);
	padding: 28px 32px 32px;
	scroll-margin-top: 90px;
}

body .hk-reviews .comment-reply-title {
	display: block;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.4px;
	color: var(--hk-ink);
	margin-bottom: 18px;
}

body .hk-reviews #review_form #respond p {
	margin: 0 0 16px;
}

body .hk-reviews #review_form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--hk-ink);
	margin-bottom: 6px;
}

body .hk-reviews #review_form .required {
	color: var(--hk-accent);
	text-decoration: none;
	visibility: visible;
}

body .hk-reviews #review_form input[type="text"],
body .hk-reviews #review_form input[type="email"],
body .hk-reviews #review_form textarea,
body .hk-reviews #review_form select {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--hk-font);
	font-size: 15px;
	color: var(--hk-ink);
	background: #fff;
	border: 1px solid var(--hk-border-strong);
	border-radius: 0;
	padding: 12px 14px;
	box-shadow: none;
}

body .hk-reviews#reviews #comment {
	height: auto;
	min-height: 140px;
}

body .hk-reviews #review_form input:focus,
body .hk-reviews #review_form textarea:focus,
body .hk-reviews #review_form select:focus {
	outline: none;
	border-color: var(--hk-accent);
}

body .hk-reviews #review_form .comment-form-author,
body .hk-reviews #review_form .comment-form-email {
	display: inline-block;
	width: calc(50% - 8px);
	vertical-align: top;
}

body .hk-reviews #review_form .comment-form-author {
	margin-right: 12px;
}

body .hk-reviews .comment-form-rating {
	margin-bottom: 16px;
}

body .hk-reviews p.stars {
	margin: 0;
}

body .hk-reviews p.stars a {
	font-size: 26px;
	margin-right: 4px;
	color: var(--hk-accent);
}

body .hk-reviews .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--hk-muted);
}

body .hk-reviews .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
	color: var(--hk-muted);
	margin: 0;
}

body .hk-reviews#reviews #respond input#submit {
	font-family: var(--hk-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--hk-accent);
	border: 0;
	border-radius: 0;
	padding: 16px 28px;
	transition: background-color .2s;
}

body .hk-reviews#reviews #respond input#submit:hover,
body .hk-reviews#reviews #respond input#submit:focus {
	background: var(--hk-accent-hover);
	color: #fff;
}

.hk-reviews .woocommerce-verification-required,
.hk-reviews .must-log-in {
	font-size: 15px;
	color: var(--hk-muted);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
	.hk-reviews {
		padding: 64px 0 72px;
	}

	.hk-reviews__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.hk-reviews {
		padding: 48px 0 56px;
	}

	body .hk-reviews .hk-reviews__title {
		font-size: 26px;
		letter-spacing: -0.6px;
		margin-bottom: 24px;
	}

	.hk-reviews__summary,
	body .hk-reviews #review_form_wrapper {
		padding: 22px 20px;
	}

	body .hk-reviews #review_form .comment-form-author,
	body .hk-reviews #review_form .comment-form-email {
		display: block;
		width: 100%;
		margin-right: 0;
	}
}

/* ---------------------------------------------------------------- shop replies */
body .hk-reviews#reviews #comments ol.commentlist ul.children {
	list-style: none;
	margin: 18px 0 0;
	padding: 0 0 0 18px;
	border-left: 2px solid var(--hk-accent);
}

body .hk-reviews#reviews #comments ol.commentlist ul.children li {
	padding: 0;
	border: 0;
}

body .hk-reviews#reviews #comments ol.commentlist ul.children .description {
	font-size: 15px;
	color: var(--hk-muted);
}

/*
 * WooCommerce notices on product pages ("… wurde Ihrem Warenkorb hinzugefügt").
 * Their look comes from Site Settings → WooCommerce → Notices; WooCommerce prints them
 * above the Elementor template, so they only get the template's content width here
 * (requested by the user 2026-10-02).
 */
body.single-product > .woocommerce-notices-wrapper:not(:empty) {
	max-width: 1240px;
	margin: 28px auto 0;
	padding: 0 48px;
	box-sizing: content-box;
}

body.single-product > .woocommerce-notices-wrapper > * {
	margin: 0 0 12px;
}

@media (max-width: 1024px) {
	body.single-product > .woocommerce-notices-wrapper:not(:empty) {
		padding: 0 32px;
	}
}

@media (max-width: 767px) {
	body.single-product > .woocommerce-notices-wrapper:not(:empty) {
		margin-top: 16px;
		padding: 0 20px;
	}
}
