/*
 * Rockflame theme styles that theme.json cannot express.
 * Colours, fonts and spacing come from theme.json presets (--wp--preset--*).
 */

/* ---------- Base ---------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

img {
	height: auto;
}

/* ---------- Block styles (registered in functions.php) ---------- */

.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
	line-height: 1.5;
}

.is-style-text-link a {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.wp-block-button.is-style-outline-line .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--line);
}

.wp-block-button.is-style-outline-line .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-on-dark .wp-block-button__link {
	background: #F4EEE6;
	border-color: #F4EEE6;
	color: #111110;
}

.wp-block-button.is-style-on-dark .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}

.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

/* ---------- Header ---------- */

.rf-announcement {
	letter-spacing: 0.1em;
}

.rf-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rf-header .wp-block-site-logo img {
	width: auto;
	max-height: 40px;
	/* Reserve the logo's space before the file has loaded (no layout jump). */
	height: 40px;
	aspect-ratio: auto 254 / 49;
}

.rf-header .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
}

.rf-header .wp-block-search__input {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	padding: 11px 15px;
	min-height: 44px;
}

.rf-header .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 36px;
	height: 40px;
}

.rf-header .wp-block-search__button svg {
	width: 24px;
	height: 24px;
	transform: translateY(2px);
}

.rf-header .wp-block-search__button:hover {
	color: var(--wp--preset--color--accent);
}

/* Search is an icon; the field opens as a panel under the header row. */
.rf-header__top {
	position: relative;
}

.rf-header__search,
.rf-header__search .wp-block-search__inside-wrapper {
	position: static;
	margin: 0;
}

.rf-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	position: absolute;
	top: 100%;
	right: 0;
	width: min(480px, 100%) !important;
	box-shadow: 0 14px 30px rgba(36, 35, 31, 0.1);
	z-index: 60;
}

.rf-header__actions {
	padding-right: 8px;
	align-items: center;
}

/* Search, account and cart icons share one 40px centre line. */
.rf-header__actions > *,
.rf-header__actions .wc-block-customer-account a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 40px;
	margin: 0 !important;
	line-height: 0;
}

.rf-header__actions svg {
	display: block;
	vertical-align: middle;
}

.rf-cart-link {
	position: relative;
	display: inline-flex;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.rf-cart-link__count {
	position: absolute;
	top: -6px;
	right: -9px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.rf-cart-link__count[data-count="0"] {
	display: none;
}

/*
 * Navigation uses overlayMenu "always": below 1100px it is the menu button left of
 * the logo; from 1100px the overlay container is shown inline as the full menu.
 */
@media (min-width: 1100px) {
	.rf-header__nav .wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.rf-header__nav .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
		display: block;
		position: relative;
		inset: auto;
		width: 100%;
		z-index: auto;
		background-color: inherit;
	}

	.rf-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close {
		display: none;
	}

	.rf-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: inherit;
	}

	.rf-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		flex-direction: row;
		align-items: center;
	}
}

@media (max-width: 1099px) {
	/* Sticky header: the announcement scrolls away, the logo row stays. */
	.wp-block-template-part:has(> .rf-header) {
		position: sticky;
		top: -34px;
		z-index: 100;
	}

	.rf-announcement {
		height: 34px;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.rf-announcement p {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		margin: 0;
	}

	.rf-header {
		position: relative;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}

	.rf-header__top {
		padding-top: 12px !important;
		padding-bottom: 12px !important;
	}

	.rf-header__actions {
		gap: 4px !important;
		padding-right: 0;
	}

	.rf-header__top .wp-block-site-logo {
		margin-left: 40px;
	}

	.rf-header__top .wp-block-site-logo img {
		width: 140px !important;
		height: auto;
	}

	/* The menu button sits left of the logo instead of on its own row. */
	.rf-header > .wp-block-group:has(.rf-header__nav) {
		position: absolute;
		top: 12px;
		left: max(16px, 5vw);
		height: 40px;
		padding: 0 !important;
		margin: 0 !important;
		align-items: center;
	}
}

/* ---------- Footer ---------- */

.rf-footer a {
	text-decoration: none;
	color: #C6C3BC;
	transition: color .15s;
}

.rf-footer a:hover {
	color: var(--wp--preset--color--white);
}

.rf-footer .wp-block-site-logo img {
	filter: brightness(0) invert(1);
}

.rf-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px 24px;
}

.rf-footer__brand {
	grid-column: 1 / -1;
}

.rf-footer__tagline {
	color: #C6C3BC;
	max-width: 300px;
	margin: 18px 0 8px;
	line-height: 1.6;
}

.rf-footer__address {
	font-style: normal;
	color: #8F8B83;
	font-size: 13px;
}

.rf-footer__social {
	list-style: none;
	display: flex;
	gap: 10px;
	padding: 0;
	margin: 22px 0 0;
}

.rf-footer__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid #4B4943;
	border-radius: 50%;
	transition: border-color .15s, color .15s;
}

.rf-footer__social a:hover {
	border-color: #EEEAE3;
}

.rf-footer__heading {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	margin: 0 0 18px;
}

.rf-footer__col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}

.rf-footer__bottom {
	border-top: 1px solid #3A3833;
	margin: 56px auto 0;
	padding-top: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	font-size: 12px;
	color: #8F8B83;
}

.rf-footer__bottom p {
	margin: 0;
}

.rf-footer__bottom a {
	color: #B1ADA4;
}

.rf-footer__credit a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rf-footer__pay {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0;
}

.rf-footer__pay li {
	border: 1px solid #4B4943;
	border-radius: 4px;
	padding: 4px 9px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	color: #C6C3BC;
}

@media (max-width: 699px) {
	.rf-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (min-width: 600px) {
	.rf-footer__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 900px) {
	.rf-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
		gap: 48px;
	}

	.rf-footer__brand {
		grid-column: auto;
	}
}

/* ---------- Homepage ---------- */

.rf-hero__title {
	letter-spacing: var(--wp--custom--letter-spacing--hero);
	line-height: 1.06;
	margin: 0;
}

.rf-hero__lead {
	max-width: 360px;
}

.rf-benefits__row .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--line);
}

.rf-benefits p {
	margin: 0;
}

.rf-tile__image {
	overflow: hidden;
	margin: 0;
}

.rf-tile__image img {
	width: 100%;
	object-position: 65% center;
	transition: transform 0.4s ease;
}

.rf-tile:hover .rf-tile__image img {
	transform: scale(1.025);
}

.rf-tile h3 a {
	text-decoration: none;
	font-weight: 500;
}

.rf-editorial .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--70) max(16px, 5vw) var(--wp--preset--spacing--70) var(--wp--preset--spacing--70);
	max-width: 620px;
}

.rf-editorial {
	min-height: 420px;
}

.rf-answer + .rf-answer {
	border-top: 1px solid #D8D0C6;
	padding-top: var(--wp--preset--spacing--40);
}

.rf-answer h3 {
	margin: 0 0 8px;
}

.rf-guidance {
	gap: 0 !important;
}

@media (max-width: 781px) {
	.rf-slide .wp-block-cover__background {
		background: linear-gradient(0deg, rgba(237, 228, 213, 0.97) 0%, rgba(237, 228, 213, 0.35) 65%, rgba(237, 228, 213, 0) 100%) !important;
	}

	.rf-slide {
		align-items: flex-end !important;
		min-height: 560px !important;
	}

	.rf-slide .wp-block-cover__inner-container {
		text-align: left;
	}

	.rf-slide__copy > * {
		margin-left: 0 !important;
	}

	.rf-benefits {
		font-size: 11px !important;
	}

	.rf-tiles {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rf-editorial .wp-block-media-text__media {
		min-height: 280px;
	}

	.rf-editorial .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--50) max(16px, 5vw);
	}
}

/* ---------- Product cards ---------- */

.rf-products .wc-block-product-template {
	gap: 28px 20px;
}

.rf-products .wc-block-components-product-image {
	background: var(--wp--preset--color--surface);
	overflow: hidden;
	margin-bottom: 0 !important;
}

.rf-products .wc-block-components-product-image img {
	mix-blend-mode: multiply;
	padding: 20px;
	transition: transform 0.3s ease;
}

.rf-products li:hover .wc-block-components-product-image img {
	transform: scale(1.04);
}

.rf-card__title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.rf-card__title a {
	text-decoration: none;
}

.rf-card__title a:hover {
	text-decoration: underline;
}

