/*
 * Christiansen theme CSS.
 *
 * Only for what theme.json cannot express. Colors, fonts, sizes and spacing
 * come from theme.json presets (var(--wp--preset--...)), so change them there.
 *
 * Contents
 * 1. Base
 * 2. Header and announcement bar
 * 3. Block style variations (eyebrow, chips, scroller)
 * 4. Cards and media
 * 5. FAQ (details)
 * 6. Footer
 * 7. WooCommerce
 */

/* 1. Base ------------------------------------------------------------- */

/*
 * Pills (tags, chips): 2px frame with 45 degree cut corners, drawn as a 9-slice SVG
 * so the diagonal gets the same stroke as the straight edges. Colors match theme.json:
 * All pills: "Tekst" (near black) fill and stroke, with light text.
 * To change the cut, edit the path (cut is 5 units) and keep the slice (7) larger than it.
 */
:root {
	--cv-pill-light: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27%3E%3Cpath d=%27M6 1H18L23 6V18L18 23H6L1 18V6Z%27 fill=%27%23141413%27 stroke=%27%23141413%27 stroke-width=%272%27/%3E%3C/svg%3E");
	--cv-pill-outline: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27%3E%3Cpath d=%27M6 1H18L23 6V18L18 23H6L1 18V6Z%27 fill=%27%23141413%27 stroke=%27%23141413%27 stroke-width=%272%27/%3E%3C/svg%3E");
	--cv-pill-dark: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27%3E%3Cpath d=%27M6 1H18L23 6V18L18 23H6L1 18V6Z%27 fill=%27%23141413%27 stroke=%27%23141413%27 stroke-width=%272%27/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

::selection {
	background: var(--wp--preset--color--accent-tint);
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* 2. Header and announcement bar --------------------------------------- */

.cv-announcement {
	position: relative;
}

.cv-announcement p {
	margin: 0;
}

.cv-announcement__close {
	position: absolute;
	top: 50%;
	right: 12px;
	display: inline-flex;
	padding: 8px;
	color: inherit;
	background: none;
	border: 0;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.cv-header-actions .cv-phone {
		display: none;
	}
}

.cv-site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent);
}

/* 3. Block style variations ---------------------------------------------- */

/* Paragraph: Overtittel (small label above headings). */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* List: Merkelapper (chips). */
ul.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin-inline: 0;
	list-style: none;
}

ul.is-style-chips li {
	padding: 3px 10px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	border: 2px solid transparent;
	border-image: var(--cv-pill-light) 7 fill / 7px / 0 stretch;
}

ul.is-style-chips li a {
	text-decoration: none;
}

/* Group: Horisontal rulling (carousel row without JS dependency). */
.wp-block-group.is-style-scroller {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--30);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.wp-block-group.is-style-scroller::-webkit-scrollbar {
	display: none;
}

.wp-block-group.is-style-scroller > * {
	flex: 0 0 auto;
	margin: 0 !important;
	scroll-snap-align: start;
}

.cv-scroll-prev .wp-block-button__link,
.cv-scroll-next .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 999px;
}

/* 4. Cards and media ---------------------------------------------------- */

/* Segment cards (cover blocks in the "Løsninger" row). */
.cv-segment-card {
	width: 300px;
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}

.cv-segment-card.is-wide {
	width: min(520px, 85vw);
}

.cv-segment-card .wp-block-cover__inner-container {
	align-self: stretch;
}

.cv-segment-card a {
	color: inherit;
	text-decoration: none;
}

.cv-segment-card a::after {
	position: absolute;
	inset: 0;
	content: "";
}

/* Image placeholder: used in patterns until real photos are added. */
.cv-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	padding: 24px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	text-align: center;
	background: var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
}

/* Linked category tiles. */
.cv-tile a {
	text-decoration: none;
}

.cv-tile .wp-block-image img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* Testimonials: star line. */
.cv-stars {
	letter-spacing: 2px;
	color: var(--wp--preset--color--contrast);
}

/* Big numbers in stat rows. */
.cv-stat-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1;
}

/* 5. FAQ (details) ------------------------------------------------------- */

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 16px;
	line-height: 1;
	color: var(--wp--preset--color--white);
	content: "+";
	background: var(--wp--preset--color--contrast);
	border-radius: 999px;
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

.wp-block-details > :not(summary) {
	max-width: 760px;
	color: var(--wp--preset--color--muted);
}

/* 6. Footer ---------------------------------------------------------------- */

.cv-site-footer a {
	text-decoration: none;
}

.cv-site-footer a:hover {
	color: var(--wp--preset--color--accent-tint);
	text-decoration: underline;
}

.cv-footer-list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.cv-footer-list li + li {
	margin-top: 6px;
}

/* 7. WooCommerce ------------------------------------------------------------ */

/* Product cards in product collections (front page, archive). */
.wc-block-product-template .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
}

.wc-block-product-template .wc-block-product > * {
	margin: 0;
}

.wc-block-product-template .wc-block-components-product-image img {
	aspect-ratio: 4 / 5 !important;
	object-fit: contain !important;
	padding: 12% 8%;
}

/* Space between the product cards. */
:root .wc-block-product-template {
	gap: 20px;
}

.wc-block-product-template .wc-block-components-product-image {
	margin-bottom: 8px !important;
}

.wc-block-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	letter-spacing: 0;
}

.wc-block-product-template .wp-block-post-title a {
	text-decoration: none;
}

/* Product tags shown as small chips (Bolig, Hytte ...). */
.cv-product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cv-product-tags a {
	padding: 3px 8px;
	text-decoration: none;
	border: 2px solid transparent;
	border-image: var(--cv-pill-outline) 7 fill / 7px / 0 stretch;
}

.cv-product-tags .wp-block-post-terms__separator {
	display: none;
}

.cv-price-prefix {
	font-weight: 400;
}

.woocommerce-price-suffix {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

/* Category chips on archive pages. */
.cv-category-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cv-category-chips li a {
	display: inline-block;
	padding: 5px 12px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	text-decoration: none;
	border: 2px solid transparent;
	border-image: var(--cv-pill-light) 7 fill / 7px / 0 stretch;
}

.cv-category-chips li a:hover,
.cv-category-chips li.current-cat a {
	color: var(--wp--preset--color--white);
	border-image-source: var(--cv-pill-dark);
}

.cv-category-chips .count {
	display: none;
}

/* Single product. */
.cv-single-product .wp-block-woocommerce-product-image-gallery {
	max-width: none;
	background: transparent;
}

/* Product photo on a light beige panel, like the product cards. Fills the column. */
.cv-single-product .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
}

.cv-single-product .woocommerce-product-gallery__image {
	position: relative;
	aspect-ratio: 7 / 6;
	background: var(--wp--preset--color--sand-light);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}

.cv-single-product .woocommerce-product-gallery__image > a {
	position: absolute;
	inset: 6%;
	display: block;
}

.cv-single-product .woocommerce-product-gallery__image > a > img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}

/* JPG photos have a white background: let it melt into the beige. Transparent
   images (white indoor units) are left alone, or the white unit would vanish. */
.cv-single-product .woocommerce-product-gallery__image img[src*=".jpg"],
.cv-single-product .woocommerce-product-gallery .flex-control-thumbs img[src*=".jpg"] {
	mix-blend-mode: multiply;
}

/* No hover zoom: WooCommerce turns it on for block themes, and the zoomed copy
   covers the beige panel with white. The magnifier still opens the photo full size. */
.cv-single-product .woocommerce-product-gallery .zoomImg {
	display: none !important;
}

/* Several photos: the slider keeps its own height, and the photos sit in a row of
   small beige thumbnails below. The active one gets a dark outline. */
.cv-single-product .woocommerce-product-gallery .flex-viewport {
	height: auto !important;
	border-radius: var(--wp--custom--radius--card);
}

.cv-single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0 !important;
	padding: 0;
	list-style: none;
}

.cv-single-product .woocommerce-product-gallery .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.cv-single-product .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	padding: 10%;
	object-fit: contain;
	background: var(--wp--preset--color--sand-light);
	border: 1px solid transparent;
	border-radius: 10px;
	opacity: 1 !important;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.cv-single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
	border-color: var(--wp--preset--color--line-strong);
}

.cv-single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--contrast);
}

