/*
 * Rummet Intill – butiksfront. Layer on top of Blocksy (free); loaded after Blocksy's styles.
 * Colours come from the Blocksy palette (--theme-palette-color-1..8), so the brand stays
 * editable in the Customizer. Mobile first: base rules are for phones, wider screens below.
 */

:root {
	--ri-bg: var(--theme-palette-color-7);    /* page background (light beige): panels */
	--ri-tile: var(--theme-palette-color-6);  /* product image tile (beige, like absmaland.com) */
	--ri-card-radius: 8px;                    /* product image tiles; buttons stay square */
	--ri-line: color-mix(in srgb, var(--theme-palette-color-4) 12%, transparent);
	--ri-shade: var(--theme-palette-color-4); /* shadows, backdrops, photo gradients */
	--ri-muted: var(--theme-palette-color-3);
	--ri-radius: 0; /* square corners (2026-10-22) */
	/* The body font (Customizer → Typography → Base Font), resolved here so headings can borrow it:
	   inside h1–h6 Blocksy redefines --theme-font-family as the heading font. */
	--ri-body-font: var(--theme-font-family);
}

/* ---------- Announcement bar ---------- */
.ct-header-text p { margin: 0; }
.ri-show-sm { display: none; }
@media (max-width: 689.98px) {
	.ri-hide-sm { display: none; }
	.ri-show-sm { display: inline; }
	[data-row="top"] .ct-header-text { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Header icons: 44px touch targets (WCAG 2.2), icons keep their size ---------- */
#header .ct-header-trigger,
#header .ct-header-search,
#header .ct-cart-item,
#header .ct-account-item {
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
}
#header [data-items] > .ct-header-cart,
#header [data-items] > .ct-header-account { margin-inline: 0; }
/* Thin line icons (includes/header-icons.php): outline only, in Blocksy's icon colour (incl. hover). */
svg.ri-line-icon { fill: none !important; stroke: var(--theme-icon-color, currentColor); }
/* Desktop labels like absmaland.com (config/apply-abs-header.php): "Sök" and "Varukorg" next to the
   icons. Blocksy's cart label always includes the subtotal; only the word is shown, the count stays
   on the icon. */
#header .ct-cart-item .ct-label .ct-amount { display: none; }
#header :is(.ct-header-search, .ct-cart-item) .ct-label { font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; }
/* Phone menu, first level (heading font, see apply-abs-header.php): roomier rows. */
#offcanvas .mobile-menu > ul > li > a,
#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent > a { min-height: 56px; }

/* Phone logo, centred between the menu button (left) and search + cart (right): the wordmark is
   ~14.5:1 and Blocksy gives both side columns the width of the wider one (2 × 40px icons + 4px gap),
   so its height follows 100vw − 2 × 16px gutters − 2 × 84px − 16px air (~12px at 390px, 16px from
   ~450px, 7.5px at 320px). The search icon's own 10px side margins are dropped to make room. */
@media (max-width: 999.98px) {
	#header [data-device="mobile"] .ct-header-search { margin-inline: 0; }
	#header [data-device="mobile"] .site-logo-container { --logo-max-height: clamp(7.5px, calc((100vw - 216px) / 14.6), 16px); }
	#header [data-device="mobile"] .site-branding { margin: 0; }
	#header [data-device="mobile"] [data-column="start"] [data-items] { gap: 8px; }
	#header [data-device="mobile"] [data-column="end"] [data-items] { gap: 4px; }
	#header [data-device="mobile"] :is(.ct-header-trigger, .ct-header-search, .ct-cart-item) { min-width: 40px; }
}

/* ---------- Focus visibility (keyboard users) ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--theme-palette-color-2);
	outline-offset: 2px;
}

/* ---------- Product cards ---------- */
[data-products] .product {
	display: flex;
	flex-direction: column;
}
/* Product image tiles like absmaland.com (2026-10-22): one beige 3.3:4 tile with rounded corners.
   In-use photos fill it (cropped from the centre); packshots on white (img.ri-white-bg, see
   includes/cards.php) are shown whole and their white is multiplied into the beige, so every
   product sits on the same background. */
[data-products] .product figure { margin-bottom: 12px; }
[data-products] .product .ct-media-container {
	display: block;
	aspect-ratio: 3.3 / 4;
	background: var(--ri-tile);
	border-radius: var(--ri-card-radius);
	overflow: hidden;
	isolation: isolate; /* the blend only mixes with the tile */
}
[data-products] .product .ct-media-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
[data-products] .product .ct-media-container img.ri-white-bg,
.ri-carousel .wc-block-components-product-image > a:not(.ri-quick-add) img.ri-white-bg,
.woocommerce-product-gallery img.ri-white-bg {
	object-fit: contain;
	mix-blend-mode: multiply;
}
[data-products] .product .woocommerce-loop-product__title { margin-bottom: 4px; }
[data-products] .product .entry-meta {
	order: 0;
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
[data-products] .product .entry-meta a { color: var(--ri-muted); font-weight: 400; }
[data-products] .product .price { margin-top: auto; }
[data-products] .product .onsale {
	top: 8px;
	left: 8px;
	right: auto;
	font-size: 12px;
	letter-spacing: 0.04em;
	padding: 4px 8px;
	border-radius: var(--ri-radius);
}

/* ---------- Listing toolbar (filters left, sorting right) ---------- */
.woo-listing-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.woo-listing-top .woocommerce-ordering { margin-left: auto; }
.woocommerce-result-count { color: var(--ri-muted); }

/* ---------- Intro text + category tiles like absmaland.com (includes/category-tiles.php) ---------- */
.woocommerce .hero-section .page-description { max-width: 560px; color: var(--ri-muted); font-size: 16px; line-height: 1.6; }
.woocommerce .hero-section .page-description p { margin: 0; }
.ri-cat-tiles { margin: 8px 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--ri-line); }
.ri-cat-tiles__label { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
/* Phone: one swipeable row with a peek of the next tile. Desktop: as many as fit, wrapping. */
.ri-cat-tiles__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 104px;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.ri-cat-tiles__list::-webkit-scrollbar { display: none; }
@media (max-width: 689.98px) {
	/* Edge to edge, first tile on the page gutter. scroll-padding takes % of the row itself, so the
	   gutter comes from Blocksy's container width (92vw on phones) instead. */
	.ri-cat-tiles__list { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); scroll-padding-inline: calc((100vw - var(--theme-container-edge-spacing, 92vw)) / 2); }
}
.ri-cat-tiles__list li { scroll-snap-align: start; }
.ri-cat-tiles__list a { display: block; color: var(--theme-palette-color-4); text-decoration: none; }
.ri-cat-tiles__img {
	display: block;
	aspect-ratio: 3.3 / 4;
	margin-bottom: 8px;
	background: var(--ri-tile);
	border-radius: calc(var(--ri-card-radius) / 2);
	overflow: hidden;
	isolation: isolate;
}
.ri-cat-tiles__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ri-cat-tiles__img img.ri-white-bg { object-fit: contain; mix-blend-mode: multiply; }
.ri-cat-tiles__name { display: block; font-size: 12px; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; }
@media (hover: hover) {
	.ri-cat-tiles__list a:hover img { transform: scale(1.04); }
	.ri-cat-tiles__list a:hover .ri-cat-tiles__name { text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 1000px) {
	.ri-cat-tiles { margin-bottom: 32px; padding-bottom: 32px; }
	.ri-cat-tiles__list { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, 112px); gap: 20px 16px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
	.ri-cat-tiles__img img { transition: none; }
}

/* ---------- Product filters (includes/filters.php, assets/filters.js) ---------- */
.ri-filters { position: relative; }
.ri-filters.is-loading { opacity: .6; pointer-events: none; }
.ri-filters__open,
.ri-filters__group > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	background: var(--theme-palette-color-8);
	color: var(--theme-palette-color-4);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}
.ri-filters__open { display: none; }
.ri-filters__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8);
	font-size: 12px;
	line-height: 1;
}
.ri-filters__group > summary { list-style: none; }
.ri-filters__group > summary::-webkit-details-marker { display: none; }
.ri-filters__group > summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .15s ease;
}
.ri-filters__group[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.ri-filters__head, .ri-filters__foot { display: none; }
.ri-filters__list { margin: 0; padding: 0; list-style: none; }
.ri-filters__check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	font-size: 16px;
	cursor: pointer;
}
.ri-filters__check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--theme-palette-color-1); }
.ri-filters__check.is-empty { opacity: .45; cursor: default; }
.ri-filters__count { margin-left: auto; padding-left: 12px; color: var(--ri-muted); font-size: 14px; }
.ri-filters__hint { margin: 0 0 10px; color: var(--ri-muted); font-size: 14px; }
.ri-filters__price { display: flex; gap: 10px; }
.ri-filters__price label { display: flex; flex: 1; flex-direction: column; gap: 4px; position: relative; font-size: 14px; color: var(--ri-muted); }
.ri-filters__price input { width: 100%; height: 44px; padding: 0 34px 0 12px; font-size: 17px; }
.ri-filters__price label > span[aria-hidden] { position: absolute; right: 12px; bottom: 14px; }
.ri-filters__apply { margin-top: 12px; }
.ri-filters__submit { width: 100%; min-height: 44px; }
.ri-filters__clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--theme-palette-color-4); text-decoration: underline; }