.rf-card__price {
	font-weight: 600;
	margin-top: 0 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rf-card__price del {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

/* Sale: red corner ribbon, top right. */
.wc-block-components-product-image,
.woocommerce-product-gallery,
.wp-block-woocommerce-product-image-gallery {
	position: relative;
	overflow: hidden;
}

/* Product page: zoom button bottom right (away from the ribbon) and the image popup. */
.rf-lightbox__trigger {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 2px 8px rgba(17, 17, 16, 0.15);
	cursor: pointer;
}

.rf-lightbox__trigger:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.woocommerce-product-gallery__image a {
	cursor: zoom-in;
}

/* WooCommerce's own zoom button opens the full-screen viewer; ours replaces it. */
.woocommerce-product-gallery__trigger {
	display: none !important;
}

/* "I lager" is implied by the add-to-cart button; only "Slut i lager" is shown. */
.rf-product__buy .stock.in-stock,
.rf-product__buy .wc-block-components-product-stock-indicator--in-stock,
.rf-product__buy .woocommerce-variation-availability:has(.in-stock) {
	display: none !important;
}

.rf-product__buy .woocommerce-variation.single_variation:not(:has(:not(:empty))) {
	display: none;
}

.rf-lightbox {
	box-sizing: border-box;
	width: min(900px, 92vw);
	max-height: 90vh;
	padding: 48px 56px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 24px 60px rgba(17, 17, 16, 0.3);
	overflow: hidden;
}

.rf-lightbox::backdrop {
	background: rgba(17, 17, 16, 0.6);
}

.rf-lightbox__img {
	display: block;
	width: 100%;
	max-height: calc(90vh - 110px);
	object-fit: contain;
	margin: 0 auto;
}

.rf-lightbox__close,
.rf-lightbox__prev,
.rf-lightbox__next {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.rf-lightbox__close {
	top: 10px;
	right: 10px;
}

.rf-lightbox__prev,
.rf-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.rf-lightbox__prev {
	left: 8px;
}

.rf-lightbox__next {
	right: 8px;
}

.rf-lightbox.is-single .rf-lightbox__prev,
.rf-lightbox.is-single .rf-lightbox__next {
	display: none;
}

.rf-lightbox__close:hover,
.rf-lightbox__prev:hover,
.rf-lightbox__next:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.rf-lightbox__count {
	margin: 10px 0 0;
	min-height: 1.2em;
	text-align: center;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 600px) {
	.rf-lightbox {
		padding: 44px 12px 14px;
	}

	.rf-lightbox__prev,
	.rf-lightbox__next {
		top: auto;
		bottom: 8px;
		transform: none;
	}
}

/* Sale prices: new price in red, old price small and grey. */
.wc-block-components-product-price ins,
.woocommerce .price ins,
.woocommerce-variation-price .price ins {
	color: #C8102E !important;
	font-weight: 700;
	text-decoration: none;
	background: none;
}

.wc-block-components-product-price del,
.woocommerce .price del,
.woocommerce-variation-price .price del {
	margin-right: 6px;
	color: var(--wp--preset--color--muted) !important;
	font-size: 0.72em;
	font-weight: 400;
	opacity: 1;
}

.wc-block-components-product-sale-badge,
.wc-block-components-product-image .wc-block-components-product-sale-badge,
.woocommerce span.onsale {
	position: absolute !important;
	top: 16px !important;
	right: -34px !important;
	left: auto !important;
	z-index: 3;
	width: 128px;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	padding: 5px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #C8102E !important;
	color: #FFFFFF !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(45deg);
}

/* ---------- Shop / category ---------- */

.rf-breadcrumbs {
	color: var(--wp--preset--color--muted);
	padding: 20px 0;
	margin: 0;
}

.rf-breadcrumbs a {
	text-decoration: none;
}

.rf-eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* ---------- Category hero ---------- */

.rf-cat-hero {
	display: grid;
	background: var(--wp--preset--color--cream);
	margin: 0 0 20px;
	overflow: hidden;
}

.rf-cat-hero__media {
	position: relative;
	min-height: 220px;
}

.rf-cat-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 35%;
}

.rf-cat-hero__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px max(20px, 4vw) 36px;
}

.rf-cat-hero__title {
	margin: 0 0 14px;
	font-size: clamp(34px, 4.4vw, 60px);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.rf-cat-hero .rf-cat-intro {
	margin: 0;
	max-width: 520px;
	color: var(--wp--preset--color--ink);
	font-size: 16px;
	line-height: 1.65;
}

.rf-cat-hero__link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 13px 24px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 3px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.rf-cat-hero__link:not(.rf-cat-hero__link--guide)::after {
	content: "↓";
	font-size: 13px;
}

.rf-cat-hero__link:hover,
.rf-cat-hero__link:focus-visible {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

@media (max-width: 899px) {
	.rf-cat-hero__media {
		min-height: 150px;
	}

	.rf-cat-hero__panel {
		padding: 20px 20px 24px;
	}

	.rf-cat-hero__title {
		font-size: 30px;
		margin-bottom: 8px;
	}

	.rf-cat-hero .rf-cat-intro {
		font-size: 15px;
	}

	.rf-cat-hero__link {
		margin-top: 14px;
		padding: 12px 18px;
	}
}

@media (min-width: 900px) {
	.rf-cat-hero {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		min-height: 200px;
	}

	.rf-cat-hero__panel {
		padding: 22px 48px;
	}

	.rf-cat-hero .rf-eyebrow {
		margin-bottom: 6px;
	}

	.rf-cat-hero__title {
		font-size: clamp(32px, 3.2vw, 46px);
		margin-bottom: 8px;
	}

	.rf-cat-hero .rf-cat-intro {
		max-width: 620px;
		font-size: 15px;
		line-height: 1.55;
	}

	.rf-cat-hero__link {
		margin-top: 14px;
	}
}

.rf-chips,
.rf-cat-hero {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1320px) !important;
	min-width: 0;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rf-chips {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rf-chips > ul {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-chips__more {
	position: relative;
}

.rf-chips__more summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-size: 14px;
	white-space: nowrap;
	cursor: pointer;
	list-style: none;
}

.rf-chips__more summary::-webkit-details-marker {
	display: none;
}

.rf-chips__more summary::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.rf-chips__more details[open] summary,
.rf-chips__more summary:hover {
	border-color: var(--wp--preset--color--ink);
}

.rf-chips__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	display: grid;
	gap: 2px;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 14px 30px rgba(17, 17, 16, 0.12);
}

.rf-chips__menu a {
	display: block !important;
	padding: 8px 12px !important;
	border: 0 !important;
	border-radius: 4px !important;
}

.rf-chips__menu a:hover {
	background: var(--wp--preset--color--cream);
}

/* Phones: no chips – the menu (☰) already lists every category. */
@media (max-width: 781px) {
	.rf-chips {
		display: none;
	}
}

.rf-chips a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s;
}

.rf-chips a:hover {
	border-color: var(--wp--preset--color--ink);
}

.rf-chips a[aria-current] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.rf-shop__filters {
	border-right: 1px solid var(--wp--preset--color--line);
	padding-right: 25px;
}

/* Desktop: the filter column stays put while the products scroll. */
@media (min-width: 782px) {
	.rf-shop__filters {
		position: sticky;
		top: 16px;
		align-self: flex-start;
		max-height: calc(100vh - 32px);
		overflow-y: auto;
		overscroll-behavior: contain;
		/* Scrollbar only shows while the pointer is over the filters. */
		scrollbar-width: thin;
		scrollbar-color: transparent transparent;
	}

	.rf-shop__filters:hover {
		scrollbar-color: var(--wp--preset--color--line) transparent;
	}
}

/* Sections are separated by their own border and padding, not by an extra gap. */
.rf-filters .wc-block-product-filters__overlay-content {
	gap: 0 !important;
}

/* Room for the price slider handles, which sit half outside the track. */
.rf-filters .wc-block-product-filter-price-slider {
	padding-inline: 10px;
}

.rf-filters .wc-block-product-filter-price-slider .text {
	margin-inline: -10px;
}

.rf-filters__title {
	margin: 0 0 var(--wp--preset--spacing--20);
}

.rf-filters .wp-block-woocommerce-product-filter-attribute,
.rf-filters .wp-block-woocommerce-product-filter-price,
.rf-filters .wp-block-woocommerce-product-filter-active {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 16px 0;
	margin: 0;
}

.rf-filter__heading {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	margin: 0 0 12px;
}

.rf-filters .wc-block-product-filter-checkbox-list__label {
	font-size: 13px;
}

.rf-filters .wc-block-product-filter-checkbox-list__input {
	accent-color: var(--wp--preset--color--accent);
}

.rf-filters .wc-block-product-filter-checkbox-list__count {
	display: none;
}

/* Show only the filters this category uses: hide a section with nothing to pick. */
.rf-filters .wp-block-woocommerce-product-filter-attribute:not(:has(input[type="checkbox"])) {
	display: none !important;
}

/* Accordion sections. Without JS every section stays open. */
.rf-filter.is-ready .rf-filter__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
	cursor: pointer;
	user-select: none;
}

.rf-filter.is-ready .rf-filter__heading::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin: 0 4px 4px 12px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.rf-filter.is-ready.is-open .rf-filter__heading::after {
	margin-bottom: -4px;
	transform: rotate(-135deg);
}

.rf-filter .rf-filter__heading:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.rf-filter.is-ready:not(.is-open) .rf-filter__heading {
	margin-bottom: 0;
}

.rf-filter.is-ready:not(.is-open) > :not(.rf-filter__heading) {
	display: none !important;
}

.rf-filter.is-ready.is-open > :not(.rf-filter__heading) {
	animation: rf-filter-open 0.22s ease-out;
}

@keyframes rf-filter-open {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}



.rf-filters .wc-block-product-filter-removable-chips__item {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--chip);
	background: transparent;
	font-size: 12px;
}

.rf-filters__help {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 16px;
}

.rf-toolbar select {
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	padding: 8px 10px;
	min-height: 40px;
}

.rf-toolbar p {
	margin: 0;
}

/* Products per row (3/4/5). The choice is set on <html> by assets/js/grid-switch.js. */
.rf-grid-switch {
	display: none;
	align-items: center;
	gap: 4px;
}

.rf-grid-switch [data-mcols] {
	display: none;
}

.rf-grid-switch__label {
	color: var(--wp--preset--color--muted);
	margin-right: 4px;
}

.rf-grid-switch button {
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	cursor: pointer;
}

.rf-grid-switch button[aria-pressed="true"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

@media (min-width: 1000px) {
	.rf-grid-switch {
		display: flex;
	}

	html.rf-cols-4 .rf-products .wc-block-product-template {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}

	html.rf-cols-5 .rf-products .wc-block-product-template {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 24px 16px;
	}

	html.rf-cols-5 .rf-products .wc-block-components-product-image img {
		padding: 12px;
	}

	html.rf-cols-5 .rf-card__title {
		font-size: 14px !important;
	}
}

.rf-pagination a,
.rf-pagination span {
	padding: 8px 12px;
	text-decoration: none;
}

.rf-pagination .current {
	border-bottom: 2px solid var(--wp--preset--color--accent);
	font-weight: 600;
}

.rf-cat-content:not(:has(.rf-guide, .rf-faq)) {
	display: none;
}

/* Category text: one compact column, collapsed to a few lines. */
.rf-guide {
	max-width: 760px;
}

.rf-guide__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 2.4vw, 28px);
}

/* FAQ: burgundy panel + cream answers, like the homepage buying guide. */
.rf-faq {
	display: grid;
	margin-top: var(--wp--preset--spacing--80);
}

.rf-faq__aside {
	padding: 40px 32px;
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--on-burgundy);
}

.rf-faq__aside .rf-eyebrow {
	color: #B1ADA4;
}

.rf-faq__aside h2 {
	margin: 0 0 14px;
	color: var(--wp--preset--color--on-burgundy);
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.08;
}

.rf-faq__aside p {
	color: #C6C3BC;
	line-height: 1.6;
}

.rf-faq__button {
	display: inline-block;
	margin-top: 8px;
	padding: 12px 24px;
	border-radius: 3px;
	background: var(--wp--preset--color--on-burgundy);
	color: var(--wp--preset--color--burgundy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.rf-faq__button:hover {
	background: var(--wp--preset--color--white);
}

.rf-faq__list {
	padding: 16px 32px 24px;
	background: var(--wp--preset--color--cream);
}

@media (min-width: 900px) {
	.rf-faq {
		grid-template-columns: minmax(0, 40%) minmax(0, 60%);
	}

	.rf-faq__aside {
		padding: 56px 48px;
	}

	.rf-faq__list {
		padding: 28px 40px 36px;
	}
}

.rf-cat-article {
	position: relative;
	font-size: 15px;
	line-height: 1.75;
	color: var(--wp--preset--color--ink);
}

.rf-cat-article.is-collapsed {
	max-height: 112px;
	overflow: hidden;
}

.rf-cat-article.is-collapsed::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 60px;
	background: linear-gradient(rgba(250, 249, 246, 0), var(--wp--preset--color--paper));
}

.rf-cat-article h2 {
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.2;
	margin: 2.2em 0 0.6em;
	color: var(--wp--preset--color--ink);
}

.rf-cat-article .wp-block-term-description > h2:first-child {
	margin-top: 0;
}

.rf-cat-article h3 {
	font-size: 19px;
	line-height: 1.3;
	margin: 1.8em 0 0.5em;
	color: var(--wp--preset--color--ink);
}

.rf-cat-article p,
.rf-cat-article li {
	margin: 0 0 1em;
}

.rf-cat-article ul,
.rf-cat-article ol {
	padding-left: 1.3em;
	margin: 0 0 1.2em;
}

.rf-cat-article a {
	color: var(--wp--preset--color--accent);
}

.rf-cat-article figure {
	margin: 1.6em 0;
}

.rf-cat-article img {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 4px;
	mix-blend-mode: multiply;
}

.rf-cat-article figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

@media (min-width: 782px) {
	.rf-cat-article .alignright {
		float: right;
		width: 260px;
		margin: 0.3em 0 1.2em 32px;
	}

	.rf-cat-article .alignleft {
		float: left;
		width: 260px;
		margin: 0.4em 32px 1.2em 0;
	}

	.rf-cat-article h2 {
		clear: both;
	}
}

.rf-cat-article__more {
	display: inline-block;
	margin: 10px 0 0;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--ink);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.rf-cat-article__more:hover {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.rf-faq__item + .rf-faq__item {
	border-top: 1px solid #D8D0C4;
}

.rf-faq__item summary h3 {
	font-size: 17px !important;
}

.rf-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	cursor: pointer;
	list-style: none;
}

.rf-faq__item summary::-webkit-details-marker {
	display: none;
}

.rf-faq__item summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

.rf-faq__item[open] summary::after {
	content: "–";
}

.rf-faq__item summary h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.rf-faq__answer {
	padding: 0 0 18px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--wp--preset--color--ink);
}

.rf-faq__answer p {
	margin: 0 0 0.8em;
}

