/*
 * Campaign page (/kampanj/, inc/campaign.php). Loaded only on that page. Every rule is scoped under
 * body.is-kampanj, so no other page changes. Colours come from the theme.json presets, as in
 * refresh.css; the design is the Black November mockup (reference/kampanj-black-november/).
 * Square corners everywhere.
 */

body.is-kampanj {
	--k-ink: var(--wp--preset--color--ink);
	--k-linen: var(--wp--preset--color--linen);
	--k-brown: var(--wp--preset--color--brown);
	--k-sand: var(--wp--preset--color--sand);
	--k-sand-light: var(--wp--preset--color--sand-light);
	--k-muted: var(--wp--preset--color--muted);
	--k-sale: var(--wp--preset--color--deep-rust);
	--k-wheat: var(--wp--preset--color--wheat);
	--k-text-2: color-mix(in srgb, var(--wp--preset--color--ink) 55%, var(--wp--preset--color--muted));
	--k-linen-85: color-mix(in srgb, var(--wp--preset--color--linen) 85%, transparent);
	--k-gutter: clamp(1rem, 4vw, 3rem);
	--k-pad-y: clamp(72px, 8vw, 120px);
	--k-mono: var(--wp--preset--font-family--mono);
	--k-sans: var(--wp--preset--font-family--sans);
}

/* The page's own bands run edge to edge, with the gutter as their side padding. */
body.is-kampanj .wp-block-post-content > .k-sec {
	max-width: none;
	margin-block: 0;
	padding: var(--k-pad-y) var(--k-gutter);
	box-sizing: border-box;
	/* Nothing may widen a band past the viewport (that would pan the page and make the gutters look uneven). */
	overflow-x: clip;
	font-family: var(--k-sans);
	color: var(--k-ink);
	line-height: 1.6;
}

body.is-kampanj .k-sec :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
	margin-block: 0;
}

body.is-kampanj .k-sec a {
	text-decoration: none;
}

body.is-kampanj .k-eyebrow {
	margin: 0 0 12px;
	font-family: var(--k-mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--k-muted);
}

body.is-kampanj .k-h2 {
	margin: 0 0 16px;
	font-family: var(--k-sans);
	font-size: clamp(30px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--k-ink);
}

body.is-kampanj .k-lede {
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--k-text-2);
	max-width: 80ch;
}

body.is-kampanj .k-sale {
	display: inline-block;
	background: var(--k-sale);
	color: var(--k-linen);
	font-family: var(--k-mono);
	font-weight: 500;
	line-height: 1.2;
}

/* ---------- Buttons ---------- */

body.is-kampanj a.k-btn {
	display: inline-block;
	box-sizing: border-box;
	border-radius: 0;
	text-align: center;
	white-space: nowrap;
	font-family: var(--k-sans);
	font-weight: 600;
	text-decoration: none;
}

body.is-kampanj a.k-btn--brown {
	background: var(--k-brown);
	color: var(--k-linen);
	border: 1px solid var(--k-brown);
}

body.is-kampanj a.k-btn--brown:hover,
body.is-kampanj a.k-btn--brown:focus-visible {
	background: var(--wp--preset--color--brown-dark);
	border-color: var(--wp--preset--color--brown-dark);
	color: var(--k-linen);
}

body.is-kampanj a.k-btn--linen {
	background: var(--k-linen);
	color: var(--k-ink);
	border: 1px solid var(--k-linen);
}

body.is-kampanj a.k-btn--linen:hover,
body.is-kampanj a.k-btn--linen:focus-visible {
	background: var(--wp--preset--color--wheat);
	border-color: var(--wp--preset--color--wheat);
	color: var(--k-ink);
}

body.is-kampanj a.k-btn--ghost-light {
	border: 1px solid color-mix(in srgb, var(--k-linen) 60%, transparent);
	color: var(--k-linen);
}

body.is-kampanj a.k-btn--ghost-light:hover,
body.is-kampanj a.k-btn--ghost-light:focus-visible {
	background: color-mix(in srgb, var(--k-linen) 12%, transparent);
	color: var(--k-linen);
}

body.is-kampanj a.k-btn--ghost-brown {
	border: 1px solid var(--k-brown);
	color: var(--k-brown);
}

body.is-kampanj a.k-btn--ghost-brown:hover,
body.is-kampanj a.k-btn--ghost-brown:focus-visible {
	background: var(--k-brown);
	color: var(--k-linen);
}

body.is-kampanj a.k-btn--ghost-ink {
	border: 1px solid var(--k-ink);
	color: var(--k-ink);
}