/* Active filters */
.ri-filters__active { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 8px; order: 5; margin: 0; padding: 0; list-style: none; }
.ri-filters__active a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 10px 0 12px;
	border: 1px solid var(--ri-line);
	border-radius: 16px;
	background: var(--theme-palette-color-8);
	color: var(--theme-palette-color-4);
	font-size: 14px;
	text-decoration: none;
}
.ri-filters__active a:hover { border-color: var(--theme-palette-color-4); }
.ri-filters__active .ri-filters__clear-all { border: 0; background: none; text-decoration: underline; }

/* Phone and tablet: one "Filtrera" button, the form slides in from the left. */
@media (max-width: 999.98px) {
	.ri-filters-js .ri-filters__open { display: inline-flex; }
	.ri-filters__group > summary { display: flex; width: 100%; justify-content: space-between; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--ri-line); background: none; font-size: 17px; }
	.ri-filters__group > summary::after { margin-left: auto; }
	.ri-filters__group > summary .ri-filters__badge { margin-right: auto; }
	.ri-filters__body { padding: 8px 0 16px; }
	.ri-filters__foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 12px; }
	.ri-filters__foot .ri-filters__submit { flex: 1; width: auto; }
	.ri-filters__apply { display: none; }
	.ri-filters-js .ri-filters__form {
		position: fixed;
		z-index: 2147483001; /* above the cookie notice while open */
		top: 0;
		bottom: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		width: min(88vw, 420px);
		background: var(--ri-bg);
		box-shadow: 0 0 30px color-mix(in srgb, var(--ri-shade) 15%, transparent);
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.ri-filters-js .ri-filters.is-open .ri-filters__form { transform: none; visibility: visible; transition: transform .25s ease; }
	.ri-filters-js .ri-filters__head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--ri-line); }
	.ri-filters__title { font-family: var(--theme-headings-font-family, inherit); font-size: 21px; }
	.ri-filters__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--theme-palette-color-4); }
	.ri-filters-js .ri-filters__groups { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
	.ri-filters-js .ri-filters__foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ri-line); background: var(--ri-bg); }
	.ri-filters__backdrop { display: none; position: fixed; z-index: 2147483000; inset: 0; background: color-mix(in srgb, var(--ri-shade) 45%, transparent); }
	.ri-filters-locked, .ri-filters-locked body { overflow: hidden; }
	.ri-filters-locked .ri-filters__backdrop { display: block; }
}
/* Without the script the form sits in the page: full width, groups as accordions. */
@media (max-width: 999.98px) {
	html:not(.ri-filters-js) .ri-filters { flex-basis: 100%; }
}

/* Desktop: the groups are dropdown buttons in a row. */
@media (min-width: 1000px) {
	.ri-filters__groups { display: flex; gap: 8px; }
	.ri-filters__group { position: relative; }
	.ri-filters__group[open] > summary { border-color: var(--theme-palette-color-4); }
	.ri-filters__body {
		position: absolute;
		z-index: 30;
		top: calc(100% + 6px);
		left: 0;
		width: 300px;
		max-height: min(440px, 60vh);
		overflow-y: auto;
		padding: 12px 16px 16px;
		border: 1px solid var(--ri-line);
		border-radius: var(--ri-radius);
		background: var(--theme-palette-color-8);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--ri-shade) 8%, transparent);
	}
	.ri-filters__check { min-height: 36px; }
	/* Ticking a box applies at once with the script; the button is only needed for the price. */
	.ri-filters-js [data-group="stock"] .ri-filters__apply { display: none; }
	html:not(.ri-filters-js) .ri-filters__foot { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.ri-filters-js .ri-filters__form, .ri-filters__group > summary::after { transition: none !important; }
}

/* ---------- Single product ---------- */
.woocommerce-product-gallery .ct-media-container,
.woocommerce-product-gallery .flexy-items > * { background: var(--ri-tile); border-radius: var(--ri-card-radius); overflow: hidden; isolation: isolate; }
.woocommerce-product-gallery .ct-media-container img { object-fit: contain; }
.single-product .product_title { margin-bottom: 8px; }
.single-product .entry-summary .price { font-size: 21px; margin-bottom: 16px; }
.single-product .ct-product-additional-info { margin-top: 4px; }
.single-product .ct-product-additional-info ul { display: grid; gap: 8px; }
@media (max-width: 689.98px) {
	/* Buy button fills the row beside the quantity, easy to reach with a thumb. */
	.single-product .ct-cart-actions { display: flex; gap: 10px; }
	.single-product .ct-cart-actions .single_add_to_cart_button { flex: 1; }
}

/* ---------- Cart & checkout: comfortable fields, no iOS zoom ---------- */
.woocommerce-cart-form input,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	font-size: 17px;
	min-height: 48px;
}

/* =====================================================================
 * Homepage (page "Startsida", built from core + WooCommerce blocks).
 * Rhythm after aliceinscandiland.com (owner request 2026-10-22): full-bleed photos with text,
 * product rows with a centred heading and a button below, square corners.
 * ===================================================================== */
.home .entry-content > * + * { margin-top: 48px; }
.home .entry-content > :first-child { margin-top: 0; }
.home .entry-content > .ri-visit:last-child { margin-bottom: calc(-1 * var(--theme-content-vertical-spacing, 0px)); }
@media (min-width: 1000px) {
	.home .entry-content > * + * { margin-top: 80px; }
}

/* Small uppercase line above a heading, and the sentence under it. */
.ri-eyebrow { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.ri-lead { margin: 0 0 24px; font-size: 17px; line-height: 1.6; }
@media (min-width: 1000px) {
	.ri-eyebrow { font-size: 14px; }
	.ri-lead { font-size: 19px; }
}

/* Outline button (the solid one is Blocksy's button). White when it sits on a photo. */
.wp-block-button.ri-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--theme-palette-color-4);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-palette-color-4) 50%, transparent);
	transition: background-color .2s ease, color .2s ease;
}
.wp-block-button.ri-btn-outline .wp-block-button__link:hover {
	background: var(--theme-palette-color-4);
	color: var(--theme-palette-color-8);
}
:is(.ri-hero-full, .ri-banner, .ri-feature) .ri-btn-outline .wp-block-button__link {
	color: var(--theme-palette-color-8);
	box-shadow: inset 0 0 0 1px var(--theme-palette-color-8);
}
:is(.ri-hero-full, .ri-banner, .ri-feature) .ri-btn-outline .wp-block-button__link:hover {
	background: var(--theme-palette-color-8);
	color: var(--theme-palette-color-4);
}

/* Full-bleed photos (Cover, align full). Text starts at the content edge, like the header. */
.wp-block-cover:is(.ri-hero-full, .ri-banner, .ri-feature) {
	--ri-edge: max(20px, calc((100vw - var(--theme-normal-container-max-width, 1290px)) / 2));
	min-height: 480px;
	padding: 56px var(--ri-edge);
	color: var(--theme-palette-color-8);
}
.wp-block-cover:is(.ri-hero-full, .ri-banner, .ri-feature)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--ri-shade) 40%, transparent);
	pointer-events: none;
}
.wp-block-cover:is(.ri-hero-full, .ri-banner, .ri-feature) .wp-block-cover__inner-container { position: relative; z-index: 2; }
:is(.ri-hero-full, .ri-banner, .ri-feature) .wp-block-cover__inner-container > * { max-width: 560px; color: inherit; }
:is(.ri-hero-full, .ri-banner, .ri-feature) :is(h1, h2).wp-block-heading {
	margin: 0 0 16px;
	color: var(--theme-palette-color-8);
	font-size: 43px;
	line-height: 1.1;
}
:is(.ri-hero-full, .ri-banner, .ri-feature) .wp-block-buttons { margin: 0; }
.ri-banner .wp-block-cover__inner-container { text-align: center; }
.ri-banner .wp-block-cover__inner-container > * { margin-inline: auto; }
.ri-banner .wp-block-buttons { justify-content: center; }
@media (max-width: 689.98px) {
	.home .ri-hero-full { min-height: 560px; }
}
@media (min-width: 1000px) {
	.wp-block-cover:is(.ri-hero-full, .ri-banner, .ri-feature) { min-height: min(78svh, 620px); }
	/* Photo stays light on the right; the text side is darkened for contrast. */
	.wp-block-cover:is(.ri-hero-full, .ri-feature)::after {
		background: linear-gradient(to right, color-mix(in srgb, var(--ri-shade) 60%, transparent), color-mix(in srgb, var(--ri-shade) 10%, transparent) 65%);
	}
	.ri-hero-full h1.wp-block-heading { font-size: 77px; }
	:is(.ri-banner, .ri-feature) h2.wp-block-heading { font-size: 60px; }
	.ri-banner .wp-block-cover__inner-container > * { max-width: 720px; }
}