@media (max-width: 781px) {
	.rf-shop__filters {
		border-right: 0;
		padding-right: 0;
		flex-basis: auto !important;
	}

	.rf-shop__filters .rf-filters__title {
		display: none;
	}

	.rf-products .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 22px 8px;
	}

	html.rf-mcols-1 .rf-products .wc-block-product-template {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.rf-products .wc-block-components-product-image img {
		padding: 12px;
	}

	/* Listing bar: column toggle on the left, sorting on the right. */
	.rf-toolbar {
		flex-wrap: nowrap !important;
		align-items: center;
		padding: 8px 0 !important;
		margin-bottom: var(--wp--preset--spacing--30) !important;
	}

	.rf-toolbar .wp-block-woocommerce-product-results-count {
		display: none;
	}

	.rf-toolbar__end {
		width: 100%;
		justify-content: space-between !important;
	}

	.rf-grid-switch {
		display: flex;
	}

	.rf-grid-switch__label,
	.rf-grid-switch [data-cols] {
		display: none;
	}

	.rf-grid-switch [data-mcols] {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		min-width: 36px;
		background: transparent !important;
		color: var(--wp--preset--color--muted) !important;
	}

	.rf-grid-switch [data-mcols][aria-pressed="true"] {
		color: var(--wp--preset--color--ink) !important;
	}

	.rf-toolbar .wp-block-woocommerce-catalog-sorting {
		min-width: 0;
		flex: 0 1 auto;
	}

	.rf-toolbar select {
		max-width: 210px;
		min-height: 36px;
		border: 0;
		padding-right: 0;
		text-align-last: right;
		text-transform: uppercase;
		font-size: 12px;
		letter-spacing: 0.06em;
		font-weight: 600;
		text-align: right;
	}

	/* "Filtrera" as a slim full-width bar. */
	.rf-shop__filters .wc-block-product-filters__open-overlay {
		width: 100%;
		justify-content: center;
		gap: 8px;
		padding: 12px;
		border: 1px solid var(--wp--preset--color--ink);
		border-radius: 3px;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}
}

/* ---------- Product page ---------- */

.rf-product__gallery .wp-block-woocommerce-product-image-gallery {
	max-width: none;
	width: 100%;
}

.rf-product__gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.rf-product__gallery .flex-viewport,
.rf-product__gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
	background: #EFEDE8;
}

/* Square, contained images so slides of different sizes never spill over the thumbnails. */
.rf-product__gallery .woocommerce-product-gallery__image img.wp-post-image,
.rf-product__gallery .woocommerce-product-gallery__image > a > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.rf-product__gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0;
	overflow: visible !important;
}

.rf-product__gallery .flex-control-thumbs li {
	width: 82px !important;
	float: none !important;
	margin: 0 !important;
	border: 1px solid var(--wp--preset--color--line);
	background: #F1EFEA;
}

.rf-product__gallery .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	mix-blend-mode: multiply;
	opacity: .6;
	transition: opacity .15s;
}

.rf-product__gallery .flex-control-thumbs li img.flex-active,
.rf-product__gallery .flex-control-thumbs li img:hover {
	opacity: 1;
}

.rf-product__gallery .flex-control-thumbs li:has(img.flex-active) {
	border-color: var(--wp--preset--color--ink);
}

.rf-product__price {
	margin-bottom: 0 !important;
}

.rf-product__lead {
	margin-top: var(--wp--preset--spacing--30);
}

.woocommerce div.product .rf-product__form form.cart .variations {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 4px;
	border: 0;
}

.woocommerce div.product .rf-product__form form.cart .variations,
.woocommerce div.product .rf-product__form form.cart .variations tbody {
	display: block;
}

.woocommerce div.product .rf-product__form form.cart .variations tr {
	display: block;
	margin-bottom: 14px;
}

.woocommerce div.product .rf-product__form form.cart .variations th,
.woocommerce div.product .rf-product__form form.cart .variations td {
	display: block;
	text-align: left;
	padding: 0;
	line-height: 1.3;
	border: 0;
}

.woocommerce div.product .rf-product__form form.cart .variations th {
	padding-bottom: 6px;
}

.rf-product__form .variations label {
	font-size: 14px;
	font-weight: 600;
}

.rf-product__form select,
.woocommerce div.product .rf-product__form form.cart .variations select {
	display: block;
	width: 100%;
	max-width: 420px;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 40px 0 14px;
	line-height: 1.3;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2324231F' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	color: var(--wp--preset--color--ink);
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.rf-product__form select:focus {
	border-color: var(--wp--preset--color--ink);
	outline: none;
}

.woocommerce div.product .rf-product__form .single_variation_wrap .woocommerce-variation:empty {
	display: none;
}

.rf-product__form .reset_variations {
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

.rf-product__form .woocommerce-variation-price {
	font-size: 18px;
	margin-bottom: 8px;
}

.rf-product__form form.cart:not(.variations_form),
.rf-product__form .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.rf-product__form .quantity input.qty {
	width: 70px;
	min-height: 48px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	background: transparent;
	text-align: center;
	font: inherit;
}

.rf-product__form .single_add_to_cart_button {
	flex: 1;
	min-height: 48px;
}

.rf-product__meta a {
	text-decoration: none;
}

.rf-specs table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.rf-specs th,
.rf-specs td {
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 12px 15px 12px 0;
	vertical-align: top;
	background: transparent !important;
}

.rf-specs th {
	width: 38%;
	font-weight: 600;
}

.rf-specs td {
	color: var(--wp--preset--color--ink);
}

.rf-specs td p {
	margin: 0;
}

.rf-overview__copy p {
	color: var(--wp--preset--color--ink);
}

.rf-answer-grid {
	padding: 28px 0;
}

.rf-answer-grid .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--wp--preset--color--line);
	padding-left: 30px;
}

.rf-answer-grid h3 {
	margin-top: 0;
}

@media (max-width: 781px) {
	.rf-answer-grid .wp-block-column + .wp-block-column {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--wp--preset--color--line);
		padding-top: 22px;
	}

	.rf-overview {
		padding: 25px 20px !important;
	}

	.rf-product__buy .rf-product__form .woocommerce-variation-add-to-cart,
	.rf-product__buy .rf-product__form form.cart:not(.variations_form) {
		position: sticky;
		bottom: 0;
		background: var(--wp--preset--color--paper);
		padding: 12px 0;
		z-index: 3;
	}
}

/* ---------- WooCommerce classic cart, checkout, account ---------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--button);
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 14px;
	font-weight: 600;
	padding: 14px 25px;
	min-height: 48px;
	line-height: 1.4;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .checkout-button:hover {
	background: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent);
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
	opacity: 0.5;
}

.rf-commerce .woocommerce table.shop_table {
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
}

.rf-commerce .woocommerce table.shop_table th,
.rf-commerce .woocommerce table.shop_table td {
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 16px 12px;
}

.rf-commerce .woocommerce table.shop_table img {
	width: 80px;
	background: #EEECE7;
	mix-blend-mode: multiply;
}

.rf-commerce .cart_totals,
.rf-commerce .woocommerce-checkout-review-order {
	background: #F0EEE8;
	padding: 28px;
}

.rf-commerce .cart_totals h2,
.rf-commerce #order_review_heading {
	font-size: 23px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .coupon input.input-text {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	background: transparent;
	padding: 12px;
	min-height: 44px;
	font: inherit;
}

.woocommerce form .form-row label {
	font-size: 14px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--wp--preset--color--accent) !important;
	background: #EEEBE4 !important;
	color: var(--wp--preset--color--ink);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--wp--preset--color--accent) !important;
}

/* ---------- Cart ---------- */

.rf-commerce .woocommerce:has(> .woocommerce-cart-form) {
	display: grid;
	gap: 28px 56px;
	align-items: start;
}

@media (min-width: 1000px) {
	.rf-commerce .woocommerce:has(> .woocommerce-cart-form) {
		grid-template-columns: minmax(0, 1fr) 400px;
	}

	.rf-commerce .woocommerce > .woocommerce-cart-form {
		grid-column: 1;
		grid-row: 2;
	}

	.rf-commerce .woocommerce > .cart-collaterals {
		grid-column: 2;
		grid-row: 2;
		position: sticky;
		top: 24px;
	}
}

@media (max-width: 999px) {
	.rf-commerce .woocommerce:has(> .woocommerce-cart-form) {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Phones: summary first, then the items. */
	.rf-commerce .woocommerce > .cart-collaterals {
		grid-row: 2;
	}

	.rf-commerce .woocommerce > .woocommerce-cart-form {
		grid-row: 3;
	}
}

.rf-commerce .cart-collaterals,
.rf-commerce .cart_totals {
	box-sizing: border-box;
	max-width: 100%;
}

.rf-commerce .woocommerce > * {
	min-width: 0;
}

.rf-commerce .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	grid-row: 1;
}

.rf-commerce .woocommerce > .woocommerce-notices-wrapper:empty {
	display: none;
}

.rf-commerce .cart-collaterals,
.rf-commerce .cart-collaterals .cart_totals {
	float: none !important;
	width: 100% !important;
	margin: 0;
}

/* Items */
.rf-commerce table.cart {
	width: 100%;
	margin: 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--line) !important;
}

.rf-commerce table.cart thead th {
	padding: 0 12px 12px !important;
	border-top: 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rf-commerce table.cart td {
	padding: 20px 12px !important;
	vertical-align: middle;
}

.rf-commerce table.cart td.product-thumbnail {
	width: 96px;
	padding-left: 0 !important;
}

.rf-commerce table.cart td.product-thumbnail img {
	width: 88px !important;
	height: 88px;
	object-fit: contain;
	padding: 6px;
	background: var(--wp--preset--color--surface) !important;
}

.rf-commerce table.cart td.product-name a {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;
}

.rf-commerce table.cart td.product-name a:hover {
	text-decoration: underline;
}

.rf-commerce table.cart td.product-name dl.variation {
	margin: 6px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}

.rf-commerce table.cart td.product-name dl.variation dt,
.rf-commerce table.cart td.product-name dl.variation dd,
.rf-commerce table.cart td.product-name dl.variation p {
	display: inline;
	margin: 0;
	font-weight: 400;
}

.rf-commerce table.cart td.product-name dl.variation dd::after {
	content: "";
	display: block;
}

.rf-commerce table.cart td.product-remove {
	width: 32px;
	padding-right: 0 !important;
}

.rf-commerce table.cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: var(--wp--preset--color--muted) !important;
	font-size: 20px;
	font-weight: 400;
}

.rf-commerce table.cart a.remove:hover {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
}

.rf-commerce table.cart .product-subtotal {
	font-weight: 600;
	text-align: right;
}

.rf-commerce table.cart thead .product-subtotal {
	text-align: right;
}

.rf-commerce table.cart .quantity input.qty {
	width: 64px;
	min-height: 40px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	background: transparent;
	text-align: center;
	font: inherit;
}

/* Coupon row; the update button is not needed (quantities update by themselves). */
.rf-commerce table.cart td.actions {
	padding: 18px 0 !important;
}

.rf-commerce table.cart td.actions .coupon {
	display: flex;
	gap: 8px;
}

.rf-commerce table.cart td.actions .coupon input.input-text {
	width: 200px !important;
	min-height: 44px;
	margin: 0 !important;
}

.rf-commerce table.cart td.actions .coupon button.button {
	min-height: 44px;
	padding: 10px 18px;
	background: transparent !important;
	color: var(--wp--preset--color--ink) !important;
	border: 1px solid var(--wp--preset--color--ink);
}

.rf-commerce table.cart td.actions .coupon button.button:hover {
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
}

.rf-commerce table.cart td.actions > button[name="update_cart"] {
	display: none !important;
}

/* Summary */
.rf-commerce .cart_totals {
	padding: 28px !important;
	background: var(--wp--preset--color--cream) !important;
}

.rf-commerce .cart_totals h2 {
	margin: 0 0 16px;
	font-size: 22px !important;
}

.rf-commerce .cart_totals table.shop_table {
	margin: 0 0 8px;
}

.rf-commerce .cart_totals table.shop_table th,
.rf-commerce .cart_totals table.shop_table td {
	padding: 12px 0 !important;
	border-top: 1px solid #DCD5CA !important;
	background: transparent !important;
	font-size: 15px;
}