@media (max-width: 781px) {
	.cv-single-product .woocommerce-product-gallery .flex-control-thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.cv-single-product .wp-block-add-to-cart-form .single_add_to_cart_button,
.woocommerce .wp-element-button {
	border-radius: var(--wp--custom--radius--button);
}

/* Header: keep title and buttons on one line; nav collapses to a menu button on small screens. */
.cv-site-header .wp-block-site-title,
.cv-site-header .wp-block-button__link {
	white-space: nowrap;
}

/* Section blocks sit edge to edge; each section sets its own padding. */
:where(.wp-block-post-content, .is-root-container) > [class*="wp-block-christiansen-"] {
	margin-block: 0;
}

/* Call to action card ("Klar for en prat?"): icon and text on the left, button on the right. */
.cv-cta-card > .wp-block-group {
	flex: 1 1 28rem;
}

.cv-cta-card__icon,
.cv-cta-card__icon img {
	flex: 0 0 auto;
	margin: 0;
	border-radius: 0;
}

/* Product tabs (Beskrivelse / Omtaler): segmented control. ":root" outranks WooCommerce's own tab styles. */
:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	margin: 0 0 var(--wp--preset--spacing--40);
	overflow: visible;
	list-style: none;
	background: var(--wp--preset--color--sand-light);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
}

:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs::before,
:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs::after,
:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li::before,
:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li::after {
	display: none;
	content: none;
}

:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li {
	position: static;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 8px;
}

:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li a {
	display: block;
	padding: 8px 16px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li a:hover {
	color: var(--wp--preset--color--contrast);
}

:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li.active {
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 2px rgba(20, 20, 19, 0.06);
}

:root .wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs.wc-tabs li.active a {
	color: var(--wp--preset--color--contrast);
}


/* Kontaktskjema --------------------------------------------------------------- */

.cv-form__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
}

.cv-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

.cv-form__field--full,
.cv-form__product,
.cv-form__notice,
.cv-form__submit {
	grid-column: 1 / -1;
}

.cv-form__label {
	padding: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.cv-form__optional {
	float: right;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	text-transform: none;
	letter-spacing: 0;
}

.cv-form input[type="text"],
.cv-form input[type="tel"],
.cv-form input[type="email"],
.cv-form input[type="number"],
.cv-form select,
.cv-form textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--button);
}

.cv-form input:focus,
.cv-form select:focus,
.cv-form textarea:focus {
	border-color: var(--wp--preset--color--contrast);
	outline: 2px solid var(--wp--preset--color--accent-tint);
	outline-offset: 0;
}

.cv-form textarea {
	resize: vertical;
}

.cv-form input[type="file"] {
	font-size: var(--wp--preset--font-size--small);
}

.cv-form__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 6px;
}

.cv-form__choice {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-size: var(--wp--preset--font-size--medium);
	cursor: pointer;
}

.cv-form__choice input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--wp--preset--color--contrast);
}

.cv-form__product {
	margin: 0;
	font-weight: 600;
}

.cv-form__submit {
	margin: 8px 0 0;
}

.cv-form__submit button {
	padding: 10px 18px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--contrast);
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--button);
}

.cv-form__submit button:hover {
	background: var(--wp--preset--color--dark);
}

.cv-form__notice {
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: var(--wp--custom--radius--button);
}

.cv-form__notice p {
	margin: 0;
}

.cv-form__notice--success {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line-strong);
}

.cv-form__notice--error {
	background: var(--wp--preset--color--accent-tint);
	border: 1px solid var(--wp--preset--color--accent-soft);
}

/* Honeypot: hidden from people, visible to bots. */
.cv-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.cv-form__form {
		grid-template-columns: 1fr;
	}
}

/* Tekstseksjon: comfortable reading rhythm for long text. */
.wp-block-christiansen-text-content h2 {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wp-block-christiansen-text-content h2:first-child {
	margin-block-start: 0;
}

.wp-block-christiansen-text-content h3 {
	margin-block-start: var(--wp--preset--spacing--40);
}

.wp-block-christiansen-text-content p,
.wp-block-christiansen-text-content li {
	color: #3F3E3A;
}

.wp-block-christiansen-text-content ol li + li,
.wp-block-christiansen-text-content ul li + li {
	margin-top: 8px;
}

/* Contact person card on the Kontakt page. */
.cv-contact-person__photo,
.cv-contact-person__photo img {
	flex: 0 0 auto;
	margin: 0;
	border-radius: 999px;
}

.cv-contact-person p {
	margin: 0;
}

/*
 * Pill text: tight padding, bold uppercase, like a label stamped on the frame.
 * (Frame and colors: see --cv-pill-* at the top of this file.)
 */
ul.is-style-chips li,
.cv-product-tags a,
.cv-category-chips li a {
	padding: 4px 8px 3px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cv-product-tags a {
	padding: 3px 6px 2px;
}

/*
 * Category buttons on the product archive: plain rectangles with a thin dark frame,
 * normal case text (overrides the pill style above). Active category is filled.
 */
:root .cv-category-chips ul {
	gap: 6px;
}

:root .cv-category-chips li a {
	padding: 8px 11px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--contrast);
	background: transparent;
	border: 1px solid var(--wp--preset--color--contrast);
	border-image: none;
	border-radius: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
}

:root .cv-category-chips li a:hover,
:root .cv-category-chips li.current-cat a {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--contrast);
	border-image: none;
}

/* Pills are black with light text. */
ul.is-style-chips li,
ul.is-style-chips li a,
.cv-product-tags a,
.cv-product-tags a:hover {
	color: var(--wp--preset--color--base);
}

/*
 * Cut corners on mood images (not product images): 45 degree cut, same idea as the pills.
 * Applied automatically to images, cards and image placeholders inside the section blocks,
 * and to any image/cover where the editor picks the block style "Skrå hjørner".
 */
:root {
	--cv-cut: 12px;
	--cv-cut-shape: polygon(var(--cv-cut) 0, calc(100% - var(--cv-cut)) 0, 100% var(--cv-cut), 100% calc(100% - var(--cv-cut)), calc(100% - var(--cv-cut)) 100%, var(--cv-cut) 100%, 0 calc(100% - var(--cv-cut)), 0 var(--cv-cut));
}

[class*="wp-block-christiansen-"] .wp-block-image:not(.cv-cta-card__icon) img,
.cv-segment-card,
.cv-placeholder,
.wp-block-image.is-style-cut-corners img,
.wp-block-cover.is-style-cut-corners {
	border-radius: 0 !important;
	clip-path: var(--cv-cut-shape);
}

/* Article featured image: keep faces in frame when cropped wide. */
.single .wp-block-post-featured-image img {
	object-position: center 30%;
}

.wp-block-post-terms.is-style-eyebrow a {
	color: inherit;
	text-decoration: none;
}

/*
 * Kontaktskjema, card style: normal case labels with a red star on required fields,
 * tall rounded fields on a light background.
 */
.cv-form__form {
	gap: 24px 24px;
}

.cv-form__label {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--contrast);
}

.cv-form__req {
	margin-left: 2px;
	color: #B42318;
}

.cv-form__field {
	gap: 10px;
}

.cv-form input[type="text"],
.cv-form input[type="tel"],
.cv-form input[type="email"],
.cv-form input[type="number"],
.cv-form select,
.cv-form textarea {
	min-height: 56px;
	padding: 16px 22px;
	font-size: var(--wp--preset--font-size--medium);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
}

.cv-form select {
	padding-right: 44px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23141413' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
}

.cv-form textarea {
	min-height: 120px;
}

.cv-form ::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.cv-form input:focus,
.cv-form select:focus,
.cv-form textarea:focus {
	border-color: var(--wp--preset--color--line-strong);
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 1px;
}

/* Round radio buttons with a light border. */
.cv-form__choices {
	gap: 10px 26px;
	margin-top: 2px;
}

.cv-form__choice input {
	width: 20px;
	height: 20px;
	appearance: none;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	cursor: pointer;
}

.cv-form__choice input:checked {
	border: 6px solid var(--wp--preset--color--contrast);
}

.cv-form__submit button {
	padding: 12px 22px;
}

/*
 * Footer, toned down: small light-grey links, muted grey column headings,
 * a thin divider above the bottom row.
 */
.cv-site-footer {
	font-size: var(--wp--preset--font-size--small);
	color: #D9D6CE;
}

.cv-site-footer a {
	color: #D9D6CE;
	text-decoration: none;
}

.cv-site-footer a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.cv-site-footer .cv-footer-brand a {
	color: var(--wp--preset--color--white);
}

.cv-site-footer .cv-footer-brand a:hover {
	text-decoration: none;
}

.cv-footer-heading,
.cv-footer-muted,
.cv-footer-muted a {
	color: #8C8A82;
}