/* Product rows (Product Collection, carousel layout): centred heading, button below, native
   horizontal scroll with snap. Phone: 2 cards and a peek of the next. Tablet 3, desktop 5. */
.ri-carousel { position: relative; }
.ri-carousel .ri-row-title { margin: 0 0 20px !important; font-size: 26px; text-align: center; }
.ri-carousel > .wp-block-buttons { justify-content: center; margin-top: 24px; }
.ri-carousel .wc-block-product-template.is-product-collection-layout-carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 12px) / 2.3);
	gap: 12px;
	margin: 0;
	padding: 0 0 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ri-carousel .wc-block-product-template::-webkit-scrollbar { display: none; }
.ri-carousel .wc-block-product { scroll-snap-align: start; margin: 0; }
@media (min-width: 690px) {
	.ri-carousel .wc-block-product-template.is-product-collection-layout-carousel { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
}
@media (min-width: 1000px) {
	.ri-carousel .ri-row-title { margin-bottom: 32px !important; font-size: 32px; }
	.ri-carousel .wc-block-product-template.is-product-collection-layout-carousel { grid-auto-columns: calc((100% - 4 * 24px) / 5); gap: 24px; }
}
.ri-carousel .wc-block-components-product-image {
	aspect-ratio: 3.3 / 4;
	margin: 0 0 12px;
	background: var(--ri-tile);
	border-radius: var(--ri-card-radius);
	isolation: isolate;
	overflow: hidden;
}
.ri-carousel .wc-block-components-product-image > a:not(.ri-quick-add),
.ri-carousel .wc-block-components-product-image > a:not(.ri-quick-add) img {
	display: block;
	width: 100%;
	height: 100%;
}
.ri-carousel .wc-block-components-product-image > a:not(.ri-quick-add) img { object-fit: cover; }
/* Same as the listing cards (Customizer card fonts): name in the heading font, price small uppercase. */
.ri-carousel .wp-block-post-title { margin: 0 0 6px; font-size: 15px; font-weight: 400; line-height: 1.35; }
.ri-carousel .wp-block-post-title a { color: var(--theme-palette-color-4); text-decoration: none; }
.ri-carousel .wc-block-components-product-price { font-family: var(--ri-body-font); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 1000px) {
	.ri-carousel .wp-block-post-title { font-size: 16px; }
}
/* Arrows only where there is a pointer; touch users swipe. */
.ri-carousel .wc-block-next-previous-buttons { display: none; }
@media (hover: hover) and (min-width: 1000px) {
	.ri-carousel .wc-block-next-previous-buttons {
		display: flex;
		position: absolute;
		top: 0;
		right: 0;
		gap: 8px;
	}
	.ri-carousel .wc-block-next-previous-buttons__button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 1px solid var(--ri-line);
		border-radius: 50%;
		background: var(--theme-palette-color-8);
		color: var(--theme-palette-color-4);
		cursor: pointer;
	}
	.ri-carousel .wc-block-next-previous-buttons__button[aria-disabled="true"] { opacity: .35; cursor: default; }
	.ri-carousel .wc-block-next-previous-buttons__icon { width: 16px; height: 16px; fill: currentColor; }
}

/* About the shop: short centred text. */
.ri-story { max-width: 760px; margin-inline: auto; text-align: center; }
.ri-story h2.wp-block-heading { margin: 0 0 16px; font-size: 23px; line-height: 1.35; }
.ri-story p { margin: 0 0 24px; color: var(--ri-muted); }
.ri-story .wp-block-buttons { justify-content: center; }
@media (min-width: 1000px) { .ri-story h2.wp-block-heading { font-size: 30px; } }

/* Category tiles: portrait photo, name with an arrow under it, the whole tile is the link. */
.ri-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; }
.ri-cats > * { margin: 0 !important; } /* grid gap does the spacing (Blocksy adds flow margins) */
.ri-cat { position: relative; }
.ri-cat figure { margin: 0 0 12px; aspect-ratio: 3.3 / 4; border-radius: var(--ri-card-radius); overflow: hidden; }
.ri-cat figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ri-cat__name { margin: 0; font-family: var(--theme-headings-font-family, inherit); font-size: 18px; }
.ri-cat__name a { color: var(--theme-palette-color-4); text-decoration: none; }
/* No arrow after the category names (owner 2026-11-19; was content: " →"). */
.ri-cat__name a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (hover: hover) {
	.ri-cat:hover figure img { transform: scale(1.03); }
	.ri-cat:hover .ri-cat__name a { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 690px) { .ri-cats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
@media (min-width: 1000px) { .ri-cat__name { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) {
	.ri-cat figure img { transition: none; }
}

/* Visit the shop: full-bleed light band (the footer below is the dark one). */
.ri-visit {
	padding: 48px 20px;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-4);
	text-align: center;
}
.ri-visit h2.wp-block-heading { margin-bottom: 12px !important; }
.ri-visit p { margin: 0 0 8px; }
.ri-visit .ri-note { font-size: 14px; color: var(--ri-muted); }
.ri-visit .wp-block-buttons { justify-content: center; margin-top: 20px; }
@media (min-width: 1000px) { .ri-visit { padding: 72px 32px; } }

/* ---------- Footer ---------- */
.ct-footer .ri-footer-title.wp-block-heading { --theme-font-size: 18px; margin: 0 0 12px; color: var(--theme-palette-color-8); }
.ct-footer .ri-footer-title.ri-footer-title-sub.wp-block-heading { margin-top: 28px; } /* 2026-11-15: second heading in a footer column (Öppettider under Besök oss) */
footer.ct-footer p { margin: 0 0 8px; }
footer.ct-footer .ri-note { font-size: 14px; opacity: .75; }
footer.ct-footer .widget_nav_menu .menu li { margin: 0 0 6px; }
/* Footer link hover: colour comes from the Customizer (palette 6); underline so the change shows on the moss background. */
footer.ct-footer a:not(.ct-social-box a):hover { text-decoration: underline; text-underline-offset: 3px; }
.ct-footer .widget-title { --theme-font-size: 18px; margin-bottom: 12px; }
@media (max-width: 689.98px) {
	footer.ct-footer [data-row="top"] .ct-container { row-gap: 28px; }
}

/* =====================================================================
 * Product cards: quick add (image corner) and in-use photo on hover
 * ===================================================================== */
[data-products] .product figure,
.ri-card-media { position: relative; }

.ri-quick-add {
	position: absolute;
	/* Same gap from the tile corner on every card (tiles share one background, so packshots drawn
	   with contain need no special offset). */
	--ri-qa-gap: 8px;
	right: var(--ri-qa-gap);
	bottom: var(--ri-qa-gap);
	z-index: 3;
	display: inline-flex !important; /* Woo's .button styles would make it a full button */
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	border-radius: 5px !important; /* soft corner, a little less than the tiles' 8px (owner 2026-11-02; was a circle). !important: the carousel tile radius rule would override it */
	background: var(--theme-palette-color-8) !important; /* white, stands out on the beige tile */
	color: var(--theme-palette-color-4) !important;
	box-shadow: 0 1px 3px color-mix(in srgb, var(--ri-shade) 12%, transparent) !important; /* no border ring (owner 2026-11-02); soft shadow keeps it visible on white photos. Woo block buttons reset it */
	transition: transform .15s ease, background-color .15s ease;
}
.ri-quick-add:hover { transform: scale(1.06); background: var(--theme-palette-color-8) !important; }
.ri-quick-add svg { display: block; width: 20px; height: 20px; }
.ri-quick-add .ri-quick-add__done { display: none; }
.ri-quick-add.added .ri-quick-add__done { display: block; }
.ri-quick-add.added svg:first-child { display: none; }
.ri-quick-add.added { background: var(--theme-palette-color-1) !important; color: var(--theme-palette-color-8) !important; }
.ri-quick-add.loading { opacity: .6; pointer-events: none; }
.ri-quick-add.loading::after { display: none !important; } /* Woo's spinner glyph */
/* Message when a quick add fails (e.g. no more in stock), shown on the card for a few seconds. */
.ri-quick-add__msg {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 4;
	padding: 8px 10px;
	border-radius: var(--ri-radius);
	background: var(--theme-palette-color-4);
	color: var(--theme-palette-color-8);
	font-size: 14px;
	line-height: 1.35;
	pointer-events: none;
}
.ri-quick-add__msg[hidden] { display: none; }
/* WooCommerce adds a "Visa varukorg" link after a successful add; the header cart count shows it. */
[data-products] .product .added_to_cart,
.ri-card-media .added_to_cart { display: none !important; }
@media (min-width: 1000px) {
	.ri-quick-add { --ri-qa-gap: 10px; width: 46px; height: 46px; }
}

/* In-use photo on hover (desktop/mouse only; never loaded on touch screens).
   .ri-card-media img.ri-hover-img: must beat Woo's ".wc-block-components-product-image img
   { height: auto }", or the photo kept its own height and hung out under the carousel tile. */
.ri-hover-img,
.ri-card-media img.ri-hover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}
/* The main photo fades out as the hover photo fades in (like Blocksy's swap on the shop pages),
   so a cut-out PNG with a transparent background (e.g. Kling väggvas) shows the tile, not the
   main photo underneath. */
.ri-has-hover > a:not(.ri-quick-add) img { transition: opacity .4s ease; }
@media (hover: hover) {
	.ri-has-hover:hover .ri-hover-img { opacity: 1; }
	.ri-has-hover:hover > a:not(.ri-quick-add) img { opacity: 0; }
}
@media (hover: none) {
	[data-products] .product .ct-media-container img.ct-swap,
	.ri-hover-img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ri-hover-img, .ri-has-hover > a:not(.ri-quick-add) img, [data-products] .has-hover-effect img { transition: none; }
}

/* Wide screens (owner 2026-11-02, content up to 1760px): 5 product columns instead of 4 so cards
   don't grow huge; owner wants 4 still at 1600px, so 5 only from 1800px. */
@media (min-width: 1800px) {
	[data-products].columns-4 { --shop-columns: repeat(5, minmax(0, 1fr)); }
}

/* Product that can only be picked up in the shop (includes/pickup-only.php). */
.ri-pickup-only {
	margin: 0 0 1em;
	padding: .6em .9em;
	border: 1px solid var(--theme-palette-color-1);
	color: var(--theme-palette-color-1);
	font-weight: 500;
}

/* Cart and checkout: the whole order must be picked up. Sand stands out from the green buttons
   and grey notices without reading as an error. Palette only. */
.woocommerce-info.ri-pickup-notice {
	background: var(--theme-palette-color-5);
	border-color: var(--theme-palette-color-5);
	color: var(--theme-palette-color-4);
}
.woocommerce-info.ri-pickup-notice strong { color: inherit; }
.woocommerce-info.ri-pickup-notice::before { color: inherit; }

/* Product page: no "Kategorier" and "Varumärke" rows, the article number stays (owner 2026-11-06). */
:is(.product .entry-summary-items, .ct-quick-view-card) .product_meta > .posted_in { display: none; }

/* Product page: description and additional information beside the photos (includes/product-info.php). */
.ri-product-description { margin-bottom: 1.25em; }
.ri-product-description > :last-child { margin-bottom: 0; }
.ri-product-more {
	margin-bottom: 1.5em;
	border-top: 1px solid var(--ri-line);
	border-bottom: 1px solid var(--ri-line);
}
.ri-product-more > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	list-style: none;
	color: var(--theme-palette-color-4);
	font-weight: 500;
	cursor: pointer;
}
.ri-product-more > summary::-webkit-details-marker { display: none; }
.ri-product-more > summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-inline: 12px 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .15s ease;
}
.ri-product-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.ri-product-more__body { padding-bottom: 1em; }
.ri-product-more__body table { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
	.ri-product-more > summary::after { transition: none; }
}