body.is-kampanj a.k-btn--ghost-ink:hover,
body.is-kampanj a.k-btn--ghost-ink:focus-visible {
	background: var(--k-ink);
	color: var(--k-linen);
}

body.is-kampanj .k-mono {
	font-family: var(--k-mono);
}

/* ---------- Hero ---------- */

body.is-kampanj .wp-block-post-content > .k-hero {
	background: var(--k-ink);
	color: var(--k-linen);
	padding: clamp(36px, 7vw, 96px) var(--k-gutter) clamp(44px, 7vw, 96px);
}

body.is-kampanj .k-hero__in {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 3vw, 32px);
}

body.is-kampanj .k-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

body.is-kampanj .k-hero .k-tag {
	background: var(--k-sale);
	color: var(--k-linen);
	font-family: var(--k-mono);
	font-size: clamp(15px, 1.6vw, 20px);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 10px 16px;
	line-height: 1.1;
}

body.is-kampanj .k-hero .k-h1 {
	margin: 0;
	font-family: var(--k-sans);
	font-size: clamp(34px, 6vw, 72px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.02;
	color: var(--k-linen);
}

body.is-kampanj .k-hero .k-sub {
	margin: calc(clamp(20px, 3vw, 32px) * -0.5) 0 0;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.4;
	color: var(--k-linen-85);
}

body.is-kampanj .k-hero .k-sub strong {
	color: var(--k-wheat);
	font-weight: 700;
}

body.is-kampanj .k-o2 {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 16px;
}

body.is-kampanj .k-o2__img {
	min-width: 0;
}

/* Side by side (900px and up): the photo's frame takes the card's height, so the two are the same height. */
@media (min-width: 900px) {
	body.is-kampanj .k-o2__img {
		display: flex;
	}

	body.is-kampanj .k-o2__img .k-diagram {
		flex: 1 1 auto;
		aspect-ratio: auto;
	}
}

body.is-kampanj .k-offer {
	background: var(--k-linen);
	color: var(--k-ink);
	padding: clamp(20px, 3vw, 36px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
}

body.is-kampanj .k-offer__big {
	display: flex;
	align-items: baseline;
	gap: 16px;
	line-height: 0.85;
}

body.is-kampanj .k-offer__nums {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	flex: none;
}

body.is-kampanj .k-offer__num {
	font-size: clamp(96px, 10vw, 150px);
	font-weight: 800;
	letter-spacing: -0.06em;
	color: var(--k-sale);
}

body.is-kampanj .k-offer__pct {
	padding-top: clamp(8px, 1.2vw, 16px);
	font-size: clamp(36px, 4vw, 56px);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--k-sale);
	line-height: 0.9;
}

body.is-kampanj .k-offer__label {
	min-width: 0;
	font-size: 50px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--k-sale);
	line-height: 0.85;
}

body.is-kampanj .k-offer__what {
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.is-kampanj .k-checks {
	list-style: none;
	margin: auto 0 0;
	padding: 0;
	border-top: 1px solid var(--k-sand);
}

body.is-kampanj .k-checks li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--k-sand);
}

body.is-kampanj .k-checks svg {
	flex-shrink: 0;
}

body.is-kampanj .k-checks__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body.is-kampanj .k-checks__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}

body.is-kampanj .k-checks__desc {
	font-size: 14px;
	line-height: 1.35;
	color: var(--k-muted);
}

body.is-kampanj .k-offer__chip {
	display: inline-block;
	font-family: var(--k-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--k-ink);
	background: var(--k-wheat);
	padding: 6px 10px;
	max-width: 100%;
	box-sizing: border-box;
}

/* The CTA row under the subline. */
body.is-kampanj .k-herocta {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

body.is-kampanj .k-herocta__row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

body.is-kampanj a.k-btn.k-herobtn--primary {
	padding: 24px 40px;
	background: var(--k-wheat);
	border: 0;
	color: var(--k-ink);
	font-size: 21px;
	font-weight: 800;
}

body.is-kampanj a.k-btn.k-herobtn--primary:hover,
body.is-kampanj a.k-btn.k-herobtn--primary:focus-visible {
	background: var(--k-linen);
	color: var(--k-ink);
}

body.is-kampanj a.k-btn.k-herobtn--ghost {
	padding: 22px 32px;
	background: transparent;
	border: 2px solid var(--k-linen);
	color: var(--k-linen);
	font-size: 19px;
	font-weight: 700;
}

body.is-kampanj a.k-btn.k-herobtn--ghost:hover,
body.is-kampanj a.k-btn.k-herobtn--ghost:focus-visible {
	background: color-mix(in srgb, var(--k-linen) 12%, transparent);
	color: var(--k-linen);
}

body.is-kampanj .k-herocta__note {
	margin: 0;
	font-size: 15px;
	color: color-mix(in srgb, var(--k-linen) 75%, transparent);
}

/*
 * The wardrobe photo in a square frame (the file is pre-cropped to exactly this framing, so nothing is
 * zoomed or scaled in CSS), with two HTML labels over it. The labels are placed in % of the frame.
 */
body.is-kampanj .k-diagram {
	position: relative;
	container-type: inline-size;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--k-ink);
	margin: 0;
}