.cv-footer-heading {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.cv-footer-list {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.cv-footer-list li + li {
	margin-top: 8px;
}

.cv-footer-bottom {
	padding-top: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--70) !important;
	border-top: 1px solid #2E2D2A;
}

.cv-footer-bottom p {
	margin: 0;
}

/* Serif text outside headings (footer brand, card titles in serif) uses the same heavier weight. */
.has-heading-font-family {
	font-weight: 600;
}

/* Header on narrower screens: keep the menu on one line, drop the phone button first. */
.cv-site-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	column-gap: clamp(14px, 1.6vw, 26px);
}

.cv-site-header .wp-block-navigation-item__label {
	white-space: nowrap;
}

@media (max-width: 1080px) {
	.cv-header-actions .cv-phone {
		display: none;
	}
}

/* ======================================================================
 * Landing page sections (Bolig, Hytte, Næring), inspired by product pages
 * with centered heads, icon columns, list rows and image/text splits.
 * ====================================================================== */

/* Centered section head: icon, heading, intro. */
.cv-section-head {
	margin-bottom: var(--wp--preset--spacing--60) !important;
}

.cv-section-head > * + * {
	margin-top: var(--wp--preset--spacing--30);
}

.cv-icon img {
	border-radius: 0 !important;
	clip-path: none !important;
}

.cv-page-intro {
	margin-bottom: 0 !important;
}

/* Bildepanel. */
.cv-media-panel {
	padding: clamp(12px, 2vw, 24px);
	background: var(--wp--preset--color--sand-light);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 24px;
}

.cv-media-panel .wp-block-image,
.cv-media-panel .wp-block-image img {
	margin: 0;
}

/* Fordeler i spalter: thin vertical lines between columns, no cards. */
.cv-feature-grid {
	gap: 0 !important;
	border-top: 1px solid var(--wp--preset--color--line);
}

.cv-feature {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border-left: 1px solid var(--wp--preset--color--line);
}

.cv-feature:first-child {
	border-left: 0;
}

.cv-feature h3 {
	margin-top: var(--wp--preset--spacing--30);
}

@media (max-width: 781px) {
	.cv-feature {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--line);
	}

	.cv-feature:first-child {
		border-top: 0;
	}
}

/* Liste med forklaring: rows with a line between, a small mark before each title. */
.cv-feature-row {
	padding: var(--wp--preset--spacing--40) 0;
	margin: 0 !important;
	border-top: 1px solid var(--wp--preset--color--line-strong);
}

.cv-feature-row:first-child {
	border-top: 0;
}

.cv-feature-row h3 {
	display: flex;
	gap: 14px;
	align-items: baseline;
	margin: 0;
}

.cv-feature-row h3::before {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	content: "";
	background: var(--wp--preset--color--contrast);
	transform: translateY(-2px) rotate(45deg);
}

.cv-feature-row p {
	margin: 0;
}

/* Bilde og tekst: image in a colored panel that bleeds to the panel's right and bottom edge. */
.cv-split-panel {
	padding: clamp(28px, 5vw, 64px) 0 0 clamp(28px, 5vw, 64px);
	overflow: hidden;
	clip-path: var(--cv-cut-shape);
	--cv-cut: 18px;
}

.cv-split.is-reversed .cv-split-panel {
	padding: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0;
}

.cv-split-panel .wp-block-image,
.cv-split-panel .wp-block-image img {
	margin: 0;
	clip-path: none !important;
	border-radius: 0 !important;
	box-shadow: 0 10px 40px rgba(20, 20, 19, 0.12);
}

/* Ressurser: article cards. */
.cv-resources .wp-block-post {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	min-height: 190px;
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
}

.cv-resources .wp-block-post-title {
	margin: 0;
	line-height: 1.25;
}

.cv-resources .wp-block-post-title a {
	text-decoration: none;
}

.cv-resource-type,
.cv-resource-type a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.cv-resources + * {
	margin-top: 0;
}


/* Questions use the full content width, heading on the left, as one long list. */
.wp-block-christiansen-faq .alignwide,
.wp-block-christiansen-service-faq .alignwide {
	max-width: var(--wp--style--global--wide-size) !important;
	margin-inline: auto !important;
}

.wp-block-christiansen-faq h2,
.wp-block-christiansen-service-faq h2 {
	margin-bottom: var(--wp--preset--spacing--50);
	text-align: left;
}

/*
 * Type scale (matches claude.com): H1 72, H2 52, H3 32, quote 36, small heading 19,
 * lead 23, body 17, secondary 15, labels 12. Sizes live in theme.json; these rules
 * pick the right step where a heading sits in a smaller context.
 */
.wp-block-christiansen-text-content h2,
.single .wp-block-post-content h2,
.cv-split h2 {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
}

.wp-block-christiansen-text-content h3,
.single .wp-block-post-content h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.cv-page-intro h1 {
	font-size: var(--wp--preset--font-size--display);
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.cv-site-header .wp-block-button__link {
	font-size: var(--wp--preset--font-size--medium);
	padding: 10px 14px;
}

.wp-block-query-title.has-body-font-family {
	font-size: var(--wp--preset--font-size--section);
}

.cv-feature h3,
.cv-feature-row h3,
.cv-resources .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
}

/*
 * "Løsninger" carousel (front page): full bleed to the screen edges. The active card is
 * large and centred, neighbours peek in from the sides. Arrows, hover (desktop) and a slow
 * autoplay move the active card; the track slides with a transform (see theme.js).
 */
.wp-block-group.cv-segments {
	--cv-card-s: clamp(200px, 20vw, 320px);
	--cv-card-l: min(980px, 72vw);
	--cv-card-gap: 16px;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--cv-card-gap);
	padding: 0 !important;
	overflow: visible;
	scroll-snap-type: none;
	transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1);
	will-change: transform;
}

.wp-block-christiansen-segments > section {
	overflow: hidden;
}

.wp-block-group.cv-segments > .cv-segment-card {
	flex: 0 0 auto;
	width: var(--cv-card-s);
	min-height: clamp(360px, 42vw, 560px) !important;
	opacity: 0.85;
	transition: width 0.7s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.7s ease;
}

.wp-block-group.cv-segments > .cv-segment-card.is-active {
	width: var(--cv-card-l);
	opacity: 1;
}