/* Homepage: the person behind the shop, stories, customers (config/build-homepage.php). */
.ri-cat__text { margin: 6px 0 0; color: var(--ri-muted); font-size: 15px; line-height: 1.5; }
.ri-personal.wp-block-columns { gap: 32px; margin-block: 56px; }
.ri-personal > .wp-block-column { align-self: center; }
.ri-personal .wp-block-image { margin: 0; }
.ri-personal .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ri-personal h2.wp-block-heading { margin: 0 0 16px; font-size: 30px; line-height: 1.25; }
.ri-personal p:not(.ri-eyebrow) { margin: 0 0 16px; }
.ri-signature { font-style: italic; font-size: 20px; }
.ri-personal .wp-block-buttons { margin-top: 24px; }
.ri-stories, .ri-reviews { margin-block: 56px; }
:is(.ri-stories, .ri-reviews) > .ri-row-title { text-align: center; }
.ri-stories__list.wp-block-columns, .ri-reviews__list.wp-block-columns { gap: 32px; }
.ri-stories .wp-block-image { margin: 0 0 16px; }
.ri-stories .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ri-stories h3.wp-block-heading { margin: 0 0 8px; font-size: 22px; }
.ri-stories p { margin: 0; color: var(--ri-muted); }
.ri-reviews__list .wp-block-column { padding: 24px; background: var(--theme-palette-color-6); }
.ri-reviews__list p { margin: 0 0 12px; }
.ri-reviews__list p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) {
	.ri-personal.wp-block-columns { gap: 72px; margin-block: 88px; }
	.ri-personal h2.wp-block-heading { font-size: 40px; }
	.ri-stories, .ri-reviews { margin-block: 88px; }
}

/* ---------- Gift packages in the cart (includes/gift-packages.php) ---------- */
.ri-gift-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 15px; }
.ri-gift-pick label { margin: 0; color: var(--theme-palette-color-3); }
.ri-gift-pick select { width: auto; min-width: 9em; height: 40px; padding: 0 30px 0 10px; font-size: 15px; border-radius: 0; }
.ri-gift-split { font-size: inherit; color: var(--theme-palette-color-3); text-decoration: underline; text-underline-offset: 3px; }
.ri-gift-hint { margin: 16px 0 0; font-size: 0.875em; color: var(--theme-palette-color-3); }
.ri-gift-packages { margin: 24px 0 8px; padding: 20px; background: var(--theme-palette-color-6); }
.ri-gift-packages h2 { margin: 0 0 12px; font-size: 1.25em; }
.ri-gift-packages h2 span { margin-left: 8px; font-family: var(--theme-font-family, inherit); font-size: 0.6em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--theme-palette-color-3); vertical-align: middle; }
.ri-gift-package + .ri-gift-package { margin-top: 18px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--theme-palette-color-4) 15%, transparent); }
.ri-gift-package__title { margin: 0 0 8px; }
.ri-gift-package__title span { color: var(--theme-palette-color-3); }
.ri-gift-package__help { margin: 0 0 6px; font-size: 0.875em; color: var(--theme-palette-color-3); }
.ri-gift-tag { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ri-gift-tag p { margin: 0; }
.ri-gift-package label { display: block; margin-bottom: 4px; font-size: 0.875em; }
.ri-gift-package input[type="text"] { width: 100%; height: 40px; border-radius: 0; background: var(--theme-palette-color-8); }
@media (max-width: 380px) { .ri-gift-tag { grid-template-columns: 1fr; } }
.ri-gift-summary { margin: 0 0 20px; padding: 16px; background: var(--theme-palette-color-6); font-size: 0.9375em; }
.ri-gift-summary p { margin: 0 0 6px; }
.ri-gift-summary ul { margin: 0 0 8px; padding-left: 18px; }
.ri-gift-summary__msg { color: var(--theme-palette-color-3); }

/* ---------- Homepage, Christmas layout (2026-11-13, test + prod) ----------
 * Price/category tile sections with a centred title, and a light band with shop perks. Palette only. */
.ri-gifts > .ri-row-title { margin: 0 0 20px !important; font-size: 26px; text-align: center; }
.ri-gifts > .ri-lead { margin: -8px auto 24px; max-width: 560px; text-align: center; color: var(--ri-muted); }
.ri-perks {
	display: grid; grid-template-columns: 1fr; gap: 20px;
	padding: 32px 20px; background: var(--theme-palette-color-6); color: var(--theme-palette-color-4); text-align: center;
}
.ri-perks > * { margin: 0 !important; }
.ri-perks p { font-size: 15px; line-height: 1.5; color: var(--ri-muted); }
.ri-perks strong { display: block; margin-bottom: 4px; font-family: var(--theme-headings-font-family, inherit); font-size: 18px; font-weight: 400; color: var(--theme-palette-color-4); }
@media (min-width: 690px) { .ri-perks { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; column-gap: 64px; padding: 40px 32px; } }
@media (min-width: 1000px) { .ri-gifts > .ri-row-title { margin-bottom: 32px !important; font-size: 32px; } }
.ri-cats--3 { grid-template-columns: repeat(3, 1fr); gap: 24px 8px; }
@media (max-width: 689px) { .ri-cats--3 .ri-cat__name { font-size: 15px; } .ri-cats--3 .ri-cat__text { font-size: 13px; } }
@media (min-width: 690px) { .ri-cats.ri-cats--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Two-image hero like munkvalvet.se (2026-11-13) ----------
 * Two portrait photos side by side (stacked on phones), heading + button at the bottom left of each. Palette only. */
.ri-hero-duo { display: grid; grid-template-columns: 1fr; gap: 6px; }
.ri-hero-duo > * { margin: 0 !important; }
.wp-block-cover.ri-duo { min-height: min(72svh, 620px); padding: 28px 20px; color: var(--theme-palette-color-8); }
.wp-block-cover.ri-duo::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, color-mix(in srgb, var(--ri-shade) 62%, transparent), transparent 60%);
}
.ri-duo .wp-block-cover__inner-container { position: relative; z-index: 2; }
.ri-duo .wp-block-cover__inner-container > * { max-width: 520px; color: inherit; }
.ri-duo .ri-eyebrow { margin-bottom: 8px; }
.ri-duo :is(h1, h2).wp-block-heading { margin: 0 0 18px; color: var(--theme-palette-color-8); font-size: 34px; line-height: 1.1; }
.ri-duo .wp-block-buttons { margin: 0; }
.ri-duo .ri-btn-outline .wp-block-button__link { color: var(--theme-palette-color-8); box-shadow: inset 0 0 0 1px var(--theme-palette-color-8); }
.ri-duo .ri-btn-outline .wp-block-button__link:hover { background: var(--theme-palette-color-8); color: var(--theme-palette-color-4); }
@media (min-width: 690px) {
	.ri-hero-duo { grid-template-columns: 1fr 1fr; }
	.wp-block-cover.ri-duo { min-height: min(84svh, 860px); padding: 40px; }
}
@media (min-width: 1000px) { .ri-duo :is(h1, h2).wp-block-heading { font-size: 50px; } }