.rf-commerce .cart_totals table.shop_table th {
	width: 40%;
	font-weight: 500;
}

.rf-commerce .cart_totals table.shop_table td {
	text-align: right;
}

.rf-commerce .cart_totals .order-total th,
.rf-commerce .cart_totals .order-total td {
	font-size: 18px;
	font-weight: 700;
}

.rf-commerce .cart_totals .order-total .includes_tax {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.rf-commerce .cart_totals #shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-commerce .cart_totals .woocommerce-shipping-destination,
.rf-commerce .cart_totals .shipping-calculator-button {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.rf-commerce .wc-proceed-to-checkout {
	padding: 8px 0 0 !important;
}

.rf-commerce .wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 16px 20px !important;
	font-size: 16px !important;
	text-align: center;
}

.rf-freeship {
	margin-bottom: 18px;
	font-size: 14px;
}

.rf-freeship p {
	margin: 0 0 8px;
}

.rf-freeship__bar {
	height: 6px;
	border-radius: 3px;
	background: #DCD5CA;
	overflow: hidden;
}

.rf-freeship__bar span {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--accent);
	transition: width 0.3s ease;
}

.rf-freeship.is-done .rf-freeship__bar span {
	background: #2E7D4F;
}

.rf-cart-trust {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.rf-cart-trust li {
	position: relative;
	padding: 4px 0 4px 22px;
}

.rf-cart-trust li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 9px;
	width: 10px;
	height: 5px;
	border-left: 1.5px solid var(--wp--preset--color--ink);
	border-bottom: 1.5px solid var(--wp--preset--color--ink);
	transform: rotate(-45deg);
}

/* Title lines up with the cart/checkout content */
.rf-commerce > .wp-block-post-title,
.rf-commerce > .wp-block-post-content {
	max-width: var(--wp--style--global--wide-size, 1320px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* The line total is enough; the unit price column only squeezes the name. */
.rf-commerce table.cart th.product-price,
.rf-commerce table.cart td.product-price {
	display: none;
}

.rf-commerce table.cart td.product-name {
	width: 100%;
	min-width: 180px;
}

.rf-commerce table.cart td,
.rf-commerce table.cart tr:nth-child(2n) td {
	background: transparent !important;
}

/* Shipping is 29 kr or free; the calculator and "updated in checkout" note only add noise. */
.rf-commerce .cart_totals .woocommerce-shipping-calculator,
.rf-commerce .cart_totals .woocommerce-shipping-destination {
	display: none !important;
}

.rf-commerce .wc-proceed-to-checkout a.rf-pay-button {
	text-decoration: none !important;
}

/* Payment choice (cart buttons, checkout switch) */
.rf-pay-title {
	margin: 4px 0 10px;
	font-size: 14px;
	font-weight: 600;
}

.rf-pay-buttons {
	display: grid;
	gap: 10px;
}

.rf-commerce .wc-proceed-to-checkout a.rf-pay-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0 !important;
	font-size: 15px !important;
}

/* Kustom Checkout (Klarna pink, black text) and Swish (dark, white text). */
.rf-commerce .wc-proceed-to-checkout a.rf-pay-button--kco {
	background: #FFB3C7 !important;
	border-color: #FFB3C7 !important;
	color: #17120F !important;
}

.rf-commerce .wc-proceed-to-checkout a.rf-pay-button--kco:hover {
	background: #FF9AB5 !important;
	border-color: #FF9AB5 !important;
}

.rf-commerce .wc-proceed-to-checkout a.rf-pay-button--swish {
	background: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
}

.rf-commerce .wc-proceed-to-checkout a.rf-pay-button--swish:hover {
	background: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent) !important;
}

/* ---------- Checkout ---------- */

/* Width: two columns for the regular (Swish) form, one centred column for Kustom. */
.rf-commerce:has(form.checkout) > * {
	max-width: 1100px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rf-commerce:has(form.kco-checkout) > * {
	max-width: 720px !important;
}

.rf-commerce:has(form.checkout) .wp-block-post-content > .woocommerce {
	max-width: none !important;
}

/* Payment choice tiles */
.rf-checkout-head {
	gap: 12px 24px;
	margin-bottom: 28px !important;
}

.rf-checkout-head .wp-block-post-title {
	margin: 0 !important;
}

.rf-pay-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
}

.rf-pay-switch__label {
	margin: 0 !important;
}

.rf-commerce:has(form.checkout) .wp-block-post-content > .wp-block-spacer {
	display: none;
}

.rf-commerce:has(.rf-pay-switch) .wp-block-woocommerce-store-notices:empty,
.rf-commerce:has(.rf-pay-switch) .woocommerce-notices-wrapper:empty {
	display: none;
}

.rf-pay-switch__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.rf-pay-switch__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rf-pay-switch__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px 8px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.rf-pay-switch__option:hover {
	border-color: var(--wp--preset--color--ink);
}

.rf-pay-switch__option[aria-current] {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.rf-pay-switch__option strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.rf-pay-switch__option small {
	display: none;
}

.rf-pay-switch__dot {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--wp--preset--color--muted);
	border-radius: 50%;
}

.rf-pay-switch__option[aria-current] .rf-pay-switch__dot {
	border-color: var(--wp--preset--color--ink);
	background: radial-gradient(circle, var(--wp--preset--color--ink) 0 4px, transparent 4.5px);
}

/* Coupon: a quiet link instead of the blue banner */
.rf-commerce .woocommerce-form-coupon-toggle .wc-block-components-notice-banner {
	margin: 0 0 20px;
	padding: 0 !important;
	border: 0;
	background: transparent;
	font-size: 14px;
}

.rf-commerce .woocommerce-form-coupon-toggle .wc-block-components-notice-banner > svg {
	display: none;
}

.rf-commerce .woocommerce-form-coupon-toggle a {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.rf-commerce form.checkout_coupon {
	display: flex;
	gap: 8px;
	margin: 0 0 24px !important;
	padding: 16px !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 6px !important;
}

.rf-commerce form.checkout_coupon p {
	margin: 0;
}

.rf-commerce form.checkout_coupon .form-row-first {
	flex: 1;
	width: auto;
	float: none;
}

.rf-commerce form.checkout_coupon .form-row-last {
	width: auto;
	float: none;
}

.rf-commerce form.checkout_coupon > p:not(.form-row) {
	display: none;
}

/* Regular checkout (Swish): fields left, order summary right */
@media (min-width: 900px) {
	.rf-commerce form.checkout:not(.kco-checkout) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 420px;
		grid-template-rows: auto 1fr;
		gap: 0 40px;
		align-items: start;
	}


	.rf-commerce form.checkout:not(.kco-checkout) > #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.rf-commerce form.checkout:not(.kco-checkout) > #order_review_heading {
		grid-column: 2;
		grid-row: 1;
	}

	.rf-commerce form.checkout:not(.kco-checkout) > #order_review {
		grid-column: 2;
		grid-row: 2;
	}

	.rf-commerce form.checkout:not(.kco-checkout) > .woocommerce-NoticeGroup {
		grid-column: 1 / -1;
	}
}

.rf-commerce #customer_details .col-1,
.rf-commerce #customer_details .col-2 {
	float: none;
	width: 100%;
	box-sizing: border-box;
	padding: 24px 28px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
}

.rf-commerce #customer_details .col-2 {
	margin-top: 16px;
}

/* Address fields in pairs */
.rf-commerce .woocommerce-billing-fields__field-wrapper,
.rf-commerce .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
}

.rf-commerce .woocommerce-billing-fields__field-wrapper > .form-row,
.rf-commerce .woocommerce-shipping-fields__field-wrapper > .form-row {
	grid-column: 1 / -1;
	float: none !important;
	width: auto !important;
}

.rf-commerce #billing_first_name_field,
.rf-commerce #billing_last_name_field,
.rf-commerce #billing_postcode_field,
.rf-commerce #billing_city_field,
.rf-commerce #billing_phone_field,
.rf-commerce #billing_email_field {
	grid-column: auto !important;
}

.rf-commerce #billing_country_field strong {
	display: block;
	padding: 4px 0;
	font-weight: 500;
}

@media (max-width: 600px) {
	.rf-commerce #customer_details .col-1,
	.rf-commerce #customer_details .col-2 {
		padding: 18px 16px 6px;
	}

	.rf-commerce #billing_phone_field,
	.rf-commerce #billing_email_field {
		grid-column: 1 / -1 !important;
	}
}

.rf-commerce form.checkout h3 {
	margin: 0 0 16px;
	font-size: 20px;
}

.rf-commerce form.checkout .form-row {
	margin: 0 0 14px;
	padding: 0;
}

.rf-commerce form.checkout .form-row input.input-text,
.rf-commerce form.checkout .form-row textarea,
.rf-commerce form.checkout .form-row select {
	width: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--white);
}

.rf-commerce form.checkout .form-row label {
	margin-bottom: 4px;
	font-weight: 500;
}

.rf-commerce #order_review_heading {
	margin: 0 !important;
	padding: 24px 28px 4px;
	border-radius: 6px 6px 0 0;
	background: var(--wp--preset--color--cream);
	font-size: 20px;
}

.rf-commerce .woocommerce-checkout-review-order {
	border-radius: 0 0 6px 6px;
}

.rf-commerce .woocommerce-checkout-review-order {
	padding: 12px 28px 28px !important;
	background: var(--wp--preset--color--cream) !important;
}

.rf-commerce .woocommerce-checkout-review-order-table {
	width: 100% !important;
	margin: 0 0 16px !important;
	border: 0 !important;
	table-layout: fixed;
}

.rf-commerce .woocommerce-checkout-review-order-table .product-name,
.rf-commerce .woocommerce-checkout-review-order-table tfoot th {
	width: 62%;
	text-align: left;
}

.rf-commerce #order_review {
	margin: 0 !important;
}

.rf-commerce .woocommerce-checkout-review-order-table th,
.rf-commerce .woocommerce-checkout-review-order-table td {
	padding: 10px 0 !important;
	border-top: 1px solid #DCD5CA !important;
	background: transparent !important;
	font-size: 14px;
	vertical-align: top;
}

.rf-commerce .woocommerce-checkout-review-order-table thead {
	display: none;
}

.rf-commerce .woocommerce-checkout-review-order-table tbody tr:first-child td {
	border-top: 0 !important;
}

.rf-commerce .woocommerce-checkout-review-order-table td.product-total,
.rf-commerce .woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
	white-space: nowrap;
}

.rf-commerce .woocommerce-checkout-review-order-table dl.variation {
	margin: 4px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 12px;
}

.rf-commerce .woocommerce-checkout-review-order-table dl.variation dt,
.rf-commerce .woocommerce-checkout-review-order-table dl.variation dd,
.rf-commerce .woocommerce-checkout-review-order-table dl.variation p {
	display: inline;
	margin: 0;
}

.rf-commerce .woocommerce-checkout-review-order-table .order-total th,
.rf-commerce .woocommerce-checkout-review-order-table .order-total td {
	font-size: 17px;
	font-weight: 700;
}

.rf-commerce .woocommerce-checkout-review-order-table .includes_tax {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.rf-commerce #shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Payment: the tiles above make the choice; show only the selected method's box. */
.rf-commerce #payment {
	background: transparent !important;
	border-radius: 0 !important;
}

.rf-commerce:has(.rf-pay-switch) #payment ul.payment_methods > li > input,
.rf-commerce:has(.rf-pay-switch) #payment ul.payment_methods > li > label {
	display: none !important;
}

.rf-commerce #payment ul.payment_methods {
	padding: 0 !important;
	border: 0 !important;
}

.rf-commerce #payment div.payment_box {
	margin: 0 !important;
	padding: 14px !important;
	border-radius: 4px;
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--ink) !important;
	font-size: 14px;
}

.rf-commerce #payment div.payment_box::before {
	display: none !important;
}

.rf-commerce #payment .place-order {
	padding: 16px 0 0 !important;
}