.cv-segments > .cv-segment-card .wp-block-cover__image-background {
	transition: transform 1.2s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.cv-segments > .cv-segment-card.is-active .wp-block-cover__image-background {
	transform: scale(1.03);
}

@media (max-width: 781px) {
	.wp-block-group.cv-segments {
		--cv-card-s: 62vw;
		--cv-card-l: 84vw;
	}
}

/* Images fill their panel (the panels use a constrained layout for editing comfort). */
.cv-media-panel > .wp-block-image,
.cv-split-panel > .wp-block-image {
	width: 100%;
	max-width: none !important;
}

.cv-media-panel > .wp-block-image img,
.cv-split-panel > .wp-block-image img {
	width: 100%;
}

/* Carousel: used while jumping back from the copied cards to the real ones. */
.cv-segments.cv-no-anim,
.cv-segments.cv-no-anim > *,
.cv-segments.cv-no-anim .wp-block-cover__image-background {
	transition: none !important;
}

/*
 * Typography inspired by Holzweiler: one grotesque (Inter) for everything, calm sizes,
 * regular-weight headings and small bold uppercase labels. Sizes live in theme.json:
 * H1 40, H2 32, H3 24, lead 20, small heading 18, body 16, menu/buttons 14, small 12.
 */
.has-heading-font-family {
	font-weight: 500;
}

.cv-page-intro h1,
.wp-block-christiansen-hero h1 {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.wp-block-details summary,
.cv-feature h3,
.cv-feature-row h3,
.cv-resources .wp-block-post-title,
.wc-block-product-template .wp-block-post-title {
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	letter-spacing: 0;
}

.cv-site-header .wp-block-button__link {
	font-size: var(--wp--preset--font-size--medium);
}

/* Small bold uppercase labels, as on holzweileroslo.com. */
.is-style-eyebrow,
.cv-form__label,
.cv-footer-heading {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.is-style-eyebrow {
	color: var(--wp--preset--color--contrast);
}

.cv-stat-number {
	font-weight: 600;
}

/* ======================================================================
 * Design system (inspired by hitecvision.com), applied site-wide.
 * Cream background, black text, deep burgundy (#380000) for buttons, footer and
 * dark sections, light blue (#D6E3EF) markers on dark. One typeface: Instrument Sans,
 * regular weight everywhere. Square-ish 4px corners, flat cards without borders,
 * small labels with a square marker.
 * Tokens live in theme.json; this block only adjusts components.
 * ====================================================================== */

/* Regular weight across headings and titles. */
h1, h2, h3, h4, h5,
.has-heading-font-family,
.cv-page-intro h1,
.wp-block-christiansen-hero h1,
.cv-stat-number,
.wp-block-site-title {
	font-weight: 400;
}

.wp-block-site-title {
	font-weight: 600;
}

/* Labels: small text with a square marker. */
.is-style-eyebrow,
.cv-footer-heading {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--contrast);
}

.is-style-eyebrow::before,
.cv-footer-heading::before {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	content: "";
	background: currentColor;
}

.has-text-align-center.is-style-eyebrow {
	justify-content: center;
}

.is-style-section-dark .is-style-eyebrow::before,
.cv-site-footer .cv-footer-heading::before {
	background: var(--wp--preset--color--accent-tint);
}

/* Card and list titles: regular, 18–20px. */
.wp-block-details summary,
.cv-feature h3,
.cv-feature-row h3,
.cv-resources .wp-block-post-title,
.wc-block-product-template .wp-block-post-title {
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	letter-spacing: -0.01em;
}

.cv-feature h3 {
	font-size: var(--wp--preset--font-size--large);
}

/* 4px corners on panels, cards, fields. */
.cv-media-panel,
.cv-cta-card,
#skjema,
.cv-resources .wp-block-post,
.cv-form input[type="text"],
.cv-form input[type="tel"],
.cv-form input[type="email"],
.cv-form input[type="number"],
.cv-form select,
.cv-form textarea,
.is-style-card,
.wp-block-image img {
	border-radius: var(--wp--custom--radius--card) !important;
}

/* Flat panels: no borders. */
.cv-media-panel,
.cv-cta-card,
#skjema {
	border-color: transparent !important;
}

/* Product cards: flat, image on a light panel, title and muted line below. */
.wc-block-product-template .wc-block-product {
	gap: 6px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.wc-block-product-template .wc-block-components-product-image {
	padding: 0;
	margin-bottom: 10px !important;
	background: var(--wp--preset--color--sand-light);
	border-radius: var(--wp--custom--radius--card);
}

.wc-block-product-template .cv-product-tags {
	order: -1;
}

/* Resources cards: flat on light sand. */
.cv-resources .wp-block-post {
	background: var(--wp--preset--color--sand-light);
	border: 0;
}

/* Body text in black, as in the reference; muted only for secondary lines. */
.wp-block-christiansen-text-content p,
.wp-block-christiansen-text-content li {
	color: var(--wp--preset--color--contrast);
}

/* Form labels: plain, small. */
.cv-form__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.cv-form__submit button {
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--dark);
	border-radius: var(--wp--custom--radius--button);
}

.cv-form__submit button:hover {
	background: var(--wp--preset--color--accent-soft);
}

/* Footer on burgundy. */
.cv-site-footer,
.cv-site-footer a {
	color: rgba(255, 255, 255, 0.88);
}

.cv-footer-muted,
.cv-footer-muted a {
	color: rgba(255, 255, 255, 0.6);
}

.cv-site-footer .cv-footer-heading {
	color: var(--wp--preset--color--white);
}

.cv-footer-bottom {
	border-top-color: rgba(255, 255, 255, 0.16);
}

/* Header buttons: compact, burgundy. */
.cv-site-header .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
	padding: 8px 12px;
}

/* Carousel labels and segment cards keep their own white text. */
.cv-segment-card p {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	text-transform: none;
}

/* Category filters: light chips like the reference filters, active one burgundy. */
:root .cv-category-chips li a {
	padding: 8px 12px;
	font-size: var(--wp--preset--font-size--small);
	background: var(--wp--preset--color--sand);
	border: 0;
	border-radius: var(--wp--custom--radius--button);
}

:root .cv-category-chips li a:hover,
:root .cv-category-chips li.current-cat a {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--dark);
}

.wp-block-query-title.has-body-font-family {
	font-weight: 400;
}

.wp-block-details summary::after {
	background: var(--wp--preset--color--dark);
}

/* Contrast on dark (burgundy) backgrounds: labels and secondary text in light colors. */
.is-style-section-dark .is-style-eyebrow,
.has-dark-background-color .is-style-eyebrow {
	color: var(--wp--preset--color--accent-tint);
}

.is-style-section-dark .has-muted-color,
.has-dark-background-color .has-muted-color {
	color: rgba(255, 255, 255, 0.72) !important;
}

/* Placeholder text: darker for readable contrast on the light grey box. */
.cv-placeholder,
.cv-placeholder p {
	color: #4F4B45;
}

/* Dark placeholders (inside dark sections) keep their own light text color. */
.cv-placeholder.has-text-color p {
	color: inherit;
}

/* ======================================================================
 * Design system inspired by zaptec.com, applied site-wide.
 * White background, #222 text, thin #DADADA lines, light grey surfaces, light blue
 * highlights, deep blue only in small arrow circles and markers. One typeface (Instrument Sans) in
 * regular weight on a ~1.2 scale: 13 / 14 / 17 / 21 / 36 / 64. Pill buttons with an
 * arrow circle, light blue pill tags, flat 4px cards. This block overrides earlier styles.
 * ====================================================================== */

:root {
	--cv-arrow-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23222222' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10 10 2M4 2h6v6'/%3E%3C/svg%3E");
	--cv-arrow-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10 10 2M4 2h6v6'/%3E%3C/svg%3E");
}

/* Headings: regular weight, tight. */
h1, h2, h3, h4, h5,
.has-heading-font-family,
.cv-page-intro h1,
.wp-block-christiansen-hero h1,
.cv-stat-number {
	font-weight: 400;
}

/* Buttons: pill with an arrow circle at the end. */
.wp-block-button__link,
.cv-form__submit button {
	display: inline-flex;
	gap: 12px;
	align-items: center;
	border-radius: 999px !important;
}

:where(main, .cv-site-footer) .wp-block-button:not(.cv-scroll-prev):not(.cv-scroll-next) .wp-block-button__link {
	padding: 8px 8px 8px 20px;
}

:where(main, .cv-site-footer) .wp-block-button:not(.cv-scroll-prev):not(.cv-scroll-next) .wp-block-button__link::after {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	content: "";
	background: var(--wp--preset--color--white) var(--cv-arrow-dark) center / 11px no-repeat;
	border-radius: 999px;
	transition: transform 0.2s ease;
}

:where(main) .wp-block-button .wp-block-button__link:hover::after {
	transform: rotate(45deg);
}

/* Secondary: outlined pill next to the black one, same size, black circle with a white arrow. */
:where(main) .wp-block-button.is-style-secondary .wp-block-button__link {
	padding: 7px 7px 7px 19px;
	color: var(--wp--preset--color--contrast);
	background: transparent;
	border: 1px solid var(--wp--preset--color--contrast);
}

:where(main) .wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand-light);
}

:where(main) .wp-block-button.is-style-secondary .wp-block-button__link::after {
	width: 28px;
	height: 28px;
	background: var(--wp--preset--color--contrast) var(--cv-arrow-light) center / 11px no-repeat !important;
}

/* On dark sections the outline and text turn white. */
:where(main) .is-style-section-dark .wp-block-button.is-style-secondary .wp-block-button__link {
	color: var(--wp--preset--color--white);
	border-color: rgba(255, 255, 255, 0.7);
}

:where(main) .is-style-section-dark .wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}

:where(main) .is-style-section-dark .wp-block-button.is-style-secondary .wp-block-button__link::after {
	background: var(--wp--preset--color--white) var(--cv-arrow-dark) center / 11px no-repeat !important;
}

/* Outlined pill (also header phone). */
.wp-block-button.is-style-bordered .wp-block-button__link::after {
	background-color: var(--wp--preset--color--sand-light);
}

.cv-site-header .wp-block-button__link {
	padding: 8px 16px;
	font-size: var(--wp--preset--font-size--small);
}

/* On dark sections the arrow circle turns dark. */
.is-style-section-dark .wp-block-button__link::after {
	background-color: var(--wp--preset--color--dark) !important;
	background-image: var(--cv-arrow-light) !important;
}