/* ---------- Gift kits [ri_kits] (2026-11-13, includes/kits.php) ----------
 * Collage of the kit's product photos on the beige tile, items with prices, total, one solid button. Palette only. */
.ri-kits { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
.ri-kit { display: flex; flex-direction: column; }
.ri-kit__media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.ri-kit__img { display: block; position: relative; overflow: hidden; background: var(--ri-tile); border-radius: var(--ri-card-radius); isolation: isolate; }
.ri-kit--3 .ri-kit__img:first-child, .ri-kit--2 .ri-kit__img, .ri-kit--1 .ri-kit__img { grid-row: 1 / 3; }
.ri-kit--1 .ri-kit__img { grid-column: 1 / 3; }
.ri-kit__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ri-kit__img img.ri-white-bg { object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.ri-kit__body { display: flex; flex-direction: column; flex: 1; }
.ri-kit__label { margin: 0 0 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ri-muted); }
.ri-kit__title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.ri-kit__text { margin: 0 0 14px; color: var(--ri-muted); font-size: 15px; line-height: 1.5; }
.ri-kit__items { margin: 0 0 4px; padding: 0; list-style: none; font-size: 14px; }
.ri-kit__items li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--theme-palette-color-4) 12%, transparent); }
.ri-kit__items a { color: inherit; text-decoration: none; }
.ri-kit__items a:hover { text-decoration: underline; }
.ri-kit__items span { white-space: nowrap; color: var(--ri-muted); }
.ri-kit__total { display: flex; justify-content: space-between; margin: auto 0 14px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--theme-palette-color-4) 30%, transparent); font-family: var(--theme-headings-font-family, inherit); font-size: 19px; }
.ri-kit__btn { display: block; padding: 15px 16px; background: var(--theme-palette-color-1); color: var(--theme-palette-color-8); text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; transition: background-color .2s ease; }
.ri-kit__btn:hover, .ri-kit__btn:focus-visible { background: var(--theme-palette-color-2); color: var(--theme-palette-color-8); }
.ri-kit__note { margin: 8px 0 0; color: var(--ri-muted); font-size: 13px; text-align: center; }
@media (min-width: 690px) { .ri-kits { grid-template-columns: 1fr 1fr; } .ri-kit__media { aspect-ratio: 1 / 1; } }
@media (min-width: 1200px) { .ri-kits { grid-template-columns: repeat(4, 1fr); } }
/* Flipped image/text block (kits teaser 2026-11-13): photo first on phones, text left + photo right from 782px (core columns row). */
@media (min-width: 782px) { .ri-personal--flip.wp-block-columns { flex-direction: row-reverse; } }

/* ---------- Block checkout, Shopify-style (2026-11-12, test) ----------
 * Square corners like the rest of the shop; palette colours only. */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-checkout__shipping-method-option,
.wc-block-checkout .wc-block-components-checkout-order-summary__content,
.wc-block-checkout .wc-block-components-totals-coupon__input input,
.wc-block-checkout .wc-block-components-button,
.wc-block-checkout .wc-block-components-panel,
.wc-block-checkout .wc-block-components-order-summary-item__image img { border-radius: var(--ri-radius) !important; }
.wc-block-checkout .wc-block-components-radio-control--highlight-checked,
.wc-block-checkout .wc-block-components-radio-control-accordion-option { border-radius: var(--ri-radius) !important; }
.wc-block-checkout .wc-block-components-text-input input { font-size: 17px; }
.wc-block-checkout .wc-block-checkout__shipping-method-option--selected { border-color: var(--theme-palette-color-1) !important; box-shadow: none !important; } /* 2px like the other tabs (owner 2026-11-15: was 2px + 1px inset) */
.wc-block-checkout .wc-block-components-checkout-place-order-button { min-height: 56px; text-transform: uppercase; letter-spacing: .14em; background: var(--theme-palette-color-1); color: var(--theme-palette-color-8); }
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover { background: var(--theme-palette-color-2); }
.wc-block-checkout .wc-block-components-checkout-step__title { font-family: var(--theme-headings-font-family, inherit); }
/* Gift and pickup boxes sit above the two columns, full content width. */
/* Checkout is saved as alignwide (normal + 2×130px = 2020px), wider than the header/logo
   container (1760px) on large screens. Keep it on the normal container (owner 2026-11-20). */
.wp-block-woocommerce-checkout.alignwide {
	--theme-block-wide-max-width: var(--theme-normal-container-max-width);
	--wp--style--global--wide-size: var(--theme-normal-container-max-width);
}

/* ---------- Checkout address search (Google, 2026-11-14, test) ----------
 * WooCommerce's own suggestion list; square, palette colours, field-sized text. */
.wc-block-components-address-autocomplete-suggestions,
.woocommerce-address-autocomplete-suggestions { border-radius: var(--ri-radius) !important; border-color: var(--theme-palette-color-5, currentColor); background: var(--theme-palette-color-8); }
.wc-block-components-address-autocomplete-suggestions li,
.woocommerce-address-autocomplete-suggestions li { font-size: 16px; padding: 10px 14px; }
.wc-block-components-address-autocomplete-suggestions li.active,
.woocommerce-address-autocomplete-suggestions li.active,
.woocommerce-address-autocomplete-suggestions li:hover { background: var(--theme-palette-color-6); }
.ri-addr-brand { font-size: 12px; color: var(--theme-palette-color-3); }
.woocommerce-address-autocomplete-branding { background: var(--theme-palette-color-6) !important; }

/* Multi-buy offer, "3 för 149 kr" (includes/multibuy.php). Palette only. */
.ri-multibuy {
	display: block;
	width: fit-content;
	margin-top: 4px;
	padding: 2px 6px;
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-8);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.5;
}
[data-products] .product .price .ri-multibuy { margin-inline: inherit; }
.ri-multibuy-note {
	margin: 0 0 1em;
	padding: .6em .9em;
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-4);
}
.ri-multibuy-note strong { color: var(--theme-palette-color-1); }

/* ---------- Company purchases: Privat | Företag tabs + company lookup (2026-11-14, test) ---------- */
.ri-co-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 16px; padding: 4px; background: var(--theme-palette-color-6); }
.ri-co-tab { min-height: 48px; padding: 0 12px; border: 2px solid transparent; border-radius: var(--ri-radius); background: transparent; color: var(--theme-palette-color-4, inherit); font: inherit; font-size: 16px; cursor: pointer; }
/* Företag: card only. The `hidden` attribute set by company-checkout.js loses to Woo's display rule, so hide the Klarna row here. */
html.ri-co-company .wc-block-components-radio-control-accordion-option:has(input[value*="klarna"]),
html.ri-co-company .wc-block-components-radio-control__option:has(input[value*="klarna"]),
.wc-block-components-radio-control-accordion-option[hidden], .wc-block-components-radio-control__option[hidden] { display: none !important; }
.ri-co-tab.is-active { background: var(--theme-palette-color-8); border-color: var(--theme-palette-color-1); color: var(--theme-palette-color-1); font-weight: 600; }
.ri-co-tab:focus-visible { outline: 2px solid var(--theme-palette-color-1); outline-offset: 2px; }
/* The checkbox only carries the value when JS draws the tabs. */
.ri-co-js .wc-block-components-address-form__rummetintill-is-company { display: none; }
.wc-block-components-address-form__rummetintill-company-name { position: relative; }
.ri-co-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; background: var(--theme-palette-color-8); border: 1px solid var(--theme-palette-color-5, currentColor); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ri-co-list li[role=option] { padding: 10px 14px; cursor: pointer; font-size: 16px; line-height: 1.3; }
.ri-co-list li[role=option] strong { display: block; font-weight: 600; }
.ri-co-list li[role=option] span { display: block; font-size: 13px; color: var(--theme-palette-color-3); }
.ri-co-list li[role=option].is-active, .ri-co-list li[role=option]:hover { background: var(--theme-palette-color-6); }
.ri-co-list__foot { padding: 8px 14px; font-size: 12px; color: var(--theme-palette-color-3); background: var(--theme-palette-color-6); }