body.is-kampanj .k-diagram__inner {
	position: absolute;
	inset: 0;
}

body.is-kampanj .k-diagram img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

body.is-kampanj .k-lab {
	position: absolute;
	display: flex;
	align-items: center;
	white-space: nowrap;
	font-family: var(--k-sans);
	line-height: 1;
}

body.is-kampanj .k-lab--fyllning { left: 61%; top: 44%; transform: translate(-7px, -50%); }
body.is-kampanj .k-lab--inredning { left: 28%; top: 73%; transform: translate(-7px, -50%); }

body.is-kampanj .k-lab__dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--k-linen);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--k-linen) 35%, transparent), 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.is-kampanj .k-lab__line {
	flex: none;
	width: clamp(14px, 4.2cqw, 22px);
	height: 2px;
	background: var(--k-linen);
}

body.is-kampanj .k-lab__tag {
	display: flex;
	align-items: stretch;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

body.is-kampanj .k-lab__tag b {
	display: block;
	padding: 0.5625em 0.75em;
	background: var(--k-linen);
	color: var(--k-ink);
	font-size: clamp(11px, 3.1cqw, 16px);
	font-weight: 700;
}

body.is-kampanj .k-lab__tag em {
	display: flex;
	align-items: center;
	padding: 0 0.77em;
	background: var(--k-sale);
	color: var(--k-linen);
	font-family: var(--k-mono);
	font-size: clamp(9px, 2.5cqw, 13px);
	font-style: normal;
	font-weight: 500;
}

/* ---------- Categories ---------- */

body.is-kampanj .k-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

body.is-kampanj .k-cats li {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

body.is-kampanj .k-cats__img {
	aspect-ratio: 3 / 4;
	background: var(--k-sand-light);
	border: 1px solid var(--k-sand);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
}

/* The category photos: a 3:4 box; the files are pre-cropped 3:4 (1200 x 1600), so cover only trims rounding. */
body.is-kampanj .k-cats__img--photo {
	display: block;
	padding: 0;
	border: 0;
	overflow: hidden;
}

body.is-kampanj .k-cats__img--photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.is-kampanj .k-cats__img span {
	font-family: var(--k-mono);
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--k-muted);
}

/*
 * Card hover, as on the home page's room tiles (refresh.css, "Photo hover"): the photo scales to 1.04
 * inside its frame (the frame clips it), 600ms ease-out in and 400ms out, and the title goes brown-dark
 * at the same time. The same on keyboard focus. The motion only where there is a real hover and not with
 * reduced motion.
 */
body.is-kampanj .k-cats li:is(:hover, :has(:focus-visible)) h3 {
	color: var(--wp--preset--color--brown-dark);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body.is-kampanj .k-cats__img--photo img {
		transition: transform 400ms ease-out;
	}

	body.is-kampanj .k-cats h3 {
		transition: color 400ms ease-out;
	}

	body.is-kampanj .k-cats li:is(:hover, :has(:focus-visible)) .k-cats__img--photo img {
		transform: scale(1.04);
		transition-duration: 600ms;
	}

	body.is-kampanj .k-cats li:is(:hover, :has(:focus-visible)) h3 {
		transition-duration: 600ms;
	}
}

body.is-kampanj .k-cats h3 {
	margin: 0;
	font-family: var(--k-sans);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

body.is-kampanj .k-cats p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--k-muted);
}

body.is-kampanj .k-cats a {
	font-size: 14px;
	font-weight: 600;
	color: var(--k-brown);
}

