/**
 * Asharikandi Artisans
 *
 * Every colour resolves through Moria's own custom properties first, so the
 * artisan pages follow whatever palette is set in Customiser > Colors and
 * never need editing when the brand colours change. The literal hex values
 * are only fallbacks for the case where a theme mod has not been saved yet.
 */

.rl-directory,
.rl-profile {
	--rl-clay:   var(--theme-color, #A8442A);
	--rl-hover:  var(--hover-color, #C4633C);
	--rl-ink:    var(--text-color, #2E2622);
	--rl-line:   var(--border-color, #E6DCD0);
	--rl-sand:   #F4EBE0;
	--rl-muted:  color-mix(in srgb, var(--rl-ink) 62%, transparent);
	--rl-radius: 4px;
}

/* ---------------------------------------------------------- tabs */

.rl-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 1px solid var(--rl-line);
	margin: 0 0 2.5rem;
}

.rl-tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: 0.85rem 1.35rem;
	font-family: var(--font-family-base, inherit);
	font-size: 0.82rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rl-muted);
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.rl-tab:hover { color: var(--rl-ink); }

.rl-tab.is-active {
	color: var(--rl-clay);
	border-bottom-color: var(--rl-clay);
}

.rl-tab:focus-visible {
	outline: 2px solid var(--rl-clay);
	outline-offset: 2px;
}

/* ---------------------------------------------------------- grid */

.rl-grid {
	display: grid;
	gap: 2rem 1.5rem;
}

.rl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rl-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------- card */

.rl-card {
	display: flex;
	flex-direction: column;
}

.rl-card[hidden] { display: none; }

.rl-card__media {
	display: block;
	overflow: hidden;
	background: var(--rl-sand);
	aspect-ratio: 4 / 5;
	border-radius: var(--rl-radius);
}

.rl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.rl-card:hover .rl-card__media img { transform: scale(1.04); }

.rl-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--rl-sand);
}

.rl-card__body { padding-top: 1rem; }

.rl-card__group {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--rl-clay);
}

.rl-card__name {
	margin: 0 0 0.3rem;
	font-family: var(--font-family-heading, inherit);
	font-size: 1.12rem;
	line-height: 1.3;
}

.rl-card__name a {
	color: var(--rl-ink);
	text-decoration: none;
}

.rl-card__name a:hover { color: var(--rl-clay); }

.rl-card__award,
.rl-card__count {
	margin: 0 0 0.25rem;
	font-size: 0.83rem;
	color: var(--rl-muted);
}

.rl-card__cta {
	align-self: flex-start;
	margin-top: 0.6rem;
	font-size: 0.78rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rl-clay);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.rl-card__cta:hover { color: var(--rl-hover); }

/* ------------------------------------------- product page block */

.rl-artisan-block {
	margin: 1.75rem 0;
	padding: 1.25rem 1.35rem;
	background: var(--rl-sand);
	border-left: 3px solid var(--rl-clay);
	border-radius: 0 var(--rl-radius) var(--rl-radius) 0;
}

.rl-artisan-block__label {
	margin: 0 0 0.85rem;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rl-muted, #6b625c);
}

.rl-artisan-block__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

.rl-artisan-block__link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	color: inherit;
}

.rl-artisan-block__avatar img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.rl-artisan-block__text { display: grid; gap: 1px; }

.rl-artisan-block__name {
	font-family: var(--font-family-heading, inherit);
	font-size: 1rem;
	color: var(--text-color, #2E2622);
}

.rl-artisan-block__link:hover .rl-artisan-block__name { color: var(--theme-color, #A8442A); }

.rl-artisan-block__lead {
	font-style: normal;
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--theme-color, #A8442A);
	border: 1px solid currentColor;
	border-radius: 2px;
	padding: 1px 5px;
	margin-left: 0.4rem;
	vertical-align: middle;
}

.rl-artisan-block__group,
.rl-artisan-block__award {
	font-size: 0.78rem;
	color: #6b625c;
}

/* -------------------------------------------- product card line */

.rl-loop-artisan {
	margin: 0.2rem 0 0.4rem;
	font-size: 0.8rem;
	color: #6b625c;
}

.rl-loop-artisan a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--border-color, #E6DCD0);
}

.rl-loop-artisan a:hover {
	color: var(--theme-color, #A8442A);
	border-bottom-color: currentColor;
}

/* ------------------------------------------------------ profile */

.rl-profile__hero {
	margin-bottom: 2.5rem;
	max-height: 460px;
	overflow: hidden;
}

.rl-profile__hero img {
	width: 100%;
	height: 100%;
	max-height: 460px;
	object-fit: cover;
	display: block;
}

.rl-profile__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1.25rem 4rem;
}

.rl-profile__head {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 2.5rem;
	align-items: start;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--rl-line);
}

.rl-profile__portrait img {
	width: 100%;
	border-radius: var(--rl-radius);
	display: block;
}

.rl-profile__group {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rl-profile__group a {
	color: var(--rl-clay);
	text-decoration: none;
}

.rl-profile__name {
	margin: 0 0 0.5rem;
	font-family: var(--font-family-heading, inherit);
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	line-height: 1.15;
	color: var(--rl-ink);
}

.rl-profile__award {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	color: var(--rl-clay);
}

.rl-profile__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.1rem;
	margin: 0;
}

.rl-profile__facts dt {
	font-size: 0.68rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--rl-muted);
	margin-bottom: 0.25rem;
}