/* ---------- Gift packages inside the order summary (2026-11-14, test) ---------- */
.wc-block-components-order-summary .wc-block-components-order-summary__content.ri-pkg-list { display: flex; flex-direction: column; } /* Woo sets display:table */
.ri-pkg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 14px 0 0; padding: 10px 12px 6px; background: var(--theme-palette-color-6); border-left: 3px solid var(--theme-palette-color-1); }
.ri-pkg-list > .ri-pkg-head[style*="order: 0"] { margin-top: 0; }
.ri-pkg-head__name { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--theme-palette-color-1); }
.ri-pkg-head__tag { font-size: 13px; color: var(--theme-palette-color-3); }
.ri-pkg-head__edit { margin-left: auto; font-size: 13px; color: var(--theme-palette-color-1); text-decoration: underline; text-underline-offset: 2px; }
.wc-block-components-order-summary-item.ri-pkg-line { background: var(--theme-palette-color-6); border-left: 3px solid var(--theme-palette-color-1); padding-left: 9px; padding-right: 12px; margin: 0; }
.wc-block-components-order-summary-item.ri-pkg-line.ri-pkg-last { padding-bottom: 12px; }
.ri-pkg-sep { height: 1px; margin: 16px 0 4px; background: var(--theme-palette-color-5, currentColor); opacity: .6; }

/* ---------- Delivery: Till mig | Till någon annan (2026-11-14, test) ---------- */
/* The native "Använd samma adress för fakturering" checkbox is driven by the tabs instead. */
.ri-sto-js .wc-block-checkout__shipping-fields .wc-block-checkout__use-address-for-billing { display: none; }
.ri-sto-hint { margin: -4px 0 14px; font-size: 15px; color: var(--theme-palette-color-3); }

/* Visit the shop as a box (owner 2026-11-15, prod homepage): shop photo left, warm greige panel right
   (palette 5; moss was too close to the footer right below).
   Phone: photo on top, panel below. Palette only. Replaces the full-bleed .ri-visit band there. */
.ri-visit-box.wp-block-columns { gap: 0; margin-block: 48px 8px; align-items: stretch; }
.ri-visit-box > .wp-block-column { margin: 0; }
.ri-visit-box .wp-block-image { margin: 0; height: 100%; }
.ri-visit-box .wp-block-image img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ri-visit-box__text {
	display: flex; flex-direction: column; justify-content: center;
	padding: 36px 24px 40px;
	background: var(--theme-palette-color-6); /* owner 2026-11-17: light beige (was palette 5 greige) */
	color: var(--theme-palette-color-4);
}
.ri-visit-box__text :is(h2, .ri-eyebrow) { color: var(--theme-palette-color-4); }
.ri-visit-box__text h2.wp-block-heading { margin: 0 0 16px; font-size: 30px; line-height: 1.25; }
.ri-visit-box__text p:not(.ri-eyebrow) { margin: 0 0 8px; }
.ri-visit-box__text .ri-note { font-size: 14px; color: var(--theme-palette-color-4); }
.ri-visit-box__text .wp-block-buttons { margin-top: 24px; gap: 12px; }
.ri-visit-box__text .ri-btn-outline .wp-block-button__link { color: var(--theme-palette-color-4); box-shadow: inset 0 0 0 1px var(--theme-palette-color-4); }
.ri-visit-box__text .ri-btn-outline .wp-block-button__link:hover { background: var(--theme-palette-color-4); color: var(--theme-palette-color-8); }
@media (min-width: 782px) {
	.ri-visit-box.wp-block-columns { margin-block: 88px 16px; }
	.ri-visit-box > .wp-block-column { flex-basis: 50% !important; }
	.ri-visit-box .wp-block-image img { aspect-ratio: auto; min-height: 520px; }
	.ri-visit-box__text { padding: 56px 64px; }
	.ri-visit-box__text h2.wp-block-heading { font-size: 40px; }
}

/* Three puffs on the homepage (owner 2026-11-15, prod): cover image, text + button at the bottom.
   Reuses the .ri-duo look (gradient, white text, outline button) with a stronger shade for light photos.
   Phone: stacked, square. 690–999px: stacked, 3:2. From 1000px: three in a row, 4:5. */
.ri-puffs { display: grid; grid-template-columns: 1fr; gap: 6px; margin-block: 48px; }
.ri-puffs > * { margin: 0 !important; }
.wp-block-cover.ri-duo.ri-puff { min-height: 0; aspect-ratio: 1 / 1; padding: 24px 20px; }
.wp-block-cover.ri-duo.ri-puff::after { background: linear-gradient(to top, color-mix(in srgb, var(--ri-shade) 85%, transparent) 0%, color-mix(in srgb, var(--ri-shade) 45%, transparent) 30%, color-mix(in srgb, var(--ri-shade) 10%, transparent) 55%, transparent 75%); } /* 2026-11-18 ~20:45 owner: too dark overall, keep the bottom dark for the text */
.ri-puff .wp-block-cover__inner-container { text-shadow: 0 1px 14px color-mix(in srgb, var(--ri-shade) 60%, transparent); }
.ri-puff :is(h1, h2).wp-block-heading { margin-bottom: 14px; font-size: 28px; }
.ri-puff .wp-block-button__link { white-space: nowrap; }
@media (min-width: 690px) {
	.ri-puffs { margin-block: 72px; }
	.wp-block-cover.ri-duo.ri-puff { aspect-ratio: 3 / 2; padding: 32px; }
	.ri-puff :is(h1, h2).wp-block-heading { font-size: 32px; }
}
@media (min-width: 1000px) {
	.ri-puffs { grid-template-columns: repeat(3, 1fr); }
	.wp-block-cover.ri-duo.ri-puff { aspect-ratio: 4 / 5; }
}
/* Four puffs with the owner's flat-lay photos (owner 2026-11-17, prod; config/apply-home-photo-puffs.php):
   phone stacked (as above), 690–1199px two by two, from 1200px four in a row. */
@media (min-width: 690px) {
	.ri-puffs--4 { grid-template-columns: repeat(2, 1fr); }
	.ri-puffs--4 .wp-block-cover.ri-duo.ri-puff { aspect-ratio: 4 / 5; }
}
@media (min-width: 1200px) {
	.ri-puffs--4 { grid-template-columns: repeat(4, 1fr); }
	.ri-puffs--4 .wp-block-cover.ri-duo.ri-puff { padding: 24px; }
	.ri-puffs--4 .ri-puff :is(h1, h2).wp-block-heading { font-size: 28px; }
}
/* Puffs: no visible button (owner 2026-11-18: "mycket knappar"). The whole card is the link and a
   small arrow box sits in the bottom right corner. CSS only: the button's link text stays for screen
   readers (font-size 0), its ::after stretches over the card, its ::before is the arrow box. */
.ri-puffs .ri-duo.ri-puff .wp-block-cover__inner-container { position: static; padding-right: 56px; }
.ri-puffs .ri-duo.ri-puff .wp-block-cover__inner-container > :not(.wp-block-buttons) { position: relative; z-index: 2; }
.ri-puffs .ri-duo.ri-puff :is(h1, h2).wp-block-heading { margin-bottom: 0; }
.ri-puffs .ri-duo.ri-puff .wp-block-buttons,
.ri-puffs .ri-duo.ri-puff .wp-block-button { position: static; margin: 0; }
.ri-puffs .ri-duo.ri-puff .wp-block-button .wp-block-button__link {
	position: static; display: block; padding: 0; min-height: 0; font-size: 0; line-height: 0;
	background: none; box-shadow: none; color: transparent; text-shadow: none;
}
.ri-puffs .ri-duo.ri-puff .wp-block-button .wp-block-button__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
/* Arrow box: the link's ::before draws the box, the button wrapper's ::before draws the arrow as a masked
   SVG (2026-11-19: the "→" font glyph sat off-centre on phones, where it comes from a fallback font).
   Position and size come from --ri-arrow-* so both layers always line up. */