.rf-commerce #payment .woocommerce-privacy-policy-text,
.rf-commerce #payment .woocommerce-terms-and-conditions-wrapper {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.rf-commerce #payment #place_order {
	float: none !important;
	width: 100%;
	min-height: 46px;
	margin-top: 12px;
	font-size: 15px !important;
}

/* Kustom Checkout: the checkout first, then discount code and order note. */
.rf-commerce .woocommerce:has(form.kco-checkout) {
	display: flex;
	flex-direction: column;
}

.rf-commerce .woocommerce:has(form.kco-checkout) > form.kco-checkout {
	order: 1;
}

.rf-commerce .woocommerce:has(form.kco-checkout) > .woocommerce-form-coupon-toggle {
	order: 2;
	margin-top: 24px;
}

.rf-commerce .woocommerce:has(form.kco-checkout) > form.checkout_coupon {
	order: 3;
}

.rf-commerce #kco-wrapper {
	display: flex;
	flex-direction: column;
}

.rf-commerce #kco-wrapper > #kco-iframe {
	order: 1;
	margin: 0 !important;
	padding: 0 !important;
}

.rf-commerce form.kco-checkout,
.rf-commerce #kco-wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

.rf-commerce #kco-wrapper > #kco-order-review {
	order: 2;
	margin-top: 24px;
}

/* Kustom Checkout: our tiles replace its "pay with Swish" button */
#klarna-checkout-select-other,
.klarna-checkout-select-other-wrapper {
	display: none !important;
}

.rf-commerce #kco-wrapper .woocommerce-additional-fields h3 {
	font-size: 16px;
}

.rf-commerce #kco-wrapper .woocommerce-additional-fields textarea {
	min-height: 70px;
}

.rf-commerce #kco-iframe {
	margin-top: 8px;
	border-radius: 6px;
	overflow: hidden;
}

@media (max-width: 600px) {

}

/* Items as a list (all screen sizes): image | name | quantity | total | remove */
.rf-commerce .wp-block-post-content > .woocommerce {
	max-width: none !important;
	width: 100%;
}

.rf-commerce table.shop_table.cart,
.rf-commerce table.shop_table.cart tbody {
	display: block;
	width: 100%;
	border: 0 !important;
}

.rf-commerce table.shop_table.cart thead {
	display: none;
}

.rf-commerce table.shop_table.cart tr.cart_item {
	display: grid !important;
	grid-template-columns: 96px minmax(0, 1fr) auto 110px 32px;
	grid-template-areas: "img name qty total remove";
	align-items: center;
	gap: 0 24px;
	padding: 20px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.rf-commerce table.shop_table.cart tr.cart_item:first-child {
	border-top: 0;
}

.rf-commerce table.shop_table.cart tr.cart_item td {
	display: block !important;
	width: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: left !important;
}

.rf-commerce table.shop_table.cart tr.cart_item td::before {
	display: none !important;
}

.rf-commerce table.shop_table.cart td.product-thumbnail {
	grid-area: img;
}

.rf-commerce table.shop_table.cart td.product-thumbnail img {
	width: 96px !important;
	height: 96px;
}

.rf-commerce table.shop_table.cart td.product-name {
	grid-area: name;
	min-width: 0 !important;
	font-size: 15px;
	line-height: 1.4;
}

.rf-commerce table.shop_table.cart td.product-quantity {
	grid-area: qty;
}

.rf-commerce table.shop_table.cart td.product-subtotal {
	grid-area: total;
	text-align: right !important;
	font-size: 16px;
}

.rf-commerce table.shop_table.cart td.product-remove {
	grid-area: remove;
	text-align: right !important;
}

.rf-commerce table.shop_table.cart tr:not(.cart_item) {
	display: block;
	border-top: 1px solid var(--wp--preset--color--line);
}

.rf-commerce table.shop_table.cart tr:not(.cart_item) td.actions {
	display: block;
	padding: 20px 0 0 !important;
	border: 0 !important;
}

.rf-commerce table.shop_table.cart td.actions .coupon {
	float: none !important;
	width: 100%;
}

.rf-commerce table.cart td.actions .coupon input.input-text {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
}

.rf-commerce .wc-proceed-to-checkout a.rf-pay-button,
.rf-commerce .wc-proceed-to-checkout a.checkout-button {
	box-sizing: border-box;
	width: 100%;
}

.rf-commerce table.shop_table.cart tr.cart_item td.product-price {
	display: none !important;
}

.rf-commerce table.cart td.actions .coupon {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 8px;
}

.rf-commerce table.cart td.actions .coupon button.button {
	width: auto !important;
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Phones and tablets: payment choice pinned to the bottom of the screen. */
@media (max-width: 999px) {
	body.woocommerce-cart {
		padding-bottom: 130px;
	}

	.rf-commerce .rf-pay {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--paper);
		box-shadow: 0 -8px 24px rgba(17, 17, 16, 0.12);
	}

	.rf-commerce .rf-pay .rf-pay-title {
		margin: 0 0 8px;
		font-size: 13px;
	}

	.rf-commerce .rf-pay .rf-pay-buttons {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.rf-commerce .wc-proceed-to-checkout .rf-pay a.rf-pay-button {
		min-height: 44px;
		padding: 8px !important;
		font-size: 14px !important;
	}
}

@media (max-width: 640px) {
	.rf-commerce table.shop_table.cart tr.cart_item {
		grid-template-columns: 80px minmax(0, 1fr) auto;
		grid-template-areas:
			"img name remove"
			"img qty total";
		gap: 10px 14px;
		padding: 16px 0;
	}

	.rf-commerce table.shop_table.cart td.product-thumbnail img {
		width: 80px !important;
		height: 80px;
	}

	.rf-commerce table.shop_table.cart td.product-remove {
		align-self: start;
	}

	.rf-commerce table.shop_table.cart td.product-subtotal {
		justify-self: end;
		white-space: nowrap;
	}

	.rf-commerce table.cart td.actions .coupon input.input-text {
		flex: 1;
		width: auto !important;
	}
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Content pages ---------- */

.rf-guide-image img,
.rf-about-photo img {
	background: var(--wp--preset--color--white);
}

.wp-block-post-content h2 {
	margin-top: var(--wp--preset--spacing--60);
}

.wp-block-post-content h3 {
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: 6px;
}

.wp-block-post-content h3 + p {
	margin-top: 0;
}

/* ---------- Hero banners (slider) ---------- */

.rf-hero-slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.rf-hero-slider::-webkit-scrollbar {
	display: none;
}

.rf-hero-slider > .rf-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	margin: 0 !important;
}

.rf-hero-slider:focus-visible {
	outline-offset: -4px;
}

.rf-hero-wrap {
	position: relative;
	margin-top: 0 !important;
}

.rf-hero-controls {
	position: absolute;
	left: max(16px, 5vw);
	bottom: 22px;
	display: flex;
	align-items: center;
	gap: 2px;
	z-index: 2;
}

.rf-hero-dot {
	width: 34px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	position: relative;
}

.rf-hero-dot::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 50%;
	height: 2px;
	background: rgba(36, 35, 31, 0.25);
	transition: background 0.2s;
}

.rf-hero-dot:hover::after {
	background: rgba(36, 35, 31, 0.5);
}

.rf-hero-dot[aria-current="true"]::after {
	background: var(--wp--preset--color--ink);
}

.rf-hero-pause {
	width: 32px;
	height: 32px;
	margin-left: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: rgba(250, 249, 246, 0.7);
	color: var(--wp--preset--color--ink);
	border: 1px solid rgba(36, 35, 31, 0.15);
	border-radius: 999px;
	cursor: pointer;
}

.rf-hero-pause:hover {
	background: var(--wp--preset--color--paper);
}

/* Desktop header: logo, menu and icons on one row (wide screens only, so the menu never wraps). */
@media (min-width: 1280px) {
	.rf-header {
		position: relative;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 32px;
		box-sizing: border-box;
		padding: 14px max(var(--wp--style--root--padding-left, 16px), calc((100% - 1320px) / 2)) !important;
	}

	.rf-header > .rf-header__top {
		display: contents;
	}

	.rf-header .rf-header__top > .wp-block-site-logo {
		grid-column: 1;
		grid-row: 1;
		margin: 0 !important;
	}

	.rf-header .rf-header__top > .rf-header__actions {
		grid-column: 3;
		grid-row: 1;
		margin: 0 !important;
	}

	.rf-header > .wp-block-group:has(.rf-header__nav) {
		grid-column: 2;
		grid-row: 1;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		justify-content: center;
		position: static;
	}

	/* The mega menu centres on the whole header, not on the menu column. */
	.rf-header .rf-header__nav,
	.rf-header .rf-header__nav .wp-block-navigation__responsive-container,
	.rf-header .rf-header__nav .wp-block-navigation__responsive-container-content,
	.rf-header .rf-header__nav .wp-block-navigation__container {
		position: static !important;
	}

	.rf-header__nav .rf-mega > .wp-block-navigation__submenu-container {
		top: 100% !important;
	}

	/* One line always: the gap shrinks on narrower screens instead of the menu wrapping. */
	.rf-header__nav .wp-block-navigation__container {
		flex-wrap: nowrap !important;
		gap: clamp(16px, 1.5vw, 28px) !important;
	}

	.rf-header__nav .wp-block-navigation__container > .wp-block-navigation-item {
		white-space: nowrap;
	}

	/* Top-level menu in small capitals */
	.rf-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}
}

/* ---------- Mega menu (header) ---------- */

@media (min-width: 1100px) {
	.rf-header__nav .rf-mega {
		position: static;
	}

	.rf-header__nav .rf-mega > .wp-block-navigation__submenu-container {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(160px, 1fr));
		gap: 8px 40px;
		left: 50% !important;
		transform: translateX(-50%);
		width: min(1000px, 92vw) !important;
		padding: 28px 32px !important;
		background: var(--wp--preset--color--paper) !important;
		border: 1px solid var(--wp--preset--color--line) !important;
		box-shadow: 0 18px 40px rgba(36, 35, 31, 0.08);
		z-index: 50;
	}

	.rf-header__nav .rf-mega__col {
		position: static;
	}

	.rf-header__nav .rf-mega:focus-within > .wp-block-navigation__submenu-container {
		visibility: visible !important;
		opacity: 1 !important;
		height: auto !important;
		overflow: visible !important;
	}

	.rf-header__nav .rf-mega__col > .wp-block-navigation-item__content {
		font-size: 12px;
		font-weight: 700;
		letter-spacing: var(--wp--custom--letter-spacing--label);
		text-transform: uppercase;
		color: var(--wp--preset--color--accent);
		padding: 0 0 8px !important;
		pointer-events: none;
	}

	.rf-header__nav .rf-mega__col > .wp-block-navigation__submenu-icon {
		display: none;
	}

	.rf-header__nav .rf-mega__col > .wp-block-navigation__submenu-container {
		position: static !important;
		visibility: visible !important;
		opacity: 1 !important;
		height: auto !important;
		width: auto !important;
		min-width: 0 !important;
		overflow: visible !important;
		border: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		transform: none !important;
	}

	.rf-header__nav .rf-mega__col .wp-block-navigation-item__content {
		padding: 5px 0 !important;
		font-size: 14px;
	}

	/* Keep each column's heading and links stacked at the top. */
	.rf-header__nav .rf-mega__col {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		align-self: start;
	}

	.rf-header__nav .rf-mega__col > .wp-block-navigation-item__content,
	.rf-header__nav .rf-mega__col > .wp-block-navigation__submenu-container {
		flex: 0 0 auto !important;
	}

	.rf-header__nav .rf-mega__all {
		grid-column: 1 / -1;
		border-top: 1px solid var(--wp--preset--color--line);
		margin-top: 12px;
		padding-top: 12px;
	}

	.rf-header__nav .rf-mega__all > a {
		padding-left: 0 !important;
		font-weight: 600;
		text-decoration: underline !important;
		text-underline-offset: 5px;
	}

	.rf-header__nav .rf-mega .wp-block-navigation-item:last-child > a {
		color: inherit;
	}
}

