.mlpc-editorial--intro {
	margin: 1.1rem 0 0;
}

/* Never split a Swedish product name in the middle of a word. */
.single-product .product_title,
.single-product .entry-title {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

/* Keep the actual WooCommerce gallery and the product information together
   on desktop, while retaining one column on small screens. */
.single-product .product-entry-wrapper.is-width-constrained {
	display: grid;
	align-items: start;
	column-gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
}

.single-product .product-entry-wrapper > .mlpc-gallery {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
}

.single-product .product-entry-wrapper > .summary.entry-summary {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	width: auto;
}

body.mjuk-liten-storefront.single-product .product_title {
	font-size: clamp(42px, 4.4vw, 64px);
	line-height: 0.98;
}

.mlpc-editorial__intro {
	font-size: 1.05rem;
	line-height: 1.65;
}

.mlpc-editorial--facts {
	margin-top: 2rem;
}

.mlpc-editorial h2 {
	font-size: 1.2rem;
	margin: 0 0 0.65rem;
}

.mlpc-editorial .mlpc-facts {
	margin: 0;
}

.mlpc-editorial .mlpc-facts details {
	border-top: 1px solid rgb(38 50 45 / 22%);
	padding: 0.7rem 0;
}

.mlpc-editorial summary {
	cursor: pointer;
	font-weight: 700;
	list-style-position: inside;
}

.mlpc-editorial .mlpc-facts p {
	margin: 0.65rem 1.25rem 0;
}

.mlpc-price,
.mlpc-loop-price {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 1rem 0;
}

.mlpc-price--missing {
	font-size: 0.9rem;
	font-weight: 600;
}

.mlpc-loop-colours {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.38rem;
	margin: 0.65rem 0 0.15rem;
}

.mlpc-loop-colours__heading {
	font-size: 0.78rem;
	font-weight: 600;
}

.mlpc-loop-colour-option {
	align-items: center;
	display: inline-flex;
	gap: 0.28rem;
	font-size: 0.78rem;
}

.mlpc-colour-swatch {
	border: 1px solid rgb(38 50 45 / 28%);
	border-radius: 50%;
	display: block;
	height: 0.75rem;
	width: 0.75rem;
}

.mlpc-gallery {
	margin-bottom: 2rem;
}

.mlpc-gallery__main {
	align-items: center;
	background: #fff;
	display: flex;
	justify-content: center;
	min-height: min(60vw, 500px);
}

.mlpc-gallery__main img {
	display: block;
	height: auto;
	max-height: min(60vw, 500px);
	object-fit: contain;
	width: 100%;
}

.mlpc-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.7rem;
}

.mlpc-gallery__thumbs button {
	background: #fff;
	border: 1px solid #d6d4ce;
	cursor: pointer;
	padding: 0;
	width: 4.5rem;
}

.mlpc-gallery__thumbs button.is-selected,
.mlpc-gallery__thumbs button:focus-visible {
	border-color: #26322d !important;
	box-shadow: inset 0 0 0 1px #26322d;
	outline: 0 !important;
}

.mlpc-gallery__thumbs img {
	display: block;
	height: 4.5rem;
	object-fit: contain;
	width: 100%;
}

.mlpc-gallery__missing {
	background: #fff;
	margin: 0;
	padding: 3rem 1.5rem;
}

.mlpc-variations {
	margin: 1.5rem 0;
}

.mlpc-variations table {
	border: 0;
	margin: 0;
	width: 100%;
}

.mlpc-variations th,
.mlpc-variations td {
	border: 0;
	padding: 0.2rem 0;
	text-align: left;
}

.mlpc-variations select {
	background: #fff;
	border: 1px solid #1e3933;
	border-radius: 0;
	max-width: 19rem;
	padding: 0.7rem 2rem 0.7rem 0.7rem;
}

.mlpc-variations select:focus,
.mlpc-variations select:focus-visible {
	border-color: #1e3933 !important;
	box-shadow: 0 0 0 1px #1e3933 !important;
	outline-color: #1e3933 !important;
}