.ri-puffs .ri-duo.ri-puff { --ri-arrow-right: 20px; --ri-arrow-bottom: 24px; --ri-arrow-size: 40px; }
.ri-puffs .ri-duo.ri-puff .wp-block-button .wp-block-button__link::before,
.ri-puffs .ri-duo.ri-puff .wp-block-button::before {
	content: ""; position: absolute; right: var(--ri-arrow-right); bottom: var(--ri-arrow-bottom);
	width: var(--ri-arrow-size); height: var(--ri-arrow-size);
}
.ri-puffs .ri-duo.ri-puff .wp-block-button .wp-block-button__link::before {
	z-index: 4; border-radius: 3px;
	box-shadow: inset 0 0 0 1px var(--theme-palette-color-8);
	transition: background-color .2s;
}
.ri-puffs .ri-duo.ri-puff .wp-block-button::before {
	z-index: 5; pointer-events: none; background-color: var(--theme-palette-color-8);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.25 12h15.5M13.75 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 55% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.25 12h15.5M13.75 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 55% no-repeat;
	transition: background-color .2s;
}
/* No light fill on mouse hover (owner 2026-11-18: "ljus fläck"); keyboard focus still fills the arrow box. */
.ri-puffs .ri-duo.ri-puff .wp-block-button__link:focus-visible::before { background: var(--theme-palette-color-8); }
.ri-puffs .ri-duo.ri-puff .wp-block-button:has(.wp-block-button__link:focus-visible)::before { background-color: var(--theme-palette-color-4); }
.ri-puffs .ri-duo.ri-puff .wp-block-button__link:focus-visible { outline: none; }
.ri-puffs .ri-duo.ri-puff .wp-block-button__link:focus-visible::after { outline: 2px solid var(--theme-palette-color-8); outline-offset: -6px; }
@media (min-width: 690px) {
	.ri-puffs .ri-duo.ri-puff { --ri-arrow-right: 32px; --ri-arrow-bottom: 32px; }
}
@media (min-width: 1200px) {
	.ri-puffs--4 .ri-duo.ri-puff { --ri-arrow-right: 24px; --ri-arrow-bottom: 24px; }
}
/* Gift card puff on the homepage (owner 2026-11-17, prod; config/apply-home-giftcard-puff.php): card packshot on
   palette 6 (white multiplied away), text + outline button. Stacked on phones, side by side from 782px. */
.ri-gc-puff.wp-block-columns { gap: 0; margin-block: -24px 48px; align-items: stretch; background: var(--theme-palette-color-6); }
.ri-gc-puff > .wp-block-column { margin: 0; }
.ri-gc-puff__media { display: flex; align-items: center; justify-content: center; padding: 32px 32px 8px; }
.ri-gc-puff__media .wp-block-image { margin: 0; width: 100%; max-width: 440px; }
.ri-gc-puff__media img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.ri-gc-puff__text { padding: 16px 24px 36px; align-self: center; }
.ri-gc-puff__text h2.wp-block-heading { margin: 0 0 12px; font-size: 28px; line-height: 1.25; }
.ri-gc-puff__text p:not(.ri-eyebrow) { margin: 0; }
.ri-gc-puff__text .wp-block-buttons { margin-top: 24px; }
@media (min-width: 782px) {
	.ri-gc-puff.wp-block-columns { margin-block: -40px 72px; }
	.ri-gc-puff > .wp-block-column { flex-basis: 50% !important; }
	.ri-gc-puff__media { padding: 48px; }
	.ri-gc-puff__text { padding: 48px 56px 48px 24px; }
	.ri-gc-puff__text h2.wp-block-heading { font-size: 36px; }
}

/* Julklappar page (owner 2026-11-15, prod; config/build-julklappar.php): intro, then sections of .ri-cats tiles. */
.ri-guide-intro { text-align: center; margin-bottom: 8px; }
.ri-guide { margin-block: 48px; }
.ri-guide__title.wp-block-heading { margin: 0 0 20px; font-size: 26px; text-align: center; }
.ri-guide__lead { max-width: 620px; margin: -8px auto 24px; text-align: center; color: var(--ri-muted); } /* line under a section title (Våra julfavoriter) */
.ri-guide-intro .ri-lead + .ri-lead { margin-top: 12px; }
/* Julklappar draft (owner 2026-11-17): shop photo on top, "Det här är på bilden" rows = owner photo + live product list
   ([ri_bilden], includes/photo-items.php), gift-wrap block. config/build-julklappar-utkast.php */
.ri-guide-hero { margin: 0 0 32px; }
.ri-guide-hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.ri-bilden.wp-block-columns { max-width: 1100px; margin: 0 auto 48px; gap: 20px 56px; align-items: center; }
.ri-bilden .wp-block-image { margin: 0; }
.ri-bilden .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ri-bilden h3.wp-block-heading { margin: 0 0 8px; font-size: 24px; }
.ri-bilden p { margin: 0 0 16px; color: var(--ri-muted); }
.ri-bilden__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.ri-bilden__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-size: 15px; line-height: 1.4; }
.ri-bilden__list a { color: inherit; text-decoration: none; }
.ri-bilden__list a:hover { text-decoration: underline; }
.ri-bilden__price { flex: none; color: var(--ri-muted); font-size: 14px; }
.ri-guide-wrap.wp-block-columns { max-width: 1100px; margin-inline: auto; }
@media (min-width: 782px) {
	.ri-guide-hero img { aspect-ratio: 21 / 9; }
	.ri-bilden--flip.wp-block-columns { flex-direction: row-reverse; }
	.ri-bilden.wp-block-columns { margin-bottom: 72px; }
}
.ri-guide-notes .wp-block-columns { gap: 8px 48px; max-width: 1100px; margin-inline: auto; }
.ri-guide-notes p { margin: 0 0 16px; }
@media (min-width: 1000px) {
	.ri-guide { margin-block: 72px; }
	.ri-guide__title.wp-block-heading { margin-bottom: 32px; font-size: 32px; }
}

/* Julklappar page photos (owner 2026-11-17, prod; config/apply-julklappar-photos.php): the owner's flat-lays between the
   tile sections, shown uncropped (aspect-ratio inline per image), and narrower than the full-width tile rows so they don't get huge on big screens. */
.ri-guide-photo.wp-block-columns { max-width: 1200px; margin-inline: auto; }
.ri-guide-photo .wp-block-image img { height: auto; } /* ratio set inline per image (lazy sizes=auto needs one) */

/* Checkout text sizes and buttons (owner 2026-11-15, prod): Woo's block checkout sets many texts to 0.75–0.8125em,
   which came out at 11–13px next to 17px body text. Readable minimums, and the shipping toggle + gift card button
   made to match the other tabs/buttons. */
.wc-block-checkout :is(
	.wc-block-checkout__guest-checkout-notice,
	.wc-block-components-address-form__address_2-toggle,
	.wc-block-components-shipping-rates-control__no-shipping-address-message,
	.wc-block-components-radio-control__label,
	.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__label,
	.wc-block-components-payment-method-label,
	.wc-block-components-checkbox__label,
	.wc-block-components-address-card__address-section,
	.wc-block-components-address-card__edit,
	.wc-block-checkout__terms
) { font-size: 15px; }
.wc-block-checkout .wc-block-components-order-summary :is(.wc-block-components-product-name, .wc-block-components-product-price, .wc-block-components-formatted-money-amount) { font-size: 15px; }
.wc-block-checkout :is(.wc-block-components-panel__button, .wc-block-components-totals-item__label, .wc-block-components-totals-item__value) { font-size: 15px; }
.wc-block-checkout :is(.wc-block-components-product-metadata, .wc-block-components-product-metadata p, .wc-block-components-order-summary-item__description p, .wc-block-components-shipping-placeholder__value, .wc-block-components-totals-footer-item-tax) { font-size: 13px; }
.wc-block-checkout .wc-block-components-totals-footer-item :is(.wc-block-components-totals-item__label, .wc-block-components-totals-item__value) { font-size: 18px; }
/* Leverans | Hämta i butik: same look as the Privat | Företag and Till mig | Till någon annan tabs. */
.wc-block-checkout .wc-block-checkout__shipping-method-container { gap: 0; padding: 4px; background: var(--theme-palette-color-6) !important; border-radius: var(--ri-radius) !important; }
.wc-block-checkout .wc-block-checkout__shipping-method-option { min-height: 48px; border-color: transparent; background: transparent; }
.wc-block-checkout .wc-block-checkout__shipping-method-option--selected { background: var(--theme-palette-color-8); }
.wc-block-checkout .wc-block-checkout__shipping-method-option-title { font-size: 16px; }
.wc-block-checkout .wc-block-checkout__shipping-method-option--selected .wc-block-checkout__shipping-method-option-title { font-weight: 600; color: var(--theme-palette-color-1); }
/* Gift card button (PW Gift Cards): same height and spacing as the other buttons. */
.wc-block-checkout .pwgc-apply-gift-card-button { min-height: 48px !important; letter-spacing: .14em; } /* .14em = the theme's button spacing (cart and the rest of the shop) */
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-product-name { font-family: inherit; font-weight: 400; }
.wc-block-checkout :is(.wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-checkout-order-summary, .checkout-order-summary-block-fill-wrapper, .checkout-order-summary-block-fill, .wc-block-components-address-card, .wc-blocks-components-select__container, .wc-block-components-shipping-rates-control__no-shipping-address-message) { border-radius: var(--ri-radius) !important; }

/* Cart review (owner 2026-11-15, prod): notices in the palette with square corners, buttons in them 48px like
   every other button, VAT line readable, square product thumbnails. */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { border-radius: var(--ri-radius) !important; }
:is(.woocommerce-message, .woocommerce-info) { background: var(--theme-palette-color-6) !important; border: 1px solid var(--theme-palette-color-5) !important; }
:is(.woocommerce-message, .woocommerce-info) .button { min-height: 48px; }
.woocommerce-cart .cart_totals .includes_tax { font-size: 13px; }
.woocommerce-cart :is(.product-thumbnail img, img.attachment-woocommerce_thumbnail) { border-radius: var(--ri-radius) !important; }
/* Woo focuses a new notice (tabindex=-1) so screen readers announce it; the theme then drew a dark ring round it.
   The notice itself is not interactive, so no ring on it (its button keeps its own focus style). */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error)[tabindex="-1"]:focus { outline: none; }