.rf-header__nav .wp-block-navigation__container > .wp-block-navigation-item:last-child > a {
	color: var(--wp--preset--color--accent);
}

/* The Näsa tile photo has its subject on the left. */
.rf-tiles .rf-tile:nth-child(3) .rf-tile__image img {
	object-position: 30% center;
}

/* Banner copy sits on the side padding (max(16px, 5vw)), full width. */
.rf-slide .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
}

.rf-slide .rf-slide__copy {
	max-width: 520px !important;
}

.rf-slide--left .rf-slide__copy {
	margin-left: 0 !important;
	margin-right: auto !important;
}

.rf-slide--right .rf-slide__copy {
	margin-left: auto !important;
	margin-right: 0 !important;
}

@media (max-width: 781px) {
	.rf-slide--right .rf-slide__copy {
		margin-left: 0 !important;
	}
}

/* ---------- Menu overlay (below 1100px) ---------- */

.rf-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper) !important;
	color: var(--wp--preset--color--ink) !important;
	padding: 20px max(16px, 5vw) 40px !important;
}

.rf-header__nav .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: 36px !important;
}

.rf-header__nav .is-menu-open .wp-block-navigation__container,
.rf-header__nav .is-menu-open .wp-block-navigation-item,
.rf-header__nav .is-menu-open .wp-block-navigation__submenu-container {
	align-items: stretch !important;
	width: 100%;
	gap: 0 !important;
}

/* Top level: large rows with dividers. */
.rf-header__nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: block;
	padding: 14px 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 18px;
	font-weight: 600;
	text-align: left;
}

/* Piercingsmycken: one row that folds open (assets/js/menu.js) to all categories in two
   columns, without the group headings; thin lines keep the former groups apart. */
.rf-header__nav .is-menu-open .rf-mega > .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}

.rf-header__nav .is-menu-open .rf-mega > .wp-block-navigation-item__content::after {
	content: "";
	width: 9px;
	height: 9px;
	margin: -5px 6px 0 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.rf-header__nav .is-menu-open .rf-mega.is-expanded > .wp-block-navigation-item__content::after {
	margin-top: 5px;
	transform: rotate(-135deg);
}

.rf-header__nav .is-menu-open .rf-mega > .wp-block-navigation__submenu-container {
	display: none !important;
	padding: 2px 0 12px !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rf-header__nav .is-menu-open .rf-mega.is-expanded > .wp-block-navigation__submenu-container {
	display: block !important;
}

.rf-header__nav .is-menu-open .rf-mega__col > .wp-block-navigation-item__content {
	display: none !important;
}

.rf-header__nav .is-menu-open .rf-mega__col > .wp-block-navigation__submenu-container {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 16px;
	padding: 6px 0 !important;
	border-bottom: 1px solid #ECE8E1;
}

.rf-header__nav .is-menu-open .rf-mega__col > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 9px 0 !important;
	font-size: 15px;
	font-weight: 400;
	text-align: left;
}

.rf-header__nav .is-menu-open .rf-mega__all {
	display: block;
	padding-top: 6px;
}

.rf-header__nav .is-menu-open .rf-mega__all > a {
	padding: 10px 0 0 !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 5px;
}

.rf-header__nav .is-menu-open .wp-block-navigation__submenu-icon {
	display: none !important;
}

.rf-header__nav .is-menu-open .rf-mega__col {
	display: block !important;
}

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

/* ---------- Guides ---------- */

.rf-guide-hero .rf-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.rf-guide-layout {
	display: grid;
	gap: 32px 80px;
}

@media (min-width: 1000px) {
	.rf-guide-layout {
		grid-template-columns: 260px minmax(0, 720px);
		justify-content: space-between;
	}

	.rf-guide-layout:not(:has(.rf-toc)) {
		grid-template-columns: minmax(0, 760px);
		justify-content: center;
	}

	.rf-toc {
		position: sticky;
		top: 24px;
		align-self: start;
	}
}

.rf-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--wp--preset--color--line);
}

.rf-toc li a {
	display: block;
	padding: 7px 0 7px 16px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}

.rf-toc li a:hover {
	color: var(--wp--preset--color--ink);
	border-left-color: var(--wp--preset--color--accent);
}

.rf-guide-content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--wp--preset--color--ink);
}

.rf-guide-content > * + * {
	margin-top: 1em;
}

.rf-guide-content h2 {
	margin: 2.2em 0 0.6em;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.15;
	color: var(--wp--preset--color--ink);
	scroll-margin-top: 90px;
}

.rf-guide-content > h2:first-child {
	margin-top: 0;
}

.rf-guide-content h3 {
	margin: 1.6em 0 0.4em;
	font-size: 20px;
	color: var(--wp--preset--color--ink);
}

.rf-guide-content ul,
.rf-guide-content ol {
	padding-left: 1.3em;
}

.rf-guide-content li + li {
	margin-top: 0.4em;
}

.rf-guide-content a {
	color: var(--wp--preset--color--accent);
}

.rf-guide-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.rf-guide-content th,
.rf-guide-content td {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}

.rf-guide-content .rf-note {
	padding: 16px 20px;
	background: var(--wp--preset--color--cream);
	border-left: 3px solid var(--wp--preset--color--accent);
	font-size: 15px;
}

.rf-guide-products {
	margin-top: var(--wp--preset--spacing--80);
}

.rf-guide-products__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 20px;
}

.rf-guide-products__head h2 {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 32px);
}

.rf-guide-products__all {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	font-size: 14px;
}

.rf-guide-products ul,
.rf-guides {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.rf-guide-products ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px 20px;
	}
}

.rf-guide-products a,
.rf-guides a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.rf-guide-products__img {
	display: block;
	aspect-ratio: 1 / 1.12;
	margin-bottom: 8px;
	background: var(--wp--preset--color--surface);
	overflow: hidden;
}

.rf-guide-products__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
	mix-blend-mode: multiply;
}

.rf-guide-products__name {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 15px;
}

.rf-guide-products__price {
	font-weight: 600;
	font-size: 14px;
}

.rf-guides-head {
	max-width: 760px;
	margin-bottom: var(--wp--preset--spacing--60);
}

.rf-guides-head__title {
	margin: 0 0 12px;
	font-size: clamp(36px, 4.6vw, 58px);
	line-height: 1.04;
}

.rf-guides-head__text {
	color: var(--wp--preset--color--muted);
	font-size: 17px;
}

@media (min-width: 900px) {
	.rf-guides {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 24px;
	}
}

.rf-guides__img {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--cream);
}

.rf-guides__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 65% 40%;
	transition: transform 0.4s ease;
}

.rf-guides a:hover .rf-guides__img img {
	transform: scale(1.03);
}