/* Labels: small, uppercase, muted, no marker. */
.is-style-eyebrow,
.cv-footer-heading {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.is-style-eyebrow::before,
.cv-footer-heading::before {
	display: none !important;
}

.is-style-section-dark .is-style-eyebrow,
.cv-site-footer .cv-footer-heading {
	color: rgba(255, 255, 255, 0.65);
}

/* No cut corners in this system: flat 4px corners everywhere. */
[class*="wp-block-christiansen-"] .wp-block-image:not(.cv-icon) img,
.cv-segment-card,
.cv-placeholder,
.cv-split-panel,
.wp-block-image.is-style-cut-corners img,
.wp-block-cover.is-style-cut-corners {
	clip-path: none !important;
	border-radius: var(--wp--custom--radius--card) !important;
}

.cv-media-panel,
.cv-cta-card,
#skjema,
.cv-resources .wp-block-post,
.is-style-card {
	border-radius: var(--wp--custom--radius--card) !important;
}

/* Tags and chips: light blue pills. */
ul.is-style-chips li,
.cv-product-tags a {
	padding: 4px 10px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--contrast) !important;
	background: var(--wp--preset--color--sand);
	border: 0;
	border-image: none;
	border-radius: 999px;
}

/* Category filters: outlined pills, active dark. */
:root .cv-category-chips li a {
	padding: 8px 16px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast);
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
}

:root .cv-category-chips li a:hover,
:root .cv-category-chips li.current-cat a {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--dark);
}

/* Product cards: image on light grey, flat. */
.wc-block-product-template .wc-block-components-product-image {
	background: var(--wp--preset--color--sand-light);
}

/* Highlight boxes (service CTA, split panels) in light blue. */
.cv-split-panel {
	background: var(--wp--preset--color--sand) !important;
}

/* Feature grid and list rows: thin grey lines, Zaptec style. */
.cv-feature-grid,
.cv-feature,
.cv-feature-row {
	border-color: var(--wp--preset--color--line) !important;
}

.cv-feature-row h3::before {
	background: var(--wp--preset--color--accent);
	border-radius: 999px;
	transform: none;
}

/* Media and CTA panels: light grey, no border. */
.cv-media-panel,
.cv-cta-card,
#skjema {
	background: var(--wp--preset--color--sand-light) !important;
	border-color: transparent !important;
}

/* Image placeholders: light grey box with a picture icon and a small caption. */
.cv-placeholder:not(.has-background) {
	flex-direction: column;
	gap: 10px;
	background: var(--wp--preset--color--sand-light) url("../icons/placeholder.svg") center calc(50% - 14px) / 44px no-repeat;
}

.cv-placeholder:not(.has-background) p {
	padding-top: 56px;
	font-size: var(--wp--preset--font-size--x-small);
	color: #5F5E5A;
}

.cv-placeholder.has-background {
	background-color: #3A3A38 !important;
}

/* Form: Zaptec-like fields. */
.cv-form input[type="text"],
.cv-form input[type="tel"],
.cv-form input[type="email"],
.cv-form input[type="number"],
.cv-form select,
.cv-form textarea {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card) !important;
}

.cv-form__submit button {
	padding: 8px 8px 8px 20px;
	background: var(--wp--preset--color--dark);
}

.cv-form__submit button::after {
	width: 28px;
	height: 28px;
	content: "";
	background: var(--wp--preset--color--white) var(--cv-arrow-dark) center / 11px no-repeat;
	border-radius: 999px;
}

/* FAQ toggles: thin outlined circle. */
.wp-block-details summary::after {
	color: var(--wp--preset--color--contrast);
	background: transparent;
	border: 1px solid var(--wp--preset--color--line-strong);
}

/* Footer on #222 with a large statement. */
.cv-footer-statement {
	margin: 0 0 var(--wp--preset--spacing--60) !important;
	color: var(--wp--preset--color--white);
	letter-spacing: -0.02em;
}

.cv-site-footer,
.cv-site-footer a {
	color: rgba(255, 255, 255, 0.9);
}

.cv-footer-list {
	font-size: var(--wp--preset--font-size--large);
}

.cv-footer-bottom {
	border-top-color: rgba(255, 255, 255, 0.18);
}

/* Contrast on dark: muted text light. */
.has-dark-background-color .has-muted-color,
.is-style-section-dark .has-muted-color {
	color: rgba(255, 255, 255, 0.72) !important;
}

/*
 * Product archive (Produkter, categories): light grey cards, three per row, everything
 * centred: category, big title, large product image, short text, price and a pill link.
 */
:root .cv-catalog .wc-block-product-template {
	gap: 24px;
}

:root .cv-catalog .wc-block-product {
	align-items: center;
	gap: 14px;
	padding: clamp(32px, 3.5vw, 56px) clamp(20px, 2.5vw, 36px);
	text-align: center;
	background: var(--wp--preset--color--sand-light);
	border: 0;
	border-radius: 0;
}