/* Cart quantity box: the input is 48px (comfortable fields rule above) but Blocksy's box was 40px, so − and +
   were centred 4px above the visible box. Same height for both (owner 2026-11-15). */
.woocommerce-cart-form div.quantity { --quantity-height: 48px !important; height: 48px !important; }
.woocommerce-cart-form div.quantity input.qty { height: 100%; }

/* Header search: "Visa mer" as a real button, easy to hit on phones (owner 2026-11-19, see menu.js). */
#search-modal .ct-search-results .ct-search-more {
	display: flex; align-items: center; justify-content: center;
	min-height: 48px; margin: 16px 0 24px; padding: 0 20px;
	border: 1px solid var(--theme-palette-color-4); color: var(--theme-palette-color-4);
	font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
#search-modal .ct-search-results .ct-search-more:hover,
#search-modal .ct-search-results .ct-search-more:focus-visible { background: var(--theme-palette-color-4); color: var(--theme-palette-color-8); }

/* Footer "Följ oss": text links Instagram / Facebook instead of icons, always underlined (owner 2026-11-19). */
footer.ct-footer .ri-footer-social { list-style: none; margin: 0; padding: 0; }
footer.ct-footer .ri-footer-social li { margin: 0; } /* same rhythm as the menu columns */
footer.ct-footer .ri-footer-social a { text-decoration: underline; text-underline-offset: 3px; }
/* Checkout terms line: Villkor + Integritetspolicy links in bold so they read as links (owner 2026-11-19). */
.wc-block-checkout__terms a { font-weight: 700; }

/* Phone menu panel: Instagram / Facebook as underlined text links (owner 2026-11-19, includes/views/social-links.php). */
#offcanvas .ri-menu-social ul { list-style: none; margin: 0; padding: 0; }
#offcanvas .ri-menu-social li { margin: 0; line-height: 1.75; }
#offcanvas .ri-menu-social a { font-size: 17px; color: var(--theme-palette-color-4); text-decoration: underline; text-underline-offset: 3px; }

/* Gift card help under the gift card field + dialog (owner 2026-11-19, assets/gift-card-help.js). */
.ri-gc-help { margin: 8px 0 16px; font-size: 14px; line-height: 1.5; color: var(--theme-palette-color-3); }
.ri-gc-help__link { display: inline; min-height: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--theme-palette-color-4); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ri-gc-help__link:hover { color: var(--theme-palette-color-1); background: none; }
.ri-gc-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px 24px 24px; border: 0; border-radius: var(--ri-radius, 0); background: var(--theme-palette-color-8); color: var(--theme-palette-color-4); }
.ri-gc-dialog::backdrop { background: color-mix(in srgb, var(--theme-palette-color-4) 55%, transparent); }
.ri-gc-dialog h2 { margin: 0 0 12px; font-size: 22px; }
.ri-gc-dialog p, .ri-gc-dialog li { font-size: 15px; line-height: 1.55; }
.ri-gc-dialog ol { margin: 0 0 14px; padding-left: 1.3em; }
.ri-gc-dialog li { margin: 0 0 6px; }
.ri-gc-dialog strong { white-space: nowrap; font-weight: 600; }
.ri-gc-dialog a { text-decoration: underline; text-underline-offset: 3px; }
.ri-gc-dialog__close { width: 100%; min-height: 48px; margin-top: 8px; }

/* Presenttips puffs (.ri-puffs--4) on phones: two by two instead of stacked (owner 2026-11-19).
   Smaller padding, heading and arrow box so the titles fit in a half-width card. */
@media (max-width: 689.98px) {
	.ri-puffs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* minmax: long words must not widen a column */
	.ri-puffs--4 .wp-block-cover.ri-duo.ri-puff { aspect-ratio: 4 / 5; padding: 14px 12px; }
	.ri-puffs--4 .ri-duo.ri-puff .wp-block-cover__inner-container { padding-right: 30px; }
	.ri-puffs--4 .ri-puff :is(h1, h2).wp-block-heading { font-size: clamp(16px, 4.6vw, 18px); line-height: 1.2; }
	.ri-puffs--4 .ri-puff .ri-eyebrow { margin-bottom: 6px; font-size: 11px; letter-spacing: 0.14em; }
	.ri-puffs--4 .ri-duo.ri-puff { --ri-arrow-right: 10px; --ri-arrow-bottom: 12px; --ri-arrow-size: 26px; }
}

/* ---------- Return form confirmation (owner 2026-11-20) ----------
 * Replaces the return/complaint form after sending (mu-plugin rummetintill-return-form.php).
 * Very light green with a moss touch, so it reads as "done" without shouting. */
.ri-return-confirm { background: #EEF1E8; border: 1px solid #C9D1BA; border-radius: var(--ri-radius); color: #3D3F2E; padding: 24px 28px; margin: 32px 0; scroll-margin-top: 120px; }
.ri-return-confirm p { margin: 0 0 8px; }
.ri-return-confirm p:last-child { margin: 12px 0 0; }
.ri-return-confirm__title { font-family: var(--theme-headings-font-family, inherit); font-size: 1.25rem; line-height: 1.3; display: flex; align-items: center; gap: 12px; margin-bottom: 12px !important; }
.ri-return-confirm__title::before { content: "✓"; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--theme-palette-color-1); color: #fff; display: grid; place-items: center; font-size: 15px; font-family: system-ui, sans-serif; }
.ri-return-confirm strong { color: inherit; }
.ri-return-confirm a { color: var(--theme-palette-color-1); text-decoration: underline; }
.ri-return-confirm:focus { outline: none; }
@media (max-width: 689px) { .ri-return-confirm { padding: 20px; } }

/* Våra presenttips (page 1506) on phones: cards two by two instead of stacked (owner 2026-11-20).
   The two Columns blocks flow into one 2-col grid (display: contents) so no card is left alone mid-page;
   the empty filler column is hidden. Columns stack below 782px in core, hence this breakpoint. */
@media (max-width: 781.98px) {
	.page-id-1506 .entry-content .wp-block-group:has(> .wp-block-columns) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; }
	.page-id-1506 .entry-content .wp-block-group:has(> .wp-block-columns) > :not(.wp-block-columns) { grid-column: 1 / -1; }
	.page-id-1506 .entry-content .wp-block-group:has(> .wp-block-columns) > .wp-block-columns { display: contents; }
	.page-id-1506 .entry-content .wp-block-group:has(> .wp-block-columns) .wp-block-column { margin: 0; min-width: 0; }
	.page-id-1506 .entry-content .wp-block-group:has(> .wp-block-columns) .wp-block-column:empty { display: none; }
	.page-id-1506 .entry-content .wp-block-group:has(> .wp-block-columns) > .wp-block-spacer { display: none; }
	.page-id-1506 .entry-content .wp-block-column h3.wp-block-heading { font-size: 16px !important; line-height: 1.25; }
	.page-id-1506 .entry-content .wp-block-column p { font-size: 14px !important; }
	.page-id-1506 .entry-content .wp-block-column p:last-child { font-size: 11px !important; }
}

/* Presenttips sub-pages (children of Våra presenttips 1506): intro text max 800px for a comfortable
   line length, left-aligned with the H1 (owner 2026-11-20). */
.parent-pageid-1506 .entry-content > p.wp-block-paragraph { box-sizing: border-box; padding-right: max(0px, calc(min(var(--theme-block-width, 100%), var(--wp--style--global--content-size, 100%)) - 800px)); } /* text column max 800px, block keeps the layout's own margins */

/* Pickup location: own line "Hämtas under ordinarie öppettider." (owner 2026-11-20). Added here, not in the location's details text:
   Woo clamps that text to 2 lines ("Läs mer" on narrow phones) and drops line breaks. Emails add it in includes/emails.php. */
.wc-block-checkout__pickup-options .wc-block-components-radio-control__secondary-description::after { content: "Hämtas under ordinarie öppettider."; display: block; }

/* Cookiepolicy: [wpconsent_preferences_button] prints a bare inline <button> directly in the
   constrained content, so it got the column width but sat at the left page edge. Align it with the
   text column; content width on desktop, full column width on phones. */
.entry-content.is-layout-constrained > .wpconsent-open-preferences.button {
	display: block;
	width: fit-content;
	max-width: var(--theme-block-width, 100%);
	margin-left: calc((100% - min(var(--theme-block-width, 100%), var(--theme-block-max-width, 100%))) / 2) !important; /* WP core constrained layout sets auto !important */
	margin-right: 0 !important;
	padding-inline: 32px;
}
@media (max-width: 600px) {
	.entry-content.is-layout-constrained > .wpconsent-open-preferences.button { width: var(--theme-block-width, 100%); }
}