.rf-guides__title {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.rf-guides__text {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	line-height: 1.55;
}

.rf-guides__more {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.rf-product__guide {
	margin: 6px 0 0;
	font-size: 14px;
}

.rf-product__guide a {
	color: var(--wp--preset--color--ink);
	text-underline-offset: 4px;
}

/* ---------- Instant search (assets/js/search.js) ---------- */

.rf-search-results {
	position: absolute;
	top: calc(100% + 50px);
	right: 0;
	z-index: 61;
	box-sizing: border-box;
	width: min(480px, calc(100vw - 32px));
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 18px 40px rgba(17, 17, 16, 0.14);
	text-align: left;
	/* The header search block sets line-height 0; without this the names render 0px tall. */
	line-height: 1.4;
	font-size: 14px;
	white-space: normal;
}

.rf-search-results[hidden],
.rf-header__search.wp-block-search__searchfield-hidden .rf-search-results {
	display: none;
}

.rf-search-results__label {
	margin: 8px 6px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.rf-search-results ul {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.rf-search-results__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 6px !important;
}

.rf-search-results__cats a {
	display: inline-block;
	padding: 7px 14px;
	line-height: 1.2;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-size: 13px;
	text-decoration: none;
}

.rf-search-results__products a {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 8px 6px;
	border-radius: 4px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.rf-search-results__products a:hover,
.rf-search-results__products a:focus,
.rf-search-results__cats a:hover,
.rf-search-results__cats a:focus {
	background: var(--wp--preset--color--cream);
	outline: none;
}

.rf-search-results__products img,
.rf-search-results__noimg {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	object-fit: contain;
	background: var(--wp--preset--color--surface);
	mix-blend-mode: multiply;
}

.rf-search-results__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
}

.rf-search-results__price {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.rf-search-results__all {
	display: block;
	padding: 10px 6px 4px;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
	font-size: 14px;
	font-weight: 600;
}

.rf-search-results__empty {
	margin: 6px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.rf-dym {
	margin: 0 0 16px;
	font-size: 15px;
}

.rf-dym a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
}


/* ---------- Product card button ---------- */

.rf-card__button {
	margin-top: 10px !important;
}

.rf-card__button .wp-block-button__link,
.rf-card__button .wc-block-components-product-button__button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 8px 12px !important;
	border: 1px solid var(--wp--preset--color--ink) !important;
	border-radius: 3px;
	background: var(--wp--preset--color--ink) !important;
	color: var(--wp--preset--color--white) !important;
	font-size: 12px !important;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}

/* Shopping-bag icon, same shape as the cart icon in the header. */
.rf-card__button .wp-block-button__link::before,
.rf-card__button .wc-block-components-product-button__button::before {
	content: "";
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7V6a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7V6a3 3 0 0 1 6 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rf-card__button .wp-block-button__link:hover,
.rf-card__button .wc-block-components-product-button__button:hover {
	background: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--white) !important;
}

.rf-card__button .added_to_cart,
.rf-card__button .wc-block-components-product-button__button + a {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	text-align: center;
	color: var(--wp--preset--color--accent);
}

@media (max-width: 781px) {
	.rf-card__button .wp-block-button__link,
	.rf-card__button .wc-block-components-product-button__button {
		min-height: 36px;
		padding: 6px 8px !important;
		font-size: 12px !important;
	}
}

/* ---------- Quick add popup (assets/js/quick-add.js) ---------- */

.rf-quick {
	box-sizing: border-box;
	width: min(820px, 94vw);
	max-height: 90vh;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 24px 60px rgba(17, 17, 16, 0.3);
	overflow: auto;
}

.rf-quick::backdrop {
	background: rgba(17, 17, 16, 0.55);
}

.rf-quick__loading {
	margin: 0;
	padding: 60px 24px;
	text-align: center;
	color: var(--wp--preset--color--muted);
}

.rf-quick__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.rf-quick__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.rf-quick__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--surface);
}

.rf-quick__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.rf-quick__body {
	padding: 28px 28px 24px;
}

.rf-quick__title {
	margin: 0 36px 8px 0;
	font-size: 22px;
	line-height: 1.25;
}

.rf-quick__price {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 700;
}

.rf-quick__price del {
	margin-right: 6px;
	color: var(--wp--preset--color--muted);
	font-size: 0.72em;
	font-weight: 400;
}

.rf-quick__price ins {
	color: #C8102E;
	text-decoration: none;
}

.rf-quick__attr {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.rf-quick__attr legend {
	margin-bottom: 8px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
}

.rf-quick__attr legend span {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.rf-quick__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rf-quick__option {
	min-width: 44px;
	padding: 8px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.rf-quick__option:hover {
	border-color: var(--wp--preset--color--ink);
}

.rf-quick__option[aria-pressed="true"] {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.rf-quick__option:disabled {
	color: #B5B1AA;
	text-decoration: line-through;
	cursor: not-allowed;
}

.rf-quick__note,
.rf-quick__error {
	margin: 0 0 12px;
	font-size: 13px;
	color: #C8102E;
}

.rf-quick__buy {
	display: flex;
	gap: 10px;
	margin-top: 8px;
}

.rf-quick__qty {
	width: 70px;
	min-height: 48px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 3px;
	text-align: center;
	font: inherit;
}

.rf-quick__add {
	flex: 1;
	min-height: 48px;
	border: 0;
	border-radius: 3px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.rf-quick__add:hover:not(:disabled) {
	background: var(--wp--preset--color--accent);
}

.rf-quick__add:disabled {
	background: #8E8A83;
	cursor: not-allowed;
}

.rf-quick__more {
	display: inline-block;
	margin-top: 14px;
	color: var(--wp--preset--color--ink);
	font-size: 14px;
}

.rf-quick__done {
	padding: 48px 28px 32px;
	text-align: center;
}

.rf-quick__done-title {
	margin: 0 0 6px;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 22px;
}

.rf-quick__done-title::before {
	content: "✓";
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: #2E7D4F;
	color: #fff;
	font-size: 22px;
	line-height: 44px;
}

.rf-quick__done-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
}

.rf-quick__continue,
.rf-quick__checkout {
	min-width: 180px;
	padding: 13px 20px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.rf-quick__continue {
	border: 1px solid var(--wp--preset--color--ink);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-family: inherit;
}

.rf-quick__checkout {
	border: 1px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* Phones: a sheet from the bottom. */
@media (max-width: 640px) {
	.rf-quick {
		width: 100vw;
		max-width: 100vw;
		max-height: 88vh;
		margin: auto 0 0;
		border-radius: 14px 14px 0 0;
	}

	.rf-quick__grid {
		grid-template-columns: 1fr;
	}

	.rf-quick__media img {
		max-height: 34vh;
	}

	.rf-quick__body {
		padding: 20px 16px 24px;
	}
}

/* ---------- Login / registration ---------- */

.rf-auth-page main {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.rf-auth-page main > .wp-block-post-title,
.rf-auth-page main > .wp-block-post-featured-image {
	display: none;
}

.rf-auth-page .wp-block-post-content > * {
	max-width: var(--wp--style--global--wide-size);
}

.rf-auth {
	display: grid;
	min-height: 640px;
	margin: 0 auto;
}

.rf-auth__media {
	display: none;
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}

.rf-auth__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rf-auth__quote {
	position: absolute;
	left: 40px;
	bottom: 36px;
	margin: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.02em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.rf-auth__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 0 64px;
}

.rf-auth__inner {
	width: 100%;
	max-width: 500px;
}

.rf-auth__title {
	font-size: clamp(30px, 4vw, 40px);
	letter-spacing: -.02em;
	margin: 0 0 10px;
}

.rf-auth__lead {
	color: var(--wp--preset--color--muted);
	margin: 0 0 32px;
	line-height: 1.55;
}

.woocommerce form.rf-auth__form {
	border: 0;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

.woocommerce .rf-auth__form .form-row {
	padding: 0;
	margin: 0 0 18px;
}

.woocommerce .rf-auth__form .form-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}

.woocommerce .rf-auth__form .form-row input.input-text {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 0 16px;
	border-radius: 6px;
	border-color: #CFCBC3;
	background: var(--wp--preset--color--white);
	font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
}

.woocommerce .rf-auth__form .form-row input.input-text:focus {
	outline: none;
	border-color: var(--wp--preset--color--ink);
	box-shadow: 0 0 0 3px rgba(17, 17, 16, .08);
}

.woocommerce .rf-auth__form .password-input {
	display: block;
	position: relative;
}

.woocommerce .rf-auth__form .show-password-input {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345433E' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat;
	font-size: 0;
	cursor: pointer;
}

.woocommerce .rf-auth__form .show-password-input::before,
.woocommerce .rf-auth__form .show-password-input::after {
	display: none;
}

.woocommerce .rf-auth__form .show-password-input.display-password {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345433E' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
}

.woocommerce .rf-auth__form .password-input input.input-text {
	padding-right: 52px;
}

.rf-auth__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 4px 0 24px;
	font-size: 14px;
}

.rf-auth__row label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.rf-auth__row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--wp--preset--color--ink);
	margin: 0;
}

.rf-auth__link {
	color: var(--wp--preset--color--ink);
	text-underline-offset: 3px;
	font-size: 14px;
}

.woocommerce .rf-auth__submit,
.rf-auth__secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	box-sizing: border-box;
}

.woocommerce .rf-auth__submit,
.woocommerce form.rf-auth__form .rf-auth__submit {
	float: none;
	margin-right: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	border: 0;
	margin-top: 8px;
}

.woocommerce .rf-auth__submit:hover {
	background: #33312C;
	color: var(--wp--preset--color--white);
}

.rf-auth__secondary {
	border: 1px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	transition: background .15s, color .15s;
}

.rf-auth__secondary:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.rf-auth__switch {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.rf-auth__switch p {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

.rf-auth__hint,
.rf-auth .woocommerce-privacy-policy-text p {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	line-height: 1.55;
	margin: 0 0 16px;
}

.rf-auth__perks {
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
	display: grid;
	gap: 10px;
	font-size: 14px;
}

.rf-auth__perks li {
	display: flex;
	gap: 10px;
	align-items: center;
}

.rf-auth__perks li::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 50%;
	background: var(--wp--preset--color--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111110' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.rf-auth__back {
	margin: 24px 0 0;
	text-align: center;
}

.rf-auth .woocommerce-error,
.rf-auth .woocommerce-message,
.rf-auth .woocommerce-info {
	border-radius: 6px;
	margin: 0 0 24px;
	font-size: 14px;
}

@media (min-width: 900px) {
	.rf-auth {
		grid-template-columns: 1fr 1fr;
		margin: 40px auto 72px;
		border-radius: 8px;
		overflow: hidden;
		background: var(--wp--preset--color--white);
		border: 1px solid var(--wp--preset--color--line);
	}

	.rf-auth__media {
		display: block;
	}

	.rf-auth__panel {
		padding: 64px 48px;
	}
}

/* Old blog post: link to the newer guide. */
.rf-post-guide {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	padding: 14px 18px;
	border-radius: 6px;
	background: var(--wp--preset--color--cream);
	font-size: 14px;
}

.rf-post-guide a {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	text-underline-offset: 3px;
}

/* Blog post byline: author · published · updated */
.rf-post-meta {
	gap: 4px 0 !important;
	margin-top: 12px;
}

.rf-post-meta > * + *::before {
	content: "·";
	margin: 0 8px;
}

.rf-post-meta .wp-block-post-author-name::before {
	content: "Av ";
}

.rf-post-meta .wp-block-post-date__modified-date::before {
	content: "· Uppdaterad ";
	margin: 0 0 0 8px;
}

.rf-guide-byline {
	margin: 0 0 20px;
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

/* ---------- Product page accordion (specs, more text, delivery) ---------- */

.rf-accordion {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rf-accordion__item {
	border-top: 1px solid var(--wp--preset--color--line);
	margin: 0 !important;
}

.rf-accordion__item > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.rf-accordion__item > summary::-webkit-details-marker {
	display: none;
}

.rf-accordion__item > summary::after {
	content: "";
	width: 9px;
	height: 9px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform .2s;
}

.rf-accordion__item[open] > summary::after {
	transform: rotate(-135deg) translateY(-2px);
}

.rf-accordion__item > :not(summary) {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.rf-accordion .wp-block-woocommerce-product-specifications table,
.rf-accordion table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.rf-accordion .wp-block-table {
	margin: 0 0 12px;
}

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

.rf-accordion .wp-block-table tr:last-child th,
.rf-accordion .wp-block-table tr:last-child td {
	border-bottom: 0;
}

.rf-accordion th {
	width: 45%;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.rf-accordion td a {
	color: inherit;
	text-decoration: none;
}

.rf-accordion__list {
	padding-left: 18px;
	display: grid;
	gap: 6px;
}

/* "Bra att veta" questions in the product overview */
.rf-qa {
	padding: 16px 0;
	border-top: 1px solid rgba(17, 17, 16, .1);
}

.rf-qa:last-of-type {
	border-bottom: 1px solid rgba(17, 17, 16, .1);
}

.rf-qa h3 {
	margin: 0 0 6px;
	font-weight: 500;
}

.rf-qa p {
	margin: 0;
	font-size: 15px;
}

.rf-overview__copy .wp-block-woocommerce-product-description {
	margin-top: 20px;
}

/* Icons for the three "Bra att veta" questions: size, shipping, returns */
.rf-qa {
	position: relative;
	padding-left: 52px;
}

.rf-qa::before {
	content: "";
	position: absolute;
	left: 0;
	top: 16px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
}

.rf-qa::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 25px;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--ink);
	-webkit-mask: var(--rf-qa-icon) center / contain no-repeat;
	mask: var(--rf-qa-icon) center / contain no-repeat;
}

.rf-qa:nth-of-type(1) {
	--rf-qa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='10' rx='1.5'/%3E%3Cpath d='M6 7v4M10 7v3M14 7v4M18 7v3'/%3E%3C/svg%3E");
}

.rf-qa:nth-of-type(2) {
	--rf-qa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M2 6h12v10H2zM14 9h4l3 3.5V16h-7z'/%3E%3Ccircle cx='6' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}

.rf-qa:nth-of-type(3) {
	--rf-qa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10H8'/%3E%3Cpath d='M8 5L4 9l4 4'/%3E%3C/svg%3E");
}

/* ---------- Product page: sticky add-to-cart bar on phones ---------- */

.rf-sticky-buy {
	display: none;
}

@media (max-width: 781px) {
	.rf-sticky-buy {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: flex;
		gap: 10px;
		align-items: center;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--wp--preset--color--paper);
		border-top: 1px solid var(--wp--preset--color--line);
		box-shadow: 0 -6px 20px rgba(17, 17, 16, .06);
		transform: translateY(110%);
		transition: transform .25s ease;
	}

	.rf-sticky-buy.is-visible {
		transform: none;
	}

	.has-sticky-buy .rf-footer {
		padding-bottom: 96px !important;
	}

	.rf-sticky-buy__qty {
		display: flex;
		align-items: center;
		width: 100px;
		height: 48px;
		border: 1px solid #CFCBC3;
		border-radius: 6px;
		background: var(--wp--preset--color--white);
		flex: none;
	}

	.rf-sticky-buy__qty button {
		width: 32px;
		height: 100%;
		border: 0;
		background: none;
		font-size: 18px;
		color: var(--wp--preset--color--ink);
		cursor: pointer;
	}

	.rf-sticky-buy__qty input {
		width: 36px;
		min-width: 0;
		padding: 0;
		border: 0;
		background: none;
		text-align: center;
		font: inherit;
		font-size: 15px;
		-moz-appearance: textfield;
	}

	.rf-sticky-buy__qty input::-webkit-outer-spin-button,
	.rf-sticky-buy__qty input::-webkit-inner-spin-button {
		-webkit-appearance: none;
		margin: 0;
	}

	.rf-sticky-buy__add {
		flex: 1;
		min-width: 0;
		white-space: nowrap;
		padding: 0 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		height: 48px;
		border: 0;
		border-radius: 6px;
		background: var(--wp--preset--color--ink);
		color: var(--wp--preset--color--white);
		font: inherit;
		font-size: 13px;
		font-weight: 600;
		letter-spacing: .05em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.rf-sticky-buy__label::before {
		content: "";
		display: inline-block;
		width: 15px;
		height: 15px;
		margin-right: 6px;
		vertical-align: -2px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	.rf-sticky-buy__price {
		overflow: hidden;
		text-overflow: ellipsis;
		font-weight: 500;
		letter-spacing: 0;
		text-transform: none;
		opacity: .85;
	}

	.rf-sticky-buy__price:not(:empty)::before {
		content: "·";
		margin-right: 6px;
	}
}

.rf-attention {
	animation: rf-attention 1.6s ease;
}

@keyframes rf-attention {
	0%, 100% { box-shadow: none; }
	20%, 60% { box-shadow: 0 0 0 3px rgba(200, 16, 46, .35); border-radius: 6px; }
}

/* Product page (phone): sheet after adding to the cart */
.rf-added .rf-quick__done {
	padding: 36px 20px 24px;
}

.rf-added__item {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 360px;
	margin: 16px auto 0;
	padding: 10px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	text-align: left;
	font-size: 14px;
	line-height: 1.45;
}

.rf-added__item img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
	background: var(--wp--preset--color--surface);
}

.rf-added .rf-quick__done-actions {
	flex-direction: column;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}

.rf-added .rf-quick__continue,
.rf-added .rf-quick__checkout {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.single_add_to_cart_button.is-loading,
.rf-sticky-buy__add.is-loading {
	opacity: .6;
	pointer-events: none;
}

.rf-search-results__products li + li {
	border-top: 1px solid #F0EDE7;
}

.rf-search-results__cats {
	margin-bottom: 12px !important;
}

/* Homepage hero: the keyword H1 looks like the eyebrow; the slogan keeps the large type. */
h1.rf-hero__kicker {
	margin: 0;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
}

p.rf-hero__title {
	font-family: var(--wp--preset--font-family--manrope);
	font-weight: 500;
}

/* Phone: product thumbnails in one swipeable row */
@media (max-width: 781px) {
	.rf-product__gallery .flex-control-thumbs {
		flex-wrap: nowrap;
		overflow-x: auto !important;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 8px;
	}

	.rf-product__gallery .flex-control-thumbs::-webkit-scrollbar {
		display: none;
	}

	.rf-product__gallery .flex-control-thumbs li {
		flex: 0 0 64px;
		width: 64px !important;
		scroll-snap-align: start;
	}
}

/* Subcategory H1: parent name shown as the eyebrow line above */
.rf-cat-hero__title .rf-cat-hero__parent {
	display: block;
	font-family: var(--wp--preset--font-family--dm-sans);
	line-height: 1.5;
}

/* ---------- Spåra din order (/track-order/) ---------- */

.woocommerce form.rf-track {
	max-width: 500px;
	margin-top: 24px;
}

.rf-track__hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.rf-track-result {
	max-width: 640px;
	margin: 8px 0 32px;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	display: grid;
	gap: 20px;
}

.rf-track-result p {
	margin: 0;
}

.rf-track-result__head {
	display: grid;
	gap: 2px;
}

.rf-track-result__label,
.rf-track-result__date {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.rf-track-result__status {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 26px;
	font-weight: 500;
}

.rf-track-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	counter-reset: step;
}

.rf-track-steps li {
	position: relative;
	padding-top: 30px;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	text-align: center;
	counter-increment: step;
}

.rf-track-steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
	font-size: 11px;
	line-height: 19px;
	z-index: 1;
}

.rf-track-steps li + li::after {
	content: "";
	position: absolute;
	top: 11px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var(--wp--preset--color--line);
}

.rf-track-steps li.is-done {
	color: var(--wp--preset--color--ink);
}

.rf-track-steps li.is-done::before {
	content: "✓";
	border-color: #2E7D4F;
	background: #2E7D4F;
	color: #fff;
}

.rf-track-steps li.is-done + li.is-done::after {
	background: #2E7D4F;
}

.rf-track-steps li.is-current {
	font-weight: 600;
}

.rf-track-result__parcels {
	display: grid;
	gap: 12px;
	padding-top: 18px;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 14px;
}

.rf-track-result__parcels .rf-auth__secondary {
	max-width: 320px;
}

.rf-track-result__note {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* The parcel link is shown in the status card; skip the copy under the order table. */
.rf-track-result ~ .woocommerce-order-details .rf-tracking,
.rf-track-result ~ section .rf-tracking {
	display: none;
}

.rf-track-notes__title {
	font-size: 20px;
	margin: 0 0 12px;
}

.rf-track-notes {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
	max-width: 640px;
	display: grid;
	gap: 12px;
}

.rf-track-notes li {
	padding: 14px 16px;
	border-left: 3px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--white);
	font-size: 14px;
}

.rf-track-notes p {
	margin: 0;
}

.rf-track-notes__date {
	font-size: 12px;
	color: var(--wp--preset--color--muted);
	margin-bottom: 4px !important;
}

/* Mouse and touch clicks show no outline box; keyboard focus keeps a black outline. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
	outline: none;
}

/* Product example image inside guides */
.rf-guide-figure {
	max-width: 340px;
	margin: 24px 0 !important;
}

.rf-guide-figure img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
}

.rf-guide-figure figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	text-align: left;
}

/* Hero: the short lead lines up with the heading, also on right-aligned slides. */
.rf-slide__copy > .rf-hero__lead {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* "Added to cart" notice: no focus frame when WooCommerce moves focus to it, and
   "Visa varukorg" as a readable button next to the text. */
.wc-block-components-notice-banner[tabindex="-1"]:focus {
	outline: none;
}

.wc-block-components-notice-banner {
	align-items: center;
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content:has(.wc-forward) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
.woocommerce .wc-block-components-notice-banner .wc-forward.button {
	order: 2;
	float: none;
	margin: 0 !important;
	padding: 10px 18px !important;
	height: auto;
	min-height: 0;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--ink) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	opacity: 1;
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover,
.woocommerce .wc-block-components-notice-banner .wc-forward.button:hover {
	background: #33312C !important;
	border-color: #33312C;
	color: #fff !important;
}

/* Announcement bar: three messages with dividers; on phones one at a time, rotating. */
.rf-announcement__items span + span::before {
	content: "|";
	margin: 0 1.1em;
	opacity: 0.55;
}

@media (max-width: 781px) {
	.rf-announcement__items {
		position: relative;
		width: 100%;
		height: 1.5em;
	}

	.rf-announcement__items span {
		position: absolute;
		inset: 0;
		opacity: 0;
		animation: rf-announce 12s infinite;
	}

	.rf-announcement__items span + span::before {
		content: none;
	}

	.rf-announcement__items span:nth-child(2) {
		animation-delay: 4s;
	}

	.rf-announcement__items span:nth-child(3) {
		animation-delay: 8s;
	}

	@media (prefers-reduced-motion: reduce) {
		.rf-announcement__items span {
			animation: none;
		}

		.rf-announcement__items span:first-child {
			opacity: 1;
		}
	}
}

@keyframes rf-announce {
	0%, 30% { opacity: 1; }
	33.33%, 100% { opacity: 0; }
}

/* ---------- Logged-in account ---------- */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0 !important;
}

/* Logged-in account: wider than a normal text page (the login page keeps its own layout). */
.logged-in.woocommerce-account main.wp-block-group > *,
.logged-in.woocommerce-account .wp-block-post-content > .woocommerce {
	max-width: min(1100px, 100%) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 11px 14px;
	border-radius: 6px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 15px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--panel);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--muted);
}

@media (min-width: 900px) {
	.woocommerce-account .wp-block-post-content .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 230px minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}

	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: 1;
	}

	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content {
		grid-column: 2;
		grid-row: 1;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		float: none;
		width: auto;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		position: sticky;
		top: 24px;
		padding: 8px;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: 10px;
		background: var(--wp--preset--color--surface);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px solid var(--wp--preset--color--line);
	}
}

/* Phones: the menu is one swipeable row of chips. */
@media (max-width: 899px) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		float: none;
		width: auto;
		margin: 0 0 24px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		white-space: nowrap;
		padding: 9px 14px;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: 999px;
		font-size: 14px;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		float: none;
		width: auto;
	}
}

.rf-acc__title {
	margin: 0 0 6px;
	font-size: var(--wp--preset--font-size--large);
}

.rf-acc__lead {
	margin: 0 0 28px;
	color: var(--wp--preset--color--muted);
}

.rf-acc__logout {
	margin-top: 28px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.rf-acc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--ink);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}

.rf-acc-button:hover {
	background: #33312C;
	border-color: #33312C;
}

.rf-acc-button--ghost {
	background: transparent;
	color: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--line);
}