body.is-kampanj .k-ctarow {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

body.is-kampanj .k-ctarow a.k-btn {
	font-size: 15px;
}

body.is-kampanj .k-ctarow a.k-btn--brown {
	padding: 14px 24px;
}

body.is-kampanj .k-ctarow a.k-btn--ghost-brown {
	padding: 13px 22px;
}

/* ---------- Included materials ---------- */

body.is-kampanj .k-incl__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

body.is-kampanj .k-incl__head .k-h2 {
	margin: 0;
}

body.is-kampanj .k-incl__head .k-sale {
	font-size: 13px;
	padding: 5px 9px;
}

body.is-kampanj .k-incl__lead {
	margin: 0 0 10px;
	font-size: clamp(18px, 2vw, 21px);
	font-weight: 600;
	line-height: 1.4;
	color: var(--k-ink);
}

body.is-kampanj .k-incl__note {
	margin: 0 0 48px;
	font-size: 14px;
	color: var(--k-muted);
}

body.is-kampanj .wp-block-post-content > .k-incl {
	border-top: 1px solid var(--k-sand);
}

body.is-kampanj .k-incl h3 {
	margin: 0 0 6px;
	font-family: var(--k-sans);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

body.is-kampanj .k-incl .k-incl__what {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--k-muted);
}

/* The small link that closes the materials section. */
body.is-kampanj .k-incl__termslink {
	margin: 40px 0 0;
	font-size: 14px;
	font-weight: 600;
}

body.is-kampanj .k-incl__termslink a {
	color: var(--k-brown);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.is-kampanj .k-incl__gap {
	height: 64px;
}

/*
 * One grid for Dörrfyllningar and Inredning: every tile is the same size, whatever the group.
 * 2 columns under 360px, 3 up to 699px, 4 up to 1023px, 5 from 1024px. Short lists stay left-aligned.
 */
body.is-kampanj .k-sw-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (min-width: 360px) {
	body.is-kampanj .k-sw-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 700px) {
	body.is-kampanj .k-sw-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	body.is-kampanj .k-sw-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

body.is-kampanj .k-sw {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

body.is-kampanj .k-sw img {
	display: block;
	box-sizing: border-box;
	border: 1px solid var(--k-sand);
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* A material with no photo yet: a square in the swatch's place. */
body.is-kampanj .k-sw__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	padding: 8px;
	background: var(--k-sand-light);
	border: 1px solid var(--k-sand);
	text-align: center;
}

body.is-kampanj .k-sw__ph span {
	font-family: var(--k-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--k-muted);
}

body.is-kampanj .k-sw__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.is-kampanj .k-sw__name {
	font-size: 14px;
	color: var(--k-ink);
}

body.is-kampanj .k-sw__sub {
	font-size: 13px;
	color: var(--k-muted);
}

body.is-kampanj #villkor {
	scroll-margin-top: 16px;
}

/* The small "Kampanjvillkor" links: the tag line's type, underlined. */
body.is-kampanj .k-offer__terms {
	margin: 0;
	font-family: var(--k-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.is-kampanj .k-offer__terms a,
body.is-kampanj .k-close__terms a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.is-kampanj .k-offer__terms a:hover,
body.is-kampanj .k-close__terms a:hover {
	color: var(--k-brown);
}

body.is-kampanj .k-faq__q p a {
	color: var(--k-brown);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- How it works ---------- */

body.is-kampanj .wp-block-post-content > .k-how {
	border-top: 1px solid var(--k-sand);
}

body.is-kampanj .k-how .k-h2 {
	margin-bottom: 40px;
}

body.is-kampanj .k-how__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
}

body.is-kampanj .k-how__list li {
	border-top: 2px solid var(--k-ink);
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.is-kampanj .k-how__n {
	font-family: var(--k-mono);
	font-size: 13px;
	color: var(--k-muted);
}

body.is-kampanj .k-how__title {
	font-size: 17px;
	font-weight: 600;
}

body.is-kampanj .k-how__text {
	font-size: 14px;
	color: var(--k-muted);
}

/* ---------- Booking ---------- */

body.is-kampanj .wp-block-post-content > .k-book {
	background: var(--k-sand-light);
	border-top: 1px solid var(--k-sand);
	border-bottom: 1px solid var(--k-sand);
}

/*
 * The jump target. scroll-offset.js already puts --header-height (the sticky header's real height
 * plus 12px) in the page's scroll-padding-top; this adds 16px of air. Measured 1440 and 390: the
 * section lands 28px below the header and the heading well clear of it.
 */
body.is-kampanj #boka {
	scroll-margin-top: 16px;
}

body.is-kampanj .k-book__in {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: flex-start;
}

body.is-kampanj .k-book__text {
	flex: 1 1 380px;
	min-width: 0;
	max-width: 50ch;
}

body.is-kampanj .k-book__text .k-h2 {
	margin-bottom: 20px;
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.12;
}

body.is-kampanj .k-book__text > p {
	margin: 0 0 28px;
	font-size: 16px;
	color: var(--k-muted);
}

body.is-kampanj .k-book__text > p.k-book__hours {
	margin: 24px 0 0;
	font-size: 13px;
}

body.is-kampanj .k-book__text .k-ctarow {
	gap: 12px 16px;
}

body.is-kampanj .k-book__text a.k-btn--brown {
	font-size: 14px;
	padding: 12px 20px;
	font-family: var(--k-mono);
	font-weight: 600;
}

body.is-kampanj .k-book__text a.k-btn--ghost-ink {
	font-size: 14px;
	padding: 11px 20px;
}

body.is-kampanj .k-form {
	flex: 1 1 440px;
	min-width: 0;
	background: var(--wp--preset--color--white);
	padding: 32px;
	box-sizing: border-box;
}

body.is-kampanj .k-form__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
}

body.is-kampanj .k-form__head h3 {
	margin: 0;
	font-family: var(--k-sans);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.is-kampanj .k-form__head p {
	font-size: 14px;
	color: var(--k-muted);
}

/* The Formidable form inside the card. */
body.is-kampanj .k-form .frm_forms,
body.is-kampanj .k-form .frm_style_formidable-style.with_frm_style {
	margin: 0;
	max-width: none;
	padding: 0;
}

body.is-kampanj .k-form form {
	margin: 0;
}

/* Formidable lays the form out on a 12-column grid with !important on each field; the card uses two columns instead. */
body.is-kampanj .k-form .frm_form_fields .frm_fields_container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

body.is-kampanj .k-form .frm_fields_container > .frm_form_field {
	grid-column: 1 / -1 !important;
	margin: 0;
	width: auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Namn, Telefon, E-post, Ort side by side; message, newsletter box and button full width. */
body.is-kampanj .k-form .frm_fields_container > .frm_form_field:nth-of-type(-n+4) {
	grid-column: span 1 !important;
}

body.is-kampanj .k-form .frm_fields_container > .frm_form_field.frm_hidden {
	display: none;
}

body.is-kampanj .k-form .frm_primary_label {
	margin: 0;
	padding: 0;
	font-family: var(--k-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--k-ink);
}

body.is-kampanj .k-form .frm_required {
	color: var(--k-sale);
}

body.is-kampanj .k-form :is(input[type="text"], input[type="tel"], input[type="email"], textarea) {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	font: inherit;
	font-weight: 400;
	font-size: 15px;
	padding: 12px;
	border: 1px solid var(--k-sand);
	border-radius: 0;
	background: var(--wp--preset--color--cream);
	color: var(--k-ink);
	box-shadow: none;
	height: auto;
}

body.is-kampanj .k-form textarea {
	resize: vertical;
}

body.is-kampanj .k-form :is(input[type="text"], input[type="tel"], input[type="email"], textarea):focus {
	outline: 2px solid var(--k-brown);
	outline-offset: 0;
	border-color: var(--k-brown);
	box-shadow: none;
}

body.is-kampanj .k-form .frm_description {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	color: var(--k-muted);
}

body.is-kampanj .k-form .roland-optin .frm_primary_label {
	display: none;
}

body.is-kampanj .k-form .frm_checkbox,
body.is-kampanj .k-form .frm_opt_container {
	margin: 0;
	padding: 0;
}

/* The marketing question's options: the form's own type (13px, 600, as its labels), 12px below the note. */
body.is-kampanj .k-form .roland-optin-choice .frm_opt_container {
	margin-top: 12px;
}

body.is-kampanj .k-form .roland-optin-choice .frm_radio label {
	font-size: 13px;
	color: var(--k-ink) !important;
}

body.is-kampanj .k-form .frm_checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--k-ink);
	cursor: pointer;
}

body.is-kampanj .k-form input[type="checkbox"] {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--k-brown);
	border-radius: 0;
}

body.is-kampanj .k-form .frm_submit {
	margin: 0;
	padding: 0;
}

body.is-kampanj .k-form .frm_button_submit {
	width: 100%;
	box-sizing: border-box;
	background: var(--k-brown);
	color: var(--k-linen);
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 14px 24px;
	cursor: pointer;
	box-shadow: none;
	height: auto;
}

body.is-kampanj .k-form .frm_button_submit:hover,
body.is-kampanj .k-form .frm_button_submit:focus-visible {
	background: var(--wp--preset--color--brown-dark);
	color: var(--k-linen);
}

body.is-kampanj .k-form .frm-privacy-notice {
	margin: 0;
	font-size: 12px;
	color: var(--k-muted);
}

body.is-kampanj .k-form .frm-privacy-notice a {
	font-weight: 600;
	color: var(--k-brown);
}

body.is-kampanj .k-form .frm_error {
	font-size: 12px;
	color: var(--k-sale);
}

body.is-kampanj .k-form .frm_error_style,
body.is-kampanj .k-form .frm_message {
	margin: 0;
	padding: 16px;
	border-radius: 0;
	font-size: 15px;
	background: var(--wp--preset--color--sage);
	border: 1px solid var(--wp--preset--color--sand);
	color: var(--k-ink);
}

/* ---------- Campaign terms (its own section, laid out like the FAQ) ---------- */

body.is-kampanj .wp-block-post-content > .k-tsec {
	border-bottom: 1px solid var(--k-sand);
}

body.is-kampanj .k-tsec__in {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 64px;
	align-items: stretch;
}

body.is-kampanj .k-tsec__head {
	flex: 2 1 260px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	container-type: inline-size;
}

body.is-kampanj .k-tsec__head .k-h2 {
	margin: 0;
	/* The jump target of the "Kampanjvillkor" links; scroll-padding-top already clears the header and strip. */
	scroll-margin-top: 16px;
}

body.is-kampanj .k-tsec__body {
	flex: 3 1 420px;
	min-width: 0;
}

/* One sentence above the list, in the section's small text. */
body.is-kampanj .k-tsec__intro {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--k-muted);
}

body.is-kampanj .k-tsec__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: tsec;
	border-top: 1px solid var(--k-sand);
}

/*
 * The Black November block under the heading: fills the rest of the left column (the columns are the
 * same height). The type scales with the column, so "NOVEMBER" always fits. Decorative (aria-hidden).
 */
body.is-kampanj .k-tsec__badge {
	flex: 1 1 auto;
	min-height: 300px;
	margin-top: 32px;
	padding: 36px 40px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	background: var(--k-sale);
}

body.is-kampanj .k-tsec__badge-top {
	font-family: var(--k-mono);
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--k-wheat);
}