.rl-profile__facts dd {
	margin: 0;
	font-size: 0.95rem;
	color: var(--rl-ink);
}

.rl-profile__bio {
	max-width: 42rem;
	margin: 2.5rem 0 3.5rem;
	font-size: 1.02rem;
	line-height: 1.75;
}

.rl-profile__work-title,
.rl-directory-page__title {
	font-family: var(--font-family-heading, inherit);
	color: var(--rl-ink);
}

.rl-profile__work-title {
	font-size: 1.5rem;
	margin: 0 0 1.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--rl-line);
}

.rl-profile__back {
	margin-top: 3rem;
	text-align: center;
}

.rl-profile__back a {
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rl-clay);
	text-decoration: none;
}

/* ------------------------------------------------ directory page */

.rl-directory-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 3rem 1.25rem 4rem;
}

.rl-directory-page__head {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 3rem;
}

.rl-directory-page__title {
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	margin: 0 0 0.9rem;
}

.rl-directory-page__lede {
	margin: 0;
	color: var(--rl-muted);
	line-height: 1.7;
}

.rl-tabs { justify-content: center; }

.rl-empty,
.rl-no-results {
	text-align: center;
	padding: 3rem 0;
	color: var(--rl-muted);
}

/* ------------------------------------------------------ responsive */

@media (max-width: 1024px) {
	.rl-grid--4 { grid-template-columns: repeat(3, 1fr); }
	.rl-profile__head { grid-template-columns: 170px 1fr; gap: 1.75rem; }
}