.cv-catalog .cv-catalog-cat,
.cv-catalog .cv-catalog-cat a {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.cv-catalog .cv-catalog-cat .wp-block-post-terms__separator {
	color: var(--wp--preset--color--muted);
}

:root .cv-catalog .wp-block-post-title {
	font-size: clamp(22px, 1.9vw, 28px);
	text-wrap: balance;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

:root .cv-catalog .wc-block-components-product-image {
	width: min(92%, 440px);
	margin: 0 auto !important;
	padding: 0;
	background: transparent;
}

:root .cv-catalog .wc-block-components-product-image img {
	padding: 0;
	aspect-ratio: 3 / 2 !important; /* The product photos are 3:2, so no empty band above and below. */
}

.cv-catalog .wp-block-post-excerpt {
	max-width: 24em;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--contrast);
}

.cv-catalog .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.cv-catalog .wp-block-woocommerce-product-price {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

/* "Se produktet": dark pill with a white arrow circle. */
.cv-catalog .cv-catalog-link {
	display: inline-flex;
	gap: 12px;
	align-items: center;
	padding: 8px 8px 8px 20px;
	margin-top: var(--wp--preset--spacing--30) !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	background: var(--wp--preset--color--dark);
	border-radius: 999px;
}

.cv-catalog .cv-catalog-link::after {
	width: 28px;
	height: 28px;
	content: "";
	background: var(--wp--preset--color--white) var(--cv-arrow-dark) center / 11px no-repeat;
	border-radius: 999px;
	transition: transform 0.2s ease;
}

.cv-catalog .cv-catalog-link:hover {
	color: var(--wp--preset--color--white);
	background: #000000;
}

.cv-catalog .cv-catalog-link:hover::after {
	transform: rotate(45deg);
}

/* Three cards per row on desktop, two on tablets, one on small screens. */
@media (min-width: 1100px) {
	:root .cv-catalog .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 782px) and (max-width: 1099px) {
	:root .cv-catalog .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 781px) {
	:root .cv-catalog .wc-block-product-template {
		grid-template-columns: 1fr !important;
	}
}

/*
 * Footer (Zaptec style): big centred statement with a white pill button, then three
 * columns of large links without headings, and a thin line above the bottom row.
 */
.cv-footer-hero {
	margin-bottom: clamp(64px, 10vw, 160px) !important;
}

.cv-site-footer .cv-footer-statement {
	margin: 0 !important;
	font-size: clamp(44px, 6.4vw, 96px);
	line-height: 1;
	color: var(--wp--preset--color--white);
}

/* White pill with a dark arrow circle. */
.cv-site-footer .cv-btn-light .wp-block-button__link {
	padding: 8px 8px 8px 20px;
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--white);
}

.cv-site-footer .cv-btn-light .wp-block-button__link::after {
	width: 28px;
	height: 28px;
	content: "";
	background: var(--wp--preset--color--dark) var(--cv-arrow-light) center / 11px no-repeat;
	border-radius: 999px;
	transition: transform 0.2s ease;
}

.cv-site-footer .cv-btn-light .wp-block-button__link:hover::after {
	transform: rotate(45deg);
}

.cv-site-footer .cv-footer-list {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
}

.cv-site-footer .cv-footer-list li + li {
	margin-top: 12px;
}

.cv-site-footer .cv-footer-list a {
	color: var(--wp--preset--color--white);
}

.cv-footer-links {
	margin-bottom: clamp(64px, 9vw, 140px) !important;
}

.cv-site-footer .cv-footer-bottom {
	padding-top: var(--wp--preset--spacing--40);
	margin-top: 0 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.cv-site-footer .cv-footer-bottom,
.cv-site-footer .cv-footer-bottom a {
	color: rgba(255, 255, 255, 0.9);
}

/* "Til toppen" with a small white circle and an up arrow. */
.cv-to-top a {
	display: inline-flex;
	gap: 12px;
	align-items: center;
}

.cv-to-top a::after {
	width: 24px;
	height: 24px;
	content: "";
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23222222' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10V2M2.5 5.5 6 2l3.5 3.5'/%3E%3C/svg%3E") center / 11px no-repeat;
	border-radius: 999px;
}

.cv-site-footer .cv-footer-hero .cv-footer-statement {
	max-width: none !important;
	margin: 0 auto !important;
}

/*
 * Article archive (Artikler, categories, search): three per row, images in the same
 * 3:2 ratio, light blue category pills with the date, title below. No excerpt.
 */
.wp-block-query .wp-block-post-template.is-layout-grid {
	row-gap: clamp(48px, 7vw, 96px);
	column-gap: 24px;
}

.cv-post-image,
.cv-post-image img {
	margin-bottom: 0;
	border-radius: 0 !important;
}

.cv-post-image img {
	transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.cv-post-image {
	overflow: hidden;
}

.wp-block-post:hover .cv-post-image img {
	transform: scale(1.02);
}

.cv-post-meta {
	margin-top: 20px !important;
}

.cv-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cv-post-tags a {
	padding: 4px 10px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	background: var(--wp--preset--color--sand);
	border-radius: 999px;
}

.cv-post-tags .wp-block-post-terms__separator {
	display: none;
}

.cv-post-date {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

.cv-post-title {
	margin-top: 16px !important;
	font-weight: 400;
	line-height: 1.35;
}

.cv-post-title a {
	text-decoration: none;
	background: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) 0 100% / 0 1px no-repeat;
	transition: background-size 0.3s ease;
}

.cv-post-title a:hover {
	color: var(--wp--preset--color--contrast);
	background-size: 100% 1px;
}

/* Article archive head: big centred title, intro, tab-style category filter. */
.cv-archive-head {
	margin-bottom: clamp(48px, 7vw, 112px) !important;
}

.cv-archive-head h1,
.cv-archive-head .wp-block-query-title {
	font-size: clamp(48px, 7vw, 104px);
	line-height: 1;
	letter-spacing: -0.03em;
}

.cv-archive-head .wp-block-term-description {
	max-width: 32em;
	margin-inline: auto;
}

ul.cv-post-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	padding: 4px;
	margin: var(--wp--preset--spacing--30) auto 0;
	list-style: none;
	background: var(--wp--preset--color--sand-light);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
}

ul.cv-post-filter li {
	margin: 0;
	border-radius: 8px;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

ul.cv-post-filter li a {
	display: block;
	padding: 8px 18px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	white-space: nowrap;
}

ul.cv-post-filter li a:hover,
ul.cv-post-filter li.current-cat a {
	color: var(--wp--preset--color--contrast);
}

ul.cv-post-filter li.current-cat {
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
}

/*
 * Feature columns fill the full row whatever the number of boxes (no empty columns).
 * Flexbox instead of an auto-fit grid: behaves the same in Safari, Chrome and Firefox.
 */
:root .cv-feature-grid {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0 !important;
}

:root .cv-feature-grid > .cv-feature {
	flex: 1 1 210px;
	min-width: 0;
	max-width: 100%;
}

/*
 * Reference gallery (Om oss): deliberately toned down. Light grey band, small square
 * thumbnails, slightly muted colours that come to full colour on hover. Click opens
 * the full photo (WordPress lightbox).
 */
.cv-references-section {
	overflow-x: clip; /* The full-width track below never causes a sideways page scroll. */
}

.wp-block-gallery.cv-references {
	--wp--style--unstable-gallery-gap: 8px;
	gap: 8px;
	margin-top: var(--wp--preset--spacing--40) !important;
}

.wp-block-gallery.cv-references .wp-block-image img {
	aspect-ratio: 1;
	border-radius: var(--wp--custom--radius--card) !important;
	filter: saturate(0.8) brightness(1.03);
	opacity: 0.92;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

.wp-block-gallery.cv-references .wp-block-image:hover img {
	filter: none;
	opacity: 1;
}

/*
 * Reference gallery as a swipeable carousel: portrait 3:4 photos with rounded corners,
 * about three in view with the next one peeking in. Arrows are added by theme.js.
 * (Overrides the grid version above.)
 */
.wp-block-gallery.cv-references {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 24px !important;
	padding-bottom: 4px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.wp-block-gallery.cv-references::-webkit-scrollbar {
	display: none;
}

.wp-block-gallery.cv-references > .wp-block-image {
	flex: 0 0 clamp(240px, 27vw, 360px) !important;
	width: auto !important;
	margin: 0 !important;
	scroll-snap-align: start;
}

.wp-block-gallery.cv-references .wp-block-image img {
	width: 100%;
	height: auto !important;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 14px !important;
	filter: none;
	opacity: 1;
}

.cv-references-head {
	gap: var(--wp--preset--spacing--30);
}

.cv-references-head .is-disabled .wp-block-button__link {
	opacity: 0.35;
	pointer-events: none;
}

/* Article images (front page "Råd og tips", archive, resources): gentle zoom on hover. */
.wp-block-post .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: 10px;
}

.wp-block-post .wp-block-post-featured-image img {
	transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.wp-block-post:hover .wp-block-post-featured-image img,
.wp-block-post .wp-block-post-featured-image a:focus-visible img {
	transform: scale(1.06);
}

.wp-block-post .cv-post-image {
	border-radius: 0;
}

/* Tables in articles (for example price lists): thin horizontal lines only, like the rest of the site. */
.wp-block-table table {
	width: 100%;
	font-size: var(--wp--preset--font-size--medium);
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: 14px 16px 14px 0;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-table thead {
	border: 0;
}

.wp-block-table th {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-bottom-color: var(--wp--preset--color--contrast);
}

.wp-block-table td:last-child,
.wp-block-table th:last-child {
	padding-right: 0;
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.wp-block-table td:nth-child(2),
	.wp-block-table th:nth-child(2) {
		display: none;
	}
}

/* Team photo on the front page: keep the person in frame when cropped. */
.cv-team-photo img {
	object-position: 70% 40%;
}

/* Before and after photos in articles: same crop on both, so they compare side by side. */
.cv-before-after .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Size picker (25 / 35) on product pages: pill toggles, the chosen one dark. */
.cv-size-picker {
	padding: 0;
	margin: 0;
	border: 0;
}

.cv-size-picker legend {
	margin-bottom: 8px;
}

.cv-size-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cv-size-option {
	position: relative;
	cursor: pointer;
}

.cv-size-option input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.cv-size-option span {
	display: inline-block;
	min-width: 64px;
	padding: 10px 20px;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cv-size-option:hover span {
	border-color: var(--wp--preset--color--contrast);
}

.cv-size-option input:checked + span {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--dark);
}

.cv-size-option input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.cv-size-help {
	margin: 8px 0 0;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--muted);
}

/* Price columns (third column onwards) right aligned, like the last one. */
.wp-block-table td:nth-child(n+3),
.wp-block-table th:nth-child(n+3) {
	text-align: right;
	white-space: nowrap;
}

/* Cards on a light blue section (for example customer reviews): white, for contrast against the blue. */
.is-style-section-sand .is-style-card {
	background-color: var(--wp--preset--color--white) !important;
}

/*
 * Review form on product pages (and other comment forms): same look as the contact form.
 * Small uppercase labels above, rounded fields, dark pill button.
 */
#review_form .comment-reply-title {
	display: block;
	margin-bottom: 12px;
	font-size: var(--wp--preset--font-size--large);
}

#review_form .comment-form,
.wp-block-post-comments-form .comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
}

#review_form .comment-form > *,
.wp-block-post-comments-form .comment-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

#review_form .comment-form-author,
#review_form .comment-form-email {
	grid-column: auto;
}

#review_form .comment-form label,
.wp-block-post-comments-form .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

#review_form .comment-form input[type="text"],
#review_form .comment-form input[type="email"],
#review_form .comment-form textarea,
#review_form .comment-form select,
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--card);
}

#review_form .comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

#review_form .comment-form input:focus,
#review_form .comment-form textarea:focus,
#review_form .comment-form select:focus {
	border-color: var(--wp--preset--color--contrast);
	outline: 2px solid var(--wp--preset--color--accent-tint);
	outline-offset: 0;
}

/* "Lagre mitt navn ..." checkbox: normal text, box aligned with the first line. */
#review_form .comment-form-cookies-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

#review_form .comment-form-cookies-consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--wp--preset--color--contrast);
}

#review_form .comment-form-cookies-consent label {
	margin: 0;
	font-size: inherit;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
}

#review_form .comment-notes,
#review_form .required-field-message {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* Star rating: larger stars in the site's text colour. */
#review_form .stars a {
	color: var(--wp--preset--color--contrast);
}