body.is-kampanj .k-tsec__badge-big {
	font-family: var(--k-mono);
	font-size: min(64px, calc((100cqw - 80px) / 5.3));
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--k-linen);
}

body.is-kampanj .k-tsec__badge-big b {
	font-weight: inherit;
	color: var(--k-wheat);
}

@media (max-width: 899px) {
	body.is-kampanj .k-tsec__head,
	body.is-kampanj .k-tsec__body {
		flex-basis: 100%;
	}

	body.is-kampanj .k-tsec__badge {
		min-height: 0;
		margin-top: 24px;
		padding: 24px;
	}

	body.is-kampanj .k-tsec__badge-big {
		font-size: 40px;
	}
}

body.is-kampanj .k-tsec__list li {
	counter-increment: tsec;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--k-sand);
	font-size: 16px;
	line-height: 1.6;
	color: var(--k-ink);
}

body.is-kampanj .k-tsec__list li::before {
	content: counter(tsec, decimal-leading-zero);
	font-family: var(--k-mono);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--k-sale);
}

/* ---------- FAQ and showroom ---------- */

body.is-kampanj .k-faq__in {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: flex-start;
}

body.is-kampanj .k-faq__list {
	flex: 3 1 520px;
	min-width: 0;
}

body.is-kampanj .k-faq__list .k-h2 {
	margin-bottom: 32px;
}