.rf-acc-button--ghost:hover {
	background: var(--wp--preset--color--panel);
	border-color: var(--wp--preset--color--ink);
}

.rf-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	background: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
}

.rf-badge--done { background: #E4EFE6; color: #1F5130; }
.rf-badge--active { background: #FBEFD6; color: #6B4A0B; }
.rf-badge--waiting { background: #ECEAE5; color: #45433E; }
.rf-badge--error { background: #F6E1DE; color: #7A2318; }
.rf-badge--muted { background: #ECEAE5; color: #6B6862; }

/* Overview: latest order and shortcuts. */
.rf-acc-latest {
	padding: 20px 22px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
}

.rf-acc-latest .rf-eyebrow {
	margin: 0 0 10px;
}

.rf-acc-latest__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.rf-acc-latest__number {
	margin: 0;
	font-weight: 600;
	font-size: 17px;
}

.rf-acc-latest__meta {
	margin: 4px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.rf-acc-latest__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.rf-acc-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.rf-acc-links a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}

.rf-acc-links a:hover {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface);
}

.rf-acc-links span {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

/* Orders: one card per order. */
.rf-orders {
	display: grid;
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.rf-order {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 6px 20px;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	background: var(--wp--preset--color--white);
}

.rf-order__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.rf-order__number {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.rf-order__number:hover {
	text-decoration: underline;
}

.rf-order__meta {
	grid-column: 1;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.rf-order__meta strong {
	color: var(--wp--preset--color--ink);
}

.rf-order__extra {
	grid-column: 1;
	font-size: 14px;
}

.rf-order__actions {
	grid-column: 2;
	grid-row: 1 / span 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

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

	.rf-order__actions {
		grid-column: 1;
		grid-row: auto;
		justify-content: flex-start;
		margin-top: 8px;
	}
}

.rf-orders__pages {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

.rf-orders-empty {
	padding: 28px;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: 10px;
	text-align: center;
}

.rf-orders-empty p {
	margin: 0 0 14px;
}

/* Order progress inside account cards. */
.rf-acc-latest .rf-track-steps,
.rf-order .rf-track-steps {
	margin: 16px 0 4px;
}

.rf-track-steps--compact {
	grid-column: 1;
	max-width: 360px;
	font-size: 12px;
}

.rf-order .rf-track-steps--compact {
	margin: 10px 0 0;
}

.rf-acc__back {
	margin: 0 0 14px;
	font-size: 14px;
}

.rf-acc__back a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.rf-acc-order {
	margin-bottom: 28px;
}

.rf-acc-order .rf-acc__title {
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	text-decoration: none !important;
}

/* WooCommerce's own headings inside the account (order details, addresses) at section size. */
.woocommerce-account .woocommerce-MyAccount-content h2:not(.rf-acc__title),
.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin: 32px 0 12px;
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0;
}

/* Overview shortcuts: a 2 × 2 grid, one column on phones. */
.woocommerce-account .rf-acc-links {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
}

.woocommerce-account .rf-acc-links > li {
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-account .rf-acc-links a {
	box-sizing: border-box;
	height: 100%;
	text-decoration: none !important;
}

@media (max-width: 600px) {
	.woocommerce-account .rf-acc-links {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
}

/* Desktop mega menu: four columns of categories without the group headings (Öra, Ansikte,
   Kropp, Mer). On phones the headings stay: they open and close each group. */
@media (min-width: 1100px) {
	.rf-header__nav .wp-block-navigation__responsive-container:not(.is-menu-open) .rf-mega__col > .wp-block-navigation-item__content {
		display: none !important;
	}
}

/* Shop listing while the next page loads (assets/js/keep-styles.js). */
.rf-loading {
	position: relative;
}

.rf-loading .wc-block-product-template {
	opacity: 0.35;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.rf-loading::after {
	content: "";
	position: absolute;
	top: 90px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid var(--wp--preset--color--line);
	border-top-color: var(--wp--preset--color--ink);
	border-radius: 50%;
	animation: rf-spin 0.7s linear infinite;
	z-index: 5;
}

.wp-block-query-pagination a.is-pending {
	font-weight: 700;
	text-decoration: underline;
}

@keyframes rf-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.rf-loading::after {
		animation-duration: 2s;
	}
}