.mlpc-native-variations {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.mlpc-colour-picker {
	border: 0;
	margin: 1rem 0 0;
	padding: 0;
}

.mlpc-colour-picker legend,
.mlpc-single-colour {
	font-weight: 700;
	margin: 0 0 0.55rem;
}

.mlpc-colour-picker__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.mlpc-colour-choice {
	align-items: center;
	background: #fff;
	border: 1px solid rgb(38 50 45 / 38%);
	border-radius: 999px;
	color: #26322d;
	cursor: pointer;
	display: inline-flex;
	gap: 0.45rem;
	padding: 0.55rem 0.8rem;
}

.mlpc-colour-choice.is-selected,
.mlpc-colour-choice:focus-visible {
	border-color: #26322d;
	box-shadow: inset 0 0 0 1px #26322d;
	outline: 0;
}

.mlpc-single-colour {
	align-items: center;
	display: flex;
	gap: 0.45rem;
}

.mlpc-variations .single_variation {
	display: none;
}

.mlpc-variations .variations_button {
	align-items: center;
	display: flex;
	gap: 0.8rem;
	margin-top: 1rem;
}

.mlpc-variations .qty {
	border: 1px solid #1e3933;
	border-radius: 0;
	min-height: 2.9rem;
	padding: 0.45rem;
	width: 4.5rem;
}

.mlpc-variations .single_add_to_cart_button {
	background: #26322d !important;
	border: 1px solid #26322d !important;
	border-radius: 0 !important;
	color: #fff !important;
	min-height: 2.9rem;
}

.mlpc-variations .single_add_to_cart_button:disabled {
	opacity: 0.45;
}

.mlpc-lightbox {
	align-items: center;
	background: rgb(17 31 28 / 88%);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1.5rem;
	position: fixed;
	z-index: 99999;
}

.mlpc-lightbox[hidden] {
	display: none;
}

.mlpc-lightbox button {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 2rem;
	position: absolute;
	right: 1rem;
	top: 0.5rem;
}

.mlpc-lightbox img {
	max-height: calc(100vh - 3rem);
	max-width: 100%;
}

/* SKU-resolved editorial family cards replace WooCommerce's per-product
   related loop. Their card styling is shared with the catalogue in the child
   theme; these rules only establish calm product-page spacing. */
.single-product .mlpc-related-products {
	margin-top: clamp(3.5rem, 8vw, 7rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.mlpc-related-products .ml-section-heading {
	margin-bottom: 2rem;
}

/* Native WooCommerce reviews, rendered only for the SKU family's stable
   anchor product. These rules stay inside the product-content extension. */
.mlpc-editorial--reviews {
	margin-top: 2rem;
}

.mlpc-family-reviews__rating {
	align-items: center;
	color: #52615b;
	display: flex;
	font-size: 0.95rem;
	gap: 0.65rem;
	margin: 0.65rem 1.25rem 1.25rem;
}

.mlpc-family-reviews .star-rating,
.mlpc-family-reviews .comment-form-rating .stars a {
	color: #26322d;
}

.mlpc-family-reviews #reviews #comments,
.mlpc-family-reviews #reviews #review_form_wrapper {
	float: none;
	padding: 0;
	width: 100%;
}

.mlpc-family-reviews #reviews #comments {
	margin: 1.25rem 1.25rem 2rem;
}

.mlpc-family-reviews #reviews ol.commentlist {
	border-top: 1px solid rgb(38 50 45 / 18%);
	margin: 0;
	padding: 0;
}

.mlpc-family-reviews #reviews ol.commentlist li {
	border-bottom: 1px solid rgb(38 50 45 / 18%);
	margin: 0;
	padding: 1.5rem 0;
}

.mlpc-family-reviews #reviews ol.commentlist li img.avatar {
	background: #f7f5f0;
	border: 0;
	border-radius: 50%;
	left: 0;
	padding: 0;
	top: 1.55rem;
}

.mlpc-family-reviews #reviews ol.commentlist li .comment-text {
	border: 0;
	border-radius: 0;
	margin: 0 0 0 4.25rem;
	padding: 0;
}

.mlpc-family-reviews #reviews ol.commentlist li .meta {
	color: #52615b;
	font-size: 0.9rem;
}

.mlpc-family-reviews #review_form_wrapper {
	background: #f7f5f0;
	margin: 1.25rem;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.mlpc-family-reviews #review_form .comment-reply-title {
	color: #26322d;
	display: block;
	font-family: var(--theme-font-family, inherit);
	font-size: 1.55rem;
	line-height: 1.15;
	margin-bottom: 0.65rem;
}

.mlpc-family-reviews #review_form input[type='text'],
.mlpc-family-reviews #review_form input[type='email'],
.mlpc-family-reviews #review_form textarea {
	background: #fff;
	border: 1px solid rgb(38 50 45 / 35%);
	border-radius: 0;
	box-shadow: none;
}

.mlpc-family-reviews #review_form input:focus,
.mlpc-family-reviews #review_form textarea:focus {
	border-color: #26322d;
	outline: 2px solid rgb(38 50 45 / 15%);
	outline-offset: 1px;
}

.mlpc-family-reviews #review_form .submit {
	background: #26322d;
	border: 1px solid #26322d;
	border-radius: 0;
	color: #fff;
	font-weight: 600;
}

.mlpc-family-reviews #review_form .submit:hover,
.mlpc-family-reviews #review_form .submit:focus {
	background: #1e3933;
	border-color: #1e3933;
	color: #fff;
}

/* Keep Blocksy's generic related-product rules from changing one editorial
   family card independently of the other cards. */
.single-product .mlpc-related-products .ml-product-grid--collection {
	align-items: stretch;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-product .mlpc-related-products .ml-product-card {
	display: flex;
	height: 100%;
}

.single-product .mlpc-related-products .ml-product-card__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

@media (max-width: 900px) {
	.mlpc-family-reviews #reviews ol.commentlist li .comment-text {
		margin-left: 3.6rem;
	}

	.single-product .mlpc-related-products .ml-product-grid--collection {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.single-product .product-entry-wrapper.is-width-constrained {
		display: block;
	}

	.single-product .product-entry-wrapper > .mlpc-gallery {
		margin-bottom: 2rem;
	}
}

@media (max-width: 600px) {
	.single-product .mlpc-related-products .ml-product-grid--collection {
		grid-template-columns: 1fr;
	}
}