body.is-kampanj .k-faq__items {
	border-top: 1px solid var(--k-sand);
}

body.is-kampanj .k-faq__q {
	padding: 24px 0;
	border-bottom: 1px solid var(--k-sand);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.is-kampanj .k-faq__q h3 {
	margin: 0;
	font-family: var(--k-sans);
	font-size: 17px;
	font-weight: 600;
}

body.is-kampanj .k-faq__q p {
	font-size: 15px;
	color: var(--k-muted);
	max-width: 72ch;
}

body.is-kampanj .k-visit {
	flex: 2 1 340px;
	min-width: 0;
	background: var(--wp--preset--color--white);
	padding: clamp(24px, 2.5vw, 32px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

body.is-kampanj .k-visit__map {
	aspect-ratio: 4 / 3;
	background: var(--k-sand-light);
	border: 1px solid var(--k-sand);
	position: relative;
	overflow: hidden;
}

body.is-kampanj .k-visit__map .map-band-wrap,
body.is-kampanj .k-visit__map .map-band {
	height: 100%;
	margin: 0;
	padding: 0;
}

body.is-kampanj .k-visit__map .map-band-embed {
	width: 100%;
	height: 100%;
	min-height: 0;
	border: 0;
	display: block;
}

body.is-kampanj .k-visit__map .cmplz-blocked-content-container {
	height: 100%;
	max-width: none;
}

body.is-kampanj .k-visit__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.is-kampanj .k-visit__text h2 {
	margin: 0;
	font-family: var(--k-sans);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

body.is-kampanj .k-visit__text p:last-child {
	font-size: 15px;
	color: var(--k-ink);
}

body.is-kampanj .k-visit__hours {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	font-size: 14px;
	border-top: 1px solid var(--k-sand);
	padding-top: 16px;
}

body.is-kampanj .k-visit__hours dt {
	color: var(--k-muted);
}

body.is-kampanj .k-visit__hours dd {
	margin: 0;
}

body.is-kampanj .k-visit__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

body.is-kampanj .k-visit__ctas a.k-btn {
	flex: 1 1 auto;
	font-size: 14px;
}

body.is-kampanj .k-visit__ctas a.k-btn--brown { padding: 12px 24px; }
body.is-kampanj .k-visit__ctas a.k-btn--ghost-ink { padding: 11px 24px; }

/* ---------- Closing band ---------- */

body.is-kampanj .wp-block-post-content > .k-close {
	background: var(--k-brown);
	color: var(--k-linen);
}

body.is-kampanj .k-close__in {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 72px;
}

body.is-kampanj .k-close__text {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

body.is-kampanj .k-close__eyebrow {
	font-family: var(--k-mono);
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--k-wheat);
}

body.is-kampanj .k-close .k-close__title {
	margin: 0;
	font-family: var(--k-sans);
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	max-width: 15ch;
	color: var(--k-linen);
}

body.is-kampanj .k-close__lead {
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.5;
	color: var(--k-linen-85);
	max-width: 44ch;
}

body.is-kampanj .k-close__checks {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-size: 15px;
	font-weight: 600;
}

body.is-kampanj .k-close__checks li {
	display: flex;
	align-items: center;
	gap: 8px;
}

body.is-kampanj .k-close__card {
	flex: 1 1 340px;
	max-width: 440px;
	min-width: 0;
	background: var(--k-linen);
	color: var(--k-ink);
	padding: clamp(24px, 3vw, 36px);
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-sizing: border-box;
}

body.is-kampanj .k-close__card .k-close__ask {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
	text-wrap: balance;
}

body.is-kampanj .k-close__card a.k-btn {
	display: block;
	white-space: normal;
}

body.is-kampanj .k-close__card a.k-btn--brown {
	font-size: clamp(18px, 1.5vw, 20px);
	font-weight: 700;
	padding: 24px;
}

body.is-kampanj .k-close__card a.k-btn--ghost-ink {
	font-size: 16px;
	padding: 15px 24px;
}

body.is-kampanj .k-close__small {
	font-size: 13px;
	color: var(--k-muted);
	text-align: center;
}

/*
 * Anchor jumps on this page. scroll-offset.js measures the header at the top of the page (full header,
 * no strip); once the page is scrolled the header is compact and the strip sits under it, which is
 * 24px more than was measured, so the jump targets get that much extra room on desktop.
 */
@media (min-width: 1170px) {
	html:has(body.is-kampanj) {
		scroll-padding-top: calc(var(--header-height, 220px) + 24px);
	}
}

/* Below 760px: full-width stacked CTA buttons; smaller photo labels, "Fyllning" flipped to the left of its dot. */
@media (max-width: 759px) {
	body.is-kampanj .k-herocta__row {
		flex-direction: column;
	}

	body.is-kampanj a.k-btn.k-herobtn--primary,
	body.is-kampanj a.k-btn.k-herobtn--ghost {
		width: 100%;
		padding: 20px 16px;
		font-size: 18px;
		white-space: normal;
	}

	body.is-kampanj .k-herocta__note {
		text-align: center;
	}

	body.is-kampanj .k-lab__tag b {
		padding: 7px 10px;
		font-size: 13px;
	}

	body.is-kampanj .k-lab__tag em {
		padding: 0 8px;
		font-size: 11px;
	}

	body.is-kampanj .k-lab--fyllning {
		left: auto;
		right: 22%;
		flex-direction: row-reverse;
		transform: translate(7px, -50%);
	}

	body.is-kampanj .k-lab--inredning {
		left: 26%;
	}
}

/* ---------- Mobile sticky booking bar ---------- */

body.is-kampanj .k-sticky {
	display: none;
}

@media (max-width: 899px) {
	body.is-kampanj .k-o2 {
		grid-template-columns: minmax(0, 1fr);
	}

	body.is-kampanj .k-checks {
		flex-basis: 100%;
	}
}

@media (max-width: 699px) {
	body.is-kampanj .k-cats {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* One compact row (about 64px): tag and deadline, the phone button, the booking button. */
	body.is-kampanj .k-sticky {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10;
		background: var(--k-ink);
		color: var(--k-linen);
		align-items: center;
		gap: 8px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 2px solid var(--k-wheat);
	}

	body.is-kampanj .k-sticky__text {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 7px;
	}

	body.is-kampanj .k-sticky__tag {
		background: var(--k-sale);
		color: var(--k-linen);
		font-family: var(--k-mono);
		font-size: 10.5px;
		font-weight: 500;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		padding: 4px 8px;
		line-height: 1.1;
		white-space: nowrap;
	}

	body.is-kampanj .k-sticky__title {
		font-size: 13px;
		font-weight: 700;
		line-height: 1.2;
		color: var(--k-linen);
		white-space: nowrap;
	}

	body.is-kampanj .k-sticky__date {
		color: var(--k-wheat);
	}

	body.is-kampanj .k-sticky__arrow {
		margin-left: 6px;
	}

	body.is-kampanj .k-sticky a.k-sticky__call,
	body.is-kampanj .k-sticky a.k-sticky__cta {
		flex: 0 0 auto;
		box-sizing: border-box;
		height: 44px;
		border-radius: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	body.is-kampanj .k-sticky a.k-sticky__call {
		width: 44px;
		background: var(--k-sale);
		color: var(--k-linen);
		border: 0;
	}

	body.is-kampanj .k-sticky a.k-sticky__call:hover,
	body.is-kampanj .k-sticky a.k-sticky__call:focus-visible {
		background: var(--wp--preset--color--rust);
		color: var(--k-linen);
	}

	body.is-kampanj .k-sticky a.k-sticky__cta {
		padding: 0 14px;
		font-size: 15px;
		font-weight: 700;
		white-space: nowrap;
	}

	/*
	 * --k-sticky-h is the bar's real height (safe area included), measured by campaign.js; 66px
	 * until then. Room for the bar under the footer, and the cookie-settings button (left) and the
	 * scroll-to-top button (right) 8px above it. Both stay visible and keep their own sides.
	 */
	body.is-kampanj .wp-site-blocks,
	body.is-kampanj .is-refresh {
		padding-bottom: var(--k-sticky-h, 66px);
	}

	body.is-kampanj .scroll-to-top {
		bottom: calc(var(--k-sticky-h, 66px) + 8px);
	}

	body.is-kampanj #cmplz-manage-consent .cmplz-manage-consent {
		bottom: calc(var(--k-sticky-h, 66px) + 8px) !important;
	}
}

/* Under 375px everything still fits beside the stack: no arrow, a smaller button and tag. */
@media (max-width: 374px) {
	body.is-kampanj .k-sticky__arrow {
		display: none;
	}

	body.is-kampanj .k-sticky a.k-sticky__cta {
		padding: 0 12px;
		font-size: 14px;
	}

	body.is-kampanj .k-sticky__tag {
		letter-spacing: 0.08em;
		padding: 4px 6px;
	}
}

@media (max-width: 599px) {
	body.is-kampanj .k-form .frm_fields_container > .frm_form_field:nth-of-type(-n+4) {
		grid-column: 1 / -1 !important;
	}

	body.is-kampanj .k-o2 {
		gap: 8px;
	}

	body.is-kampanj .wp-block-post-content > .k-hero {
		padding-top: 20px;
		padding-bottom: 28px;
	}

	body.is-kampanj .k-hero__in {
		gap: 14px;
	}

	body.is-kampanj .k-hero .k-h1 {
		font-size: 30px;
		line-height: 1.05;
	}

	body.is-kampanj .k-hero .k-sub {
		font-size: 16px;
		margin-top: -4px;
	}

	body.is-kampanj .k-offer__num { font-size: 80px; }
	body.is-kampanj .k-offer__pct { font-size: 28px; }
	body.is-kampanj .k-offer__label { font-size: 30px; }
	body.is-kampanj .k-offer__what { font-size: 17px; }
	body.is-kampanj .k-checks__desc { display: none; }
	body.is-kampanj .k-checks li { padding: 8px 0; }

	body.is-kampanj .k-offer__chip {
		font-size: 10px;
		letter-spacing: 0.04em;
		padding: 4px 7px;
	}

	body.is-kampanj .k-form {
		padding: 20px;
	}
}