#review_form .form-submit input[type="submit"] {
	padding: 10px 20px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	background: var(--wp--preset--color--dark);
	border: 0;
	border-radius: 999px;
}

#review_form .form-submit input[type="submit"]:hover {
	background: #000000;
}

@media (max-width: 600px) {
	#review_form .comment-form-author,
	#review_form .comment-form-email {
		grid-column: 1 / -1;
	}
}

/* Logo in the header (temporary SVG logo). */
.cv-logo {
	flex: none;
	margin: 0 !important;
	line-height: 0;
}

.cv-logo img {
	display: block;
	width: clamp(150px, 14vw, 190px) !important;
	height: auto;
	border-radius: 0 !important;
}

/*
 * Before/after slider (class "cv-compare" on a group with two images, see theme.js).
 * Before image underneath, after image on top, clipped from the handle to the right.
 */
.cv-compare {
	--cv-pos: 50%;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	user-select: none;
}

.cv-compare figure {
	margin: 0 !important;
}

.cv-compare img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0 !important;
}

.cv-compare.is-ready figure + figure {
	position: absolute;
	inset: 0;
	clip-path: inset(0 0 0 var(--cv-pos));
}

.cv-compare.is-ready figure + figure img {
	height: 100%;
	object-fit: cover;
}

.cv-compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--cv-pos);
	width: 2px;
	pointer-events: none;
	background: var(--wp--preset--color--white);
	transform: translateX(-1px);
}

.cv-compare__handle::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	content: "";
	background: var(--wp--preset--color--white) center / 22px no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transform: translate(-50%, -50%);
}

.cv-compare__label {
	position: absolute;
	top: 14px;
	padding: 4px 10px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--white);
	pointer-events: none;
	background: rgba(34, 34, 34, 0.75);
	border-radius: 999px;
}

.cv-compare__label--before {
	left: 14px;
}

.cv-compare__label--after {
	right: 14px;
}

/* Invisible range input over the whole image: drag anywhere, or use the arrow keys. */
.cv-compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: ew-resize;
	opacity: 0;
	appearance: none;
}

.cv-compare__range::-webkit-slider-thumb {
	width: 44px;
	height: 100%;
	appearance: none;
}

.cv-compare__range:focus-visible + .cv-compare__handle::after,
.cv-compare:has(.cv-compare__range:focus-visible) .cv-compare__handle::after {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/*
 * "Utforsk ..." button in the bottom left corner of the solution cards on the front page.
 * Shown on the active (large) card in the carousel, and on hover. The whole card is already
 * a link, so this is a visual cue only (hidden from screen readers and the tab order).
 */
.cv-segment-card .wp-block-cover__inner-container {
	position: relative;
}

.cv-segment-card .cv-segment-cta {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 2;
	margin: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.cv-segment-card .cv-segment-cta a {
	display: inline-flex;
	gap: 12px;
	align-items: center;
	padding: 8px 8px 8px 18px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	background: var(--wp--preset--color--white);
	border-radius: 999px;
}

/* The CTA is not the full-card overlay link. */
.cv-segment-card .cv-segment-cta a::after {
	position: static;
	width: 28px;
	height: 28px;
	content: "";
	background: var(--wp--preset--color--dark) var(--cv-arrow-light) center / 11px no-repeat;
	border-radius: 999px;
	transition: transform 0.2s ease;
}

.cv-segment-card:hover .cv-segment-cta a::after {
	transform: rotate(45deg);
}

.cv-segments > .cv-segment-card .cv-segment-cta {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

.cv-segments > .cv-segment-card.is-active .cv-segment-cta,
.cv-segments > .cv-segment-card:hover .cv-segment-cta {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.cv-segment-card .cv-segment-cta,
.cv-segment-card .cv-segment-cta a {
	white-space: nowrap;
}

/* "Pris etter befaring" where there is no price. */
.cv-price-on-request {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

/* Næring: outdoor and indoor units as cards with photo, title and one line (like Toshiba's own grouping). */
.cv-unit-group + .cv-unit-group {
	margin-top: var(--wp--preset--spacing--70) !important;
}

.cv-unit-card {
	position: relative;
	padding: 20px 20px 24px;
	background: var(--wp--preset--color--sand-light);
	border-radius: var(--wp--custom--radius--card);
	transition: background-color 0.2s ease;
}

.cv-unit-card:hover {
	background: var(--wp--preset--color--sand);
}

.cv-unit-card .wp-block-image,
.cv-unit-card .cv-placeholder {
	margin-bottom: 8px !important;
}

.cv-unit-card .wp-block-image img {
	object-fit: contain !important;
	border-radius: 0 !important;
}

.cv-unit-card .cv-placeholder {
	aspect-ratio: 3 / 2;
	min-height: 0 !important;
}

.cv-unit-card h3 {
	margin: 0;
}

.cv-unit-card h3 a {
	text-decoration: none;
}

/* The whole card is clickable. */
.cv-unit-card h3 a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.cv-unit-card p {
	margin: 0;
}

/*
 * Pagination (products and articles): round number buttons, the current page dark,
 * and "Forrige side" / "Neste side" as pill buttons with a border.
 */
.wp-block-query-pagination {
	gap: 8px;
	align-items: center;
	margin-top: var(--wp--preset--spacing--60) !important;
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: 6px;
	align-items: center;
}

.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-query-pagination a.page-numbers:hover {
	border-color: var(--wp--preset--color--contrast);
}

.wp-block-query-pagination .page-numbers.current {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--dark);
}

.wp-block-query-pagination .page-numbers.dots {
	min-width: 0;
	padding: 0 4px;
	border: 0;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	height: 44px;
	padding: 0 20px;
	margin: 0 6px !important;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--white) !important;
	text-decoration: none;
	background: var(--wp--preset--color--dark);
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	background: #000000;
}

/* Product archive: category chips on the left, Privat / Næring toggle on the right. */
.cv-catalog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
}

.cv-catalog-filters > .wp-block-woocommerce-product-categories {
	margin: 0 !important;
}

/* Same look as the article filter (Alle / Nyheter / Råd og tips): grey tray, white active tab. */
/* Sorting next to the toggle: same height, beige field, rounded, with a small chevron. */
.cv-catalog-filters__right {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.cv-catalog-filters .woocommerce-ordering {
	margin: 0 !important;
}

.cv-catalog-filters .woocommerce-ordering select.orderby {
	height: 49px; /* Same height as the Alle / Privat / Næring toggle. */
	padding: 0 42px 0 16px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	background: var(--wp--preset--color--sand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23222222' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	appearance: none;
	-webkit-appearance: none;
}

.cv-catalog-filters .woocommerce-ordering select.orderby:hover {
	border-color: var(--wp--preset--color--line-strong);
}

.cv-catalog-filters .woocommerce-ordering select.orderby:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

.cv-segment-toggle {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: var(--wp--preset--color--sand-light);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
}

.cv-segment-toggle a {
	padding: 8px 18px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cv-segment-toggle a:hover {
	color: var(--wp--preset--color--contrast);
}

.cv-segment-toggle a.is-active {
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
}

/* Bildeskille: wide photo with no frame between two sections. */
.cv-image-divider,
.cv-image-divider img {
	margin: 0;
	width: 100%;
	border-radius: 0;
}

@media (max-width: 781px) {
	.cv-image-divider img {
		aspect-ratio: 3/2 !important;
	}
}

/* Klar for en prat: photo panel with dark tint, white text. */
.cv-cta-cover {
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--white);
}

.cv-cta-cover .wp-block-heading {
	font-size: clamp(32px, 4vw, 52px) !important;
}

.cv-cta-cover .wp-block-heading,
.cv-cta-cover p {
	color: var(--wp--preset--color--white);
}

.cv-cta-cover .is-style-eyebrow {
	color: rgba(255, 255, 255, 0.72);
}

.cv-cta-cover .wp-block-buttons {
	gap: 12px 20px;
}

.cv-cta-cover .cv-btn-light .wp-block-button__link {
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--white);
}

.cv-cta-cover .cv-btn-light .wp-block-button__link::after {
	background-color: var(--wp--preset--color--dark);
	background-image: var(--cv-arrow-light);
}

/* Ring: outlined pill on the photo, same size as Send forespørsel. */
.cv-cta-cover .is-style-secondary .wp-block-button__link {
	padding: 7px 7px 7px 19px;
	color: var(--wp--preset--color--white);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
}

.cv-cta-cover .is-style-secondary .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}

.cv-cta-cover .is-style-secondary .wp-block-button__link::after {
	width: 28px;
	height: 28px;
	background: var(--wp--preset--color--white) var(--cv-arrow-dark) center / 11px no-repeat;
}

/*
 * Even spacing between sections: two white sections in a row would otherwise add their
 * paddings together (80 + 80) while a white next to a coloured one gets only 80. When a
 * white section follows another white section, its top padding is dropped.
 */
:is([class*="wp-block-christiansen-"]:not(.wp-block-christiansen-hero, .wp-block-christiansen-contact-cta)):has(> section:not(.has-background):not([class*="is-style-section-"]))
	+ [class*="wp-block-christiansen-"]:not(.wp-block-christiansen-contact-cta) > section:not(.has-background):not([class*="is-style-section-"]) {
	padding-top: 0 !important;
}

/* The service card on white: the same space around it as the other sections. */
.wp-block-christiansen-service-cta > section {
	padding-top: var(--wp--preset--spacing--80) !important;
	padding-bottom: var(--wp--preset--spacing--80) !important;
}

.cv-cta-cover .wp-block-heading + p {
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.5;
}

/* Spørsmål og svar: full width rows with a line between, filled plus/minus circle on the right. */
:is(.wp-block-christiansen-faq, .wp-block-christiansen-service-faq) .wp-block-details {
	max-width: none !important;
	margin: 0 !important;
	padding: 26px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 0 !important;
	background: transparent !important;
}

:is(.wp-block-christiansen-faq, .wp-block-christiansen-service-faq) .wp-block-details summary {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
}

:is(.wp-block-christiansen-faq, .wp-block-christiansen-service-faq) .wp-block-details summary::after {
	width: 22px;
	height: 22px;
	font-size: 15px;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--contrast);
	border: 0;
}

:is(.wp-block-christiansen-faq, .wp-block-christiansen-service-faq) .wp-block-details > :not(summary) {
	max-width: 820px;
	margin-top: 14px;
}

/*
 * Derfor velger folk Christiansen: product photo in a grey panel on the left,
 * six grey cards with a check mark on the right.
 */
.cv-why h2 {
	margin-bottom: var(--wp--preset--spacing--50);
}

.cv-why__columns {
	align-items: stretch !important;
}

.cv-why__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--sand-light);
}

