/* Product reviews — scoped to #reviews. Tokens match the Kooker theme. */
#reviews {
	--kr-brass: #bb9230;
	--kr-brass-text: #8a6a1c;
	--kr-ink: #0a0a0a;
	--kr-text: #444;
	--kr-muted: #7e7e7e;
	--kr-line: #e8e2d4;
	--kr-bg: #faf7f0;
	max-width: 760px;
	margin: 0 auto;
}

#reviews .woocommerce-Reviews-title {
	font-family: Cormorant, serif;
	font-weight: 600;
	font-size: 32px;
	color: var(--kr-ink);
	margin: 0 0 20px;
}
#reviews .woocommerce-Reviews-title:after,
#reviews .comment-reply-title:after { content: none; display: none; }

/* Empty state */
#reviews .woocommerce-noreviews {
	margin: 0 0 32px;
	color: var(--kr-muted);
	font-size: 16px;
}

/* Form card */
#reviews #review_form_wrapper {
	background: var(--kr-bg);
	border: 1px solid var(--kr-line);
	border-radius: 6px;
	padding: 32px;
}
#reviews .comment-reply-title {
	display: block;
	font-family: Cormorant, serif;
	font-weight: 600;
	font-size: 26px;
	line-height: 1.2;
	color: var(--kr-ink);
	margin: 0 0 8px;
}
#reviews .comment-notes {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--kr-muted);
}
#reviews .comment-form p { margin: 0 0 18px; }
#reviews .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--kr-ink);
}
#reviews .comment-form .required { color: var(--kr-brass-text); }

/* Stars — fully self-contained: the theme only styles these inside its tab wrapper */
#reviews .comment-form-rating { margin-bottom: 18px; }
#reviews p.stars { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; overflow: visible; }
#reviews p.stars > span { display: inline-flex; gap: 4px; }
#reviews p.stars a {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 34px;
	margin: 0;
	font-size: 34px;
	line-height: 1;
	color: #bb9230;
	text-indent: -9999px; /* hides the "1 tärn 5-st" label text, kept for screen readers */
	overflow: hidden;
	white-space: nowrap;
	text-decoration: none;
	transition: transform .12s ease;
}
#reviews p.stars a:before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bb9230' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2 6.3 20.3l1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	text-indent: 0;
	z-index: auto;
}
/* filled star: on hover, and for the chosen rating and every star before it */
#reviews p.stars:hover a:before,
#reviews p.stars.selected a:not(.active):before,
#reviews p.stars.selected a.active:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bb9230' stroke='%23bb9230' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2 6.3 20.3l1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E"); }
#reviews p.stars a:hover ~ a:before,
#reviews p.stars.selected a.active ~ a:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bb9230' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2 6.3 20.3l1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E"); }
#reviews p.stars a:after { content: none; }
#reviews p.stars a:hover { transform: scale(1.12); }
#reviews p.stars a:focus-visible { outline: 2px solid #8a6a1c; outline-offset: 3px; border-radius: 3px; }
#reviews .kooker-rating-caption {
	font-family: Cormorant, serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--kr-brass-text);
}

/* Inputs */
#reviews .comment-form textarea,
#reviews .comment-form input[type="text"],
#reviews .comment-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #d9d2c0;
	border-radius: 3px;
	font-size: 16px; /* prevents iOS zoom on focus */
	color: var(--kr-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
#reviews .comment-form textarea { min-height: 130px; resize: vertical; }
#reviews .comment-form ::placeholder { color: #a8a290; }
#reviews .comment-form textarea:focus,
#reviews .comment-form input:focus {
	outline: none;
	border-color: var(--kr-brass);
	box-shadow: 0 0 0 3px rgba(187, 146, 48, .2);
}

/* Name + email side by side on wider screens */
@media (min-width: 600px) {
	#reviews .comment-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
	#reviews .comment-form > * { grid-column: 1 / -1; }
	#reviews .comment-form .comment-form-author { grid-column: 1; }
	#reviews .comment-form .comment-form-email { grid-column: 2; }
}

/* Submit */
#reviews .form-submit { margin: 6px 0 0; }
#reviews .form-submit input.submit {
	width: 100%;
	padding: 14px 28px;
	background: var(--kr-brass);
	border: 0;
	border-radius: 3px;
	color: #fff;
	font-family: Cormorant, serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease;
}
#reviews .form-submit input.submit:hover,
#reviews .form-submit input.submit:focus-visible { background: var(--kr-brass-text); }
@media (min-width: 600px) { #reviews .form-submit input.submit { width: auto; } }

/* Existing reviews */
#reviews ol.commentlist { margin: 0 0 32px; padding: 0; list-style: none; }
#reviews ol.commentlist li { margin: 0 0 16px; }
#reviews ol.commentlist li .comment_container {
	display: flex;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--kr-line);
	border-radius: 6px;
	background: #fff;
}
#reviews ol.commentlist li img.avatar { position: static; width: 48px; height: 48px; border-radius: 50%; padding: 0; border: 0; background: var(--kr-bg); }
#reviews ol.commentlist li .comment-text { margin: 0; padding: 0; border: 0; flex: 1; }
#reviews .star-rating { color: var(--kr-brass); }
#reviews .woocommerce-review__author { color: var(--kr-ink); font-weight: 700; }

@media (max-width: 599px) {
	#reviews #review_form_wrapper { padding: 20px; }
}

/* ---------- Product page: stacked sections instead of tabs ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.kooker-product-sections {
	clear: both;
	max-width: 760px;
	margin: 48px auto 0;
}
.kooker-product-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}
.kooker-product-nav li { margin: 0; padding: 0; }
.kooker-product-nav a {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid #e8e2d4;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: #0a0a0a;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.kooker-product-nav a:hover,
.kooker-product-nav a:focus-visible { border-color: #bb9230; color: #8a6a1c; }

.kooker-section {
	scroll-margin-top: 110px; /* clear the fixed header */
	padding: 36px 0;
	border-bottom: 1px solid #f1f1f1;
}
.kooker-section:last-child { border-bottom: 0; }
.kooker-section > h2 {
	font-family: Cormorant, serif;
	font-weight: 600;
	font-size: 32px;
	color: #0a0a0a;
	margin: 0 0 20px;
}
.kooker-section > h2:after { content: none; display: none; }
.kooker-section p { line-height: 1.7; }

/* Ingredient/attribute table as a soft card (theme table styling only exists inside its tab wrapper) */
.kooker-section table.shop_attributes {
	display: block;
	width: 100%;
	margin: 0;
	padding: 20px 24px;
	background: #faf7f0;
	border: 1px solid #e8e2d4;
	border-radius: 6px;
}
.kooker-section table.shop_attributes tbody,
.kooker-section table.shop_attributes tr,
.kooker-section table.shop_attributes th,
.kooker-section table.shop_attributes td {
	display: block;
	width: auto;
	margin: 0;
	padding: 0 !important;
	border: 0;
	background: none;
	text-align: left;
	font-style: normal;
}
.kooker-section table.shop_attributes tr + tr { margin-top: 16px; }
.kooker-section table.shop_attributes th,
.kooker-section table.shop_attributes td,
.kooker-section table.shop_attributes tr { border: 0 !important; box-shadow: none; }
.kooker-section table.shop_attributes td p:last-child { margin-bottom: 0; }
.kooker-section table.shop_attributes th {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8a6a1c;
}
.kooker-section table.shop_attributes td p { margin: 0; line-height: 1.7; }

/* The review block lives inside its own section now */
.kooker-section--reviews #reviews { max-width: none; }