@media (max-width: 767px) {
	.rl-grid--3,
	.rl-grid--4 { grid-template-columns: repeat(2, 1fr); }

	.rl-profile__head {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.rl-profile__portrait { max-width: 160px; }

	.rl-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.rl-tabs::-webkit-scrollbar { display: none; }

	.rl-tab {
		flex: 0 0 auto;
		padding: 0.75rem 1rem;
	}
}

@media (max-width: 460px) {
	.rl-grid--2,
	.rl-grid--3,
	.rl-grid--4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-card__media img { transition: none; }
	.rl-card:hover .rl-card__media img { transform: none; }
}

/* ================================================= shop filter widget */

.rl-filter {
	--rl-clay:  var(--theme-color, #A8442A);
	--rl-hover: var(--hover-color, #C4633C);
	--rl-ink:   var(--text-color, #2E2622);
	--rl-line:  var(--border-color, #E6DCD0);
	font-size: 0.9rem;
}

.rl-filter__title {
	margin: 0 0 0.9rem;
	font-family: var(--font-family-heading, inherit);
	font-size: 1rem;
	color: var(--rl-ink);
}

.rl-filter__active {
	margin: 0 0 0.85rem;
	padding: 0.55rem 0.7rem;
	background: #F4EBE0;
	border-left: 2px solid var(--rl-clay);
	font-size: 0.82rem;
	line-height: 1.45;
}

.rl-filter__clear,
.rl-shop-notice__clear {
	margin-left: 0.4rem;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rl-clay);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.rl-filter__group {
	margin: 1rem 0 0.4rem;
	font-size: 0.68rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #8A7F76;
}

.rl-filter__group:first-of-type { margin-top: 0; }

.rl-filter__list {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.rl-filter__item a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.42rem 0;
	color: var(--rl-ink);
	text-decoration: none;
	line-height: 1.35;
	/* comfortable target for a phone */
	min-height: 34px;
}

.rl-filter__item a:hover .rl-filter__name { color: var(--rl-clay); }

.rl-filter__item.is-active .rl-filter__name {
	color: var(--rl-clay);
	font-weight: 700;
}

.rl-filter__item.is-active a::before {
	content: "";
	display: inline-block;
	width: 3px;
	align-self: stretch;
	margin-right: 0.5rem;
	background: var(--rl-clay);
}

.rl-filter__count {
	flex: 0 0 auto;
	font-size: 0.78rem;
	color: #8A7F76;
}

.rl-filter__select {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--rl-line);
	border-radius: 3px;
	background: #fff;
	color: var(--rl-ink);
	font-size: 0.88rem;
}

/* line above the product grid */

.rl-shop-notice {
	width: 100%;
	margin: 0 0 1.25rem;
	padding: 0.7rem 0.95rem;
	background: #F4EBE0;
	border-left: 3px solid var(--theme-color, #A8442A);
	font-size: 0.88rem;
}

.rl-shop-notice a {
	color: var(--theme-color, #A8442A);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* inline credit, for the [artisan_credit style="line"] shortcode */

.rl-credit-line {
	margin: 0.6rem 0;
	font-size: 0.92rem;
}

.rl-credit-line span {
	color: #6b625c;
	margin-right: 0.25rem;
}

.rl-credit-line a {
	color: var(--text-color, #2E2622);
	text-decoration: none;
	border-bottom: 1px solid var(--border-color, #E6DCD0);
}

.rl-credit-line a:hover { color: var(--theme-color, #A8442A); }

/* ==================================================== artisan carousel */

.rl-carousel {
	--rl-clay:  var(--theme-color, #A8442A);
	--rl-hover: var(--hover-color, #C4633C);
	--rl-ink:   var(--text-color, #2E2622);
	--rl-line:  var(--border-color, #E6DCD0);
	--rl-gap:   1.5rem;

	/* --rl-per is set inline by the shortcode; --rl-per-active is what the
	   current breakpoint actually shows, and is the value the script reads so
	   layout and behaviour can never disagree.
	   Keep this a bare number at every breakpoint: getComputedStyle returns
	   an unregistered custom property with var() substituted but functions
	   like min() left unevaluated, so min(...) here would return a string
	   the script cannot parse. */
	--rl-per-active: var(--rl-per, 4);

	position: relative;
	margin: 0 auto;
}

.rl-carousel__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.75rem;
}

.rl-carousel__title {
	margin: 0;
	font-family: var(--font-family-heading, inherit);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	line-height: 1.2;
	color: var(--rl-ink);
}

.rl-carousel__sub {
	margin: 0.5rem 0 0;
	color: #6b625c;
	font-size: 0.94rem;
}

.rl-carousel__tools {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex: 0 0 auto;
}

.rl-carousel__all {
	font-size: 0.78rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rl-clay);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	white-space: nowrap;
}

.rl-carousel__all:hover { color: var(--rl-hover); }

.rl-carousel__arrows { display: flex; gap: 0.5rem; }

.rl-carousel__arrow {
	appearance: none;
	width: 42px;
	height: 42px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--rl-line);
	border-radius: 50%;
	color: var(--rl-ink);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rl-carousel__arrow svg { width: 17px; height: 17px; display: block; }

.rl-carousel__arrow:hover:not(:disabled) {
	background: var(--rl-clay);
	border-color: var(--rl-clay);
	color: #fff;
}

.rl-carousel__arrow:focus-visible {
	outline: 2px solid var(--rl-clay);
	outline-offset: 2px;
}

.rl-carousel__arrow:disabled { opacity: 0.32; cursor: default; }

/* ---- the track ---- */

.rl-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(
		(100% - (var(--rl-gap) * (var(--rl-per-active) - 1))) / var(--rl-per-active)
	);
	gap: var(--rl-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	/* room for the focus ring and the card hover lift */
	padding-bottom: 4px;
}

.rl-carousel__track::-webkit-scrollbar { display: none; }

.rl-carousel__track:focus-visible {
	outline: 2px solid var(--rl-clay);
	outline-offset: 4px;
}

.rl-carousel__slide { scroll-snap-align: start; min-width: 0; }

/* Static fallback: fewer cards than slots, so nothing to scroll. */
.rl-carousel.is-static .rl-carousel__track {
	overflow: visible;
	justify-content: start;
}

/* ---- dots ---- */

.rl-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.rl-carousel__dot {
	appearance: none;
	width: 28px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: var(--rl-line);
	cursor: pointer;
	transition: background-color 0.2s ease, width 0.2s ease;
}

.rl-carousel__dot.is-active { background: var(--rl-clay); width: 44px; }

.rl-carousel__dot:focus-visible {
	outline: 2px solid var(--rl-clay);
	outline-offset: 3px;
}

/* ---- responsive: one source of truth for cards-per-view ---- */

@media (max-width: 1024px) {
	.rl-carousel { --rl-per-active: 3; --rl-gap: 1.25rem; }
}

@media (max-width: 782px) {
	.rl-carousel { --rl-per-active: 2; }
	.rl-carousel__head { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
	.rl-carousel__tools { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
	/* 1.15 leaves the next card peeking, which is what tells a phone user
	   the row scrolls at all. */
	.rl-carousel { --rl-per-active: 1.15; --rl-gap: 1rem; }
	.rl-carousel__arrows { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.rl-carousel__track { scroll-behavior: auto; }
	.rl-carousel__dot { transition: none; }
}

/* ================================================= GI certification */

.rl-gi-badge {
	display: inline-flex;
	align-items: center;
	overflow: visible;
	gap: 0.4rem;
	padding: 0.32rem 0.7rem;
	border: 1px solid var(--theme-color, #A8442A);
	border-radius: 2px;
	color: var(--theme-color, #A8442A);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

.rl-gi-badge__mark { flex: 0 0 auto; display: block; }
.rl-gi-badge svg.rl-gi-badge__mark { width: 14px; height: 14px; }

/* With the official mark uploaded the badge becomes a frame around artwork
   we do not own, so it drops the coloured border and lets the mark speak. */
.rl-gi-badge--official {
	border-color: transparent;
	padding-left: 0;
	gap: 0.5rem;
	color: var(--text-color, #2E2622);
}

/* The mark must never be squashed or clipped. Themes and WooCommerce set
   broad img rules (width:100%, height:auto, object-fit:cover on product
   imagery), so these are pinned deliberately. */
.rl-gi-badge img.rl-gi-badge__mark {
	width: auto !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain !important;
	border-radius: 0;
}

.rl-gi-badge--official img.rl-gi-badge__mark { height: 34px !important; }

.rl-gi-badge--official.rl-gi-badge--small {
	background: transparent;
	border-color: transparent;
	padding: 0;
	color: var(--text-color, #2E2622);
}

.rl-gi-badge--official.rl-gi-badge--small img.rl-gi-badge__mark { height: 22px !important; }

/* On a card the mark sits on a pale chip so it stays legible over any photo. */
.woocommerce ul.products li.product .rl-gi-badge--official.rl-gi-badge--small,
.products .product .rl-gi-badge--official.rl-gi-badge--small {
	background: rgba(244, 235, 224, 0.94);
	padding: 0.25rem 0.45rem;
	border-radius: 3px;
}

.rl-gi-badge--small {
	padding: 0.22rem 0.5rem;
	font-size: 0.62rem;
	gap: 0.3rem;
	border-color: #C9964A;
	color: #8A5F1E;
	background: rgba(201, 150, 74, 0.12);
}

.rl-gi-badge--small svg.rl-gi-badge__mark { width: 11px; height: 11px; }

/* On product cards the badge floats over the image, pinned to the RIGHT:
   Moria stacks its own Hot / Sale / New labels top-left and the two overlap.

   The positioning lives on the badge itself (.rl-gi-badge--pin, set in PHP)
   rather than being reached through an ancestor selector like
   `.woocommerce ul.products li.product`. Moria re-renders the loop over AJAX
   with different wrapper classes, so an ancestor-based rule stopped matching
   after filtering and the badge fell back into normal flow, dropping below
   the image until the page was reloaded. */
.rl-gi-badge--pin {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	z-index: 3;
	background: rgba(244, 235, 224, 0.94);
	border-color: #C9964A;
	pointer-events: none;
}

/* Guarantee a positioning context on the card, whatever it is called. Only
   the outer item is made relative, so the badge cannot be offset twice. */
ul.products > li.product,
ul.products-list > li,
.content-products-list li.product {
	position: relative;
}

.rl-gi-line {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 0 0 0.9rem;
}

.rl-gi-line a {
	font-size: 0.78rem;
	color: #6b625c;
	text-decoration: none;
	border-bottom: 1px solid var(--border-color, #E6DCD0);
}

.rl-gi-line a:hover { color: var(--theme-color, #A8442A); }

/* clay type and finish, under the artisan block */

.rl-material {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.9rem 1.25rem;
	margin: 1rem 0 1.5rem;
	padding: 0;
}

.rl-material dt {
	margin: 0 0 0.2rem;
	font-size: 0.66rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #8A7F76;
}

.rl-material dd {
	margin: 0;
	font-size: 0.92rem;
	color: var(--text-color, #2E2622);
}

/* the /gi-certified/ introduction */

.rl-gi-intro {
	max-width: 46rem;
	margin: 0 auto 2.5rem;
	padding: 1.25rem 1.5rem;
	background: #F4EBE0;
	border-left: 3px solid var(--theme-color, #A8442A);
}

.rl-gi-intro p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--text-color, #2E2622);
}

.rl-gi-filter .rl-filter__name {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}


/* ============================================== filter bar and chips */

/* The mount must span the row wherever it lands. If it ever ends up inside a
   flex container — Moria's .content-top holds the result count and the sorting
   dropdown — flex:100% stops it being squeezed to content width, and order:-1
   forces it above the controls rather than between them. */
.rl-filter-bar-mount {
	flex: 0 0 100%;
	width: 100%;
	order: -1;
}

.rl-filter-bar-mount:empty { display: none; }

.rl-filter-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem 0.75rem;
	width: 100%;
	margin: 0 0 1.5rem;
	padding: 0.85rem 1rem;
	background: #F4EBE0;
	border-left: 3px solid var(--theme-color, #A8442A);
}

.rl-filter-bar__label {
	white-space: nowrap;
	font-size: 0.7rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #8A7F76;
	flex: 0 0 auto;
}

.rl-filter-bar__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
}

.rl-chip {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	gap: 0.45rem;
	padding: 0.32rem 0.4rem 0.32rem 0.7rem;
	background: #fff;
	border: 1px solid var(--border-color, #E6DCD0);
	border-radius: 2px;
	font-size: 0.82rem;
	line-height: 1.3;
}

.rl-chip__label {
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #A2968B;
}

.rl-chip__value {
	color: var(--text-color, #2E2622);
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 22em;
}

.rl-chip__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: #8A7F76;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rl-chip__remove svg { width: 11px; height: 11px; }

.rl-chip__remove:hover {
	background: var(--theme-color, #A8442A);
	color: #fff;
}

.rl-chip__remove:focus-visible {
	outline: 2px solid var(--theme-color, #A8442A);
	outline-offset: 1px;
}

.rl-filter-bar__clear {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 0.74rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--theme-color, #A8442A);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	white-space: nowrap;
}

.rl-filter-bar__clear:hover { color: var(--hover-color, #C4633C); }

/* the injected "All categories" entry */
.rl-all-categories > a { font-weight: 600; }

@media (max-width: 600px) {
	.rl-filter-bar { flex-direction: column; align-items: flex-start; }
	.rl-filter-bar__clear { align-self: flex-end; }
}

/* ---- sorting dropdown: give the toggle a visible box ---- */

.woocommerce-ordering .pwb-dropdown-toggle { cursor: pointer; }

.woocommerce-ordering .pwb-dropdown-toggle:empty::after {
	/* Nothing should reach here now the template is fixed, but if a future
	   theme update reintroduces a blank label this keeps the control usable
	   rather than rendering an unlabelled bar. */
	content: "Sort";
	color: #8A7F76;
}

/* ---------------------------------------- GI filter widget (radio rows) */

.rl-gi-filter .rl-filter__item a {
	align-items: center;
	padding: 0.5rem 0;
}

.rl-filter__radio {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-right: 0.6rem;
	border: 1px solid var(--border-color, #E6DCD0);
	border-radius: 50%;
	background: #fff;
	position: relative;
	transition: border-color 0.15s ease;
}

.rl-filter__item a:hover .rl-filter__radio { border-color: var(--theme-color, #A8442A); }

.rl-filter__item.is-active .rl-filter__radio {
	border-color: var(--theme-color, #A8442A);
}

.rl-filter__item.is-active .rl-filter__radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--theme-color, #A8442A);
}

/* the badge sits inline in the row rather than floating, as it does on cards */
.rl-gi-filter .rl-filter__name .rl-gi-badge--small {
	position: static;
	background: transparent;
	border-color: transparent;
	padding: 0;
}

.rl-gi-filter .rl-filter__item.is-active .rl-filter__name { font-weight: 700; }

/* the active-marker bar used by the artisan filter would double up here */
.rl-gi-filter .rl-filter__item.is-active a::before { content: none; }