.cv-why__media .wp-block-image {
	margin: 0;
}

.cv-why__media img {
	width: 100%;
	max-width: 560px;
}

/*
 * Only JPG photos have a white background to melt into the beige. Transparent images
 * (PNG/WebP, for example the white indoor units) are left alone, or the white unit
 * itself turns beige and looks grey.
 */
:root .cv-catalog .wc-block-components-product-image img[src*=".jpg"],
.wc-block-components-product-image img[src*=".jpg"],
.cv-unit-card .wp-block-image img[src*=".jpg"],
.cv-why__media img[src*=".jpg"],
.wc-block-components-product-image img[src*="placeholder"] {
	mix-blend-mode: multiply;
}

.cv-why__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
	text-align: left;
	background: var(--wp--preset--color--sand-light);
}

.cv-why__card::before {
	width: 24px;
	height: 24px;
	margin-bottom: 20px;
	content: "";
	background: var(--wp--preset--color--contrast) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3 5 8.7l4.5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
	border-radius: 999px;
}

.cv-why__card > * {
	max-width: none !important;
	margin-inline: 0 !important;
	text-align: left !important;
}

.cv-why__card h3 {
	margin: 0;
	font-weight: 400 !important;
	letter-spacing: -0.01em;
}

.cv-why__card p {
	margin-top: 10px;
}

@media (max-width: 781px) {
	.cv-why__media {
		min-height: 260px;
	}
}

/* Same layout with a photo: the photo fills the whole panel. */
.cv-why__head {
	margin-bottom: var(--wp--preset--spacing--50);
}

.cv-why__head h2 {
	margin-bottom: 0;
}

.cv-why__media--photo {
	position: relative;
	padding: 0;
	overflow: hidden;
}

.cv-why__media--photo .wp-block-image {
	position: absolute;
	inset: 0;
}

.cv-why__media--photo img {
	width: 100%;
	max-width: none;
	height: 100% !important;
	object-fit: cover;
	mix-blend-mode: normal;
	border-radius: 0 !important;
}

/*
 * Reference carousel: full bleed like the front page carousel. The track runs from screen
 * edge to screen edge; the first photo lines up with the content, and photos slide out at
 * both sides.
 */
.wp-block-gallery.cv-references {
	--cv-ref-inset: max(var(--wp--style--root--padding-left, 20px), calc((100vw - var(--wp--style--global--wide-size)) / 2));
	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: 0 !important;
	padding-inline: var(--cv-ref-inset);
	scroll-padding-inline: var(--cv-ref-inset);
}

/* Light buttons (footer, Klar for en prat): black circle with a white arrow. */
.cv-btn-light .wp-block-button__link::after {
	background: #141413 var(--cv-arrow-light) center / 11px no-repeat !important;
}

/* Bilde og påstand: one large statement instead of heading + text, chips and a button. */
.cv-statement-split .cv-statement__title {
	margin: 0;
	font-size: 46px !important;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.cv-statement__label {
	margin-top: var(--wp--preset--spacing--50) !important;
	color: var(--wp--preset--color--muted);
}

.cv-statement .is-style-chips {
	margin-top: 10px !important;
}

.cv-statement .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--50) !important;
}

@media (max-width: 781px) {
	.cv-statement-split .cv-statement__title {
		font-size: 30px !important;
	}
}

/* 404 page: centred like the hero, a search field and four shortcuts on beige cards. */
.cv-404 .cv-404__search {
	max-width: 520px;
	margin-inline: auto !important;
}

.cv-404 .cv-404__search .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 0;
	border: 0;
}

.cv-404 .cv-404__search .wp-block-search__input {
	padding: 12px 20px;
	font-size: var(--wp--preset--font-size--base);
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 999px;
}

.cv-404 .cv-404__search .wp-block-search__button {
	margin: 0;
	padding: 12px 22px;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--contrast);
	border: 0;
	border-radius: 999px;
}

.cv-404__links {
	gap: 16px !important;
}

.cv-404__links p {
	margin: 0;
}

.cv-404__links a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 150px;
	padding: 24px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	background: var(--wp--preset--color--sand-light);
	border-radius: var(--wp--custom--radius--card);
	transition: background-color 0.2s ease;
}

.cv-404__links a:hover {
	background: var(--wp--preset--color--sand);
}

.cv-404__links strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
}

.cv-404__links span {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.cv-404__links a::after {
	position: absolute;
	right: 20px;
	bottom: 20px;
	width: 28px;
	height: 28px;
	content: "";
	background: var(--wp--preset--color--contrast) var(--cv-arrow-light) center / 11px no-repeat;
	border-radius: 999px;
	transition: transform 0.2s ease;
}

.cv-404__links a:hover::after {
	transform: rotate(45deg);
}

/* Energy label: arrow in the EU label greens (A+ light, A++ mid, A+++ dark). */
.cv-energy {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 18px 0 9px;
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	background: #3f9b3f;
	clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
	border-radius: 3px 0 0 3px;
}

.cv-energy--a0 { background: #c3d82f; color: #1f2a0a; }
.cv-energy--a1 { background: #8cc63f; }
.cv-energy--a2 { background: #3f9b3f; }
.cv-energy--a3 { background: #1d6a33; }

/* On product cards: centred under the photo. */
.cv-energy-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin: 12px 0 0 !important;
}

.cv-energy-row--start {
	justify-content: flex-start;
	margin-top: 10px !important;
}

.cv-max-kw {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	color: var(--wp--preset--color--contrast);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
}

/* Product page: next to the price. */
.cv-price-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.cv-price-row > * {
	margin: 0 !important;
}

.cv-price-row .cv-energy {
	height: 30px;
	font-size: 17px;
}

/*
 * White indoor units: in Toshiba's transparent photos the unit is off-white (about 246, 247, 249),
 * which reads as grey on the beige panels. A small brightness lift makes it white again.
 * JPG photos are left alone (they melt into the beige with multiply instead).
 */
.wc-block-components-product-image img:not([src*=".jpg"]):not([src*="placeholder"]),
.woocommerce-product-gallery__image img:not([src*=".jpg"]),
.woocommerce-product-gallery .flex-control-thumbs img:not([src*=".jpg"]),
.cv-why__media img:not([src*=".jpg"]),
.cv-unit-card .wp-block-image img:not([src*=".jpg"]) {
	filter: brightness(1.04) contrast(1.02);
}
