/* Clarity Account stylesheet v1.6.2 — if you do not see this line in the
   served file, your site is still delivering a cached copy. */

/* =========================================================
   Clarity Account
   Scoped to .ufma and .ufma-headmenu so themes stay untouched.
   ========================================================= */

.ufma,
.ufma-headmenu {
	--ufma-accent: #1f6f5c;
	--ufma-accent-soft: #e9f1ef;
	--ufma-accent-ink: #17604f;
	--ufma-ink: #14171a;
	--ufma-muted: #5f6b72;
	--ufma-line: rgba(20, 23, 26, 0.1);
	--ufma-line-strong: rgba(20, 23, 26, 0.18);
	--ufma-surface: #ffffff;
	--ufma-canvas: #f5f5f2;
	--ufma-radius: 14px;
	--ufma-radius-sm: 10px;
	--ufma-shadow: 0 1px 2px rgba(20, 23, 26, 0.04), 0 8px 24px -16px rgba(20, 23, 26, 0.35);
	--ufma-gap: 20px;

	color: var(--ufma-ink);
	font-feature-settings: "tnum" 1;
}

.ufma *,
.ufma *::before,
.ufma *::after,
.ufma-headmenu *,
.ufma-headmenu *::before,
.ufma-headmenu *::after {
	box-sizing: border-box;
}

/* -----------------------------------------------------------------
   Scoped reset. Themes add margins to p / headings / lists / address,
   which is what stretches these cards apart. Neutralise inside .ufma
   only, then set our own spacing deliberately.
   ----------------------------------------------------------------- */

.ufma p,
.ufma h1,
.ufma h2,
.ufma h3,
.ufma h4,
.ufma ul,
.ufma ol,
.ufma li,
.ufma address,
.ufma figure,
.ufma-headmenu p,
.ufma-headmenu ul,
.ufma-headmenu li {
	margin: 0;
	padding: 0;
}

.ufma ul,
.ufma ol,
.ufma-headmenu ul {
	list-style: none;
}

.ufma li::before,
.ufma li::marker {
	content: none;
}

/* WordPress filters (wpautop and friends) can inject empty <p></p> and
   <br> into shortcode output. Inside a flex row those become extra items
   and force line breaks. The PHP side strips them; this is the backstop. */
.ufma p:empty,
.ufma-headmenu p:empty {
	display: none !important;
}

.ufma .ufma-order__actions > br,
.ufma .ufma-order__grid > br,
.ufma .ufma-order__info > br,
.ufma .ufma-order__head > br,
.ufma .ufma-stats > br,
.ufma .ufma-cards > br,
.ufma .ufma-quick > br,
.ufma .ufma-social > br,
.ufma .ufma-nav > br {
	display: none !important;
}

.ufma .ufma-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* ---------- type ---------- */

.ufma .ufma-h1 {
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.5rem;
}

.ufma .ufma-h2 {
	font-size: 1.15rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0;
}

.ufma .ufma-eyebrow {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ufma-muted);
	margin: 0 0 0.35rem;
}

.ufma .ufma-lede {
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--ufma-muted);
	margin: 0 0 1.5rem;
}

.ufma .ufma-muted {
	color: var(--ufma-muted);
	font-size: 0.9rem;
	margin: 0;
}

.ufma .ufma-link {
	color: var(--ufma-accent-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.ufma .ufma-link:hover {
	text-decoration: underline;
}

.ufma .ufma-link .ufma-icon {
	width: 16px;
	height: 16px;
}

/* ---------- identity header ---------- */

.ufma-identity {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0 0 1.5rem;
	border-bottom: 1px solid var(--ufma-line);
	margin-bottom: var(--ufma-gap);
	flex-wrap: wrap;
}

.ufma-identity__text {
	flex: 1 1 220px;
	min-width: 0;
}

.ufma-identity__greeting {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ufma-muted);
	margin: 0;
}

.ufma-identity__name {
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0.15rem 0 0.3rem;
}

.ufma-identity__meta {
	color: var(--ufma-muted);
	font-size: 0.88rem;
	margin: 0;
	word-break: break-word;
}

.ufma-identity__shop {
	margin-left: auto;
}

.ufma-avatar {
	display: inline-flex;
	border-radius: 50%;
	overflow: hidden;
	background: var(--ufma-canvas);
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
}

.ufma-avatar--lg {
	width: 64px;
	height: 64px;
	box-shadow: 0 0 0 3px var(--ufma-surface), 0 0 0 4px var(--ufma-line-strong);
}

.ufma-avatar--sm {
	width: 30px;
	height: 30px;
}

.ufma-avatar .ufma-avatar__img,
.ufma-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}

/* ---------- layout ---------- */

.ufma-body {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

/* Pinned explicitly: some themes style bare `main`/`nav` tags with grid
   placement, which would otherwise drag these into the wrong cell. */
.ufma .ufma-body > .ufma-nav {
	grid-column: 1;
	grid-row: 1;
	float: none;
	width: auto;
}

.ufma .ufma-body > .ufma-content {
	grid-column: 2;
	grid-row: 1;
	float: none;
	width: auto;
}

.ufma-content {
	min-width: 0;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--ufma-gap);
}

.ufma-nav {
	min-width: 0;
}

/* ---------- navigation ---------- */

.ufma-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: sticky;
	top: 24px;
}

.ufma-nav__item a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 0.75rem;
	border-radius: var(--ufma-radius-sm);
	text-decoration: none;
	color: var(--ufma-ink);
	font-size: 0.94rem;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ufma-nav__item a:hover {
	background: rgba(20, 23, 26, 0.045);
}

.ufma-nav__item .ufma-icon {
	color: var(--ufma-muted);
}

.ufma-nav__item.is-current a {
	background: var(--ufma-accent-soft);
	color: var(--ufma-accent-ink);
	font-weight: 600;
}

.ufma-nav__item.is-current .ufma-icon {
	color: var(--ufma-accent);
}

.ufma-nav__item--out {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--ufma-line);
}

.ufma-nav__item--out a {
	color: var(--ufma-muted);
}

.ufma-pill {
	margin-left: auto;
	background: var(--ufma-accent);
	color: #fff;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.25rem 0.45rem;
	min-width: 1.35em;
	text-align: center;
}

/* ---------- panels & cards ---------- */

.ufma-panel {
	background: var(--ufma-surface);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius);
	padding: 20px;
	box-shadow: var(--ufma-shadow);
}

.ufma-panel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.ufma-panel__head--bare {
	margin-bottom: 0;
	display: block;
}

.ufma-panel__head--bare .ufma-muted {
	margin-top: 0.35rem;
}

/* ---------- stats ---------- */

/* Flex rather than grid, at high specificity. Themes commonly set width,
   float or display on anchors in content areas, which is what breaks a
   grid here. flex: 1 1 0 forces equal widths regardless. */
.ufma .ufma-stats {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ufma .ufma-stats > .ufma-stat {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 0 !important;
	min-width: 150px;
	max-width: 100%;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	min-height: 104px;
	justify-content: center;
}

.ufma .ufma-stat__value,
.ufma .ufma-stat__label {
	display: block;
	width: 100%;
	margin: 0;
}

/* Anything empty that slipped in must not hold a slot. */
.ufma .ufma-stats > :empty {
	display: none !important;
}

.ufma-stat {
	background: var(--ufma-surface);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

a.ufma-stat:hover {
	border-color: var(--ufma-line-strong);
	transform: translateY(-1px);
}

.ufma-stat__value {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.ufma-stat__value .amount,
.ufma-stat__value bdi {
	font-size: inherit;
}

.ufma-stat__label {
	font-size: 0.8rem;
	color: var(--ufma-muted);
}

/* ---------- the progress rail (signature) ---------- */

.ufma-rail {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	position: relative;
}

.ufma-rail::before,
.ufma-rail::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 12.5%;
	right: 12.5%;
	height: 2px;
	background: var(--ufma-line-strong);
	border-radius: 2px;
}

.ufma-rail::after {
	right: auto;
	width: calc(75% * var(--ufma-rail-fill, 0));
	background: var(--ufma-accent);
	transition: width 0.4s ease;
}

.ufma-rail__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	position: relative;
	z-index: 1;
	text-align: center;
}

.ufma-rail__dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ufma-surface);
	border: 2px solid var(--ufma-line-strong);
	display: grid;
	place-items: center;
	color: #fff;
}

.ufma-rail__step.is-done .ufma-rail__dot,
.ufma-rail__step.is-now .ufma-rail__dot {
	background: var(--ufma-accent);
	border-color: var(--ufma-accent);
}

.ufma-rail__step.is-now .ufma-rail__dot {
	box-shadow: 0 0 0 4px var(--ufma-accent-soft);
}

.ufma-rail__check {
	width: 10px;
	height: 10px;
	stroke-width: 3;
}

.ufma-rail__label {
	font-size: 0.78rem;
	color: var(--ufma-muted);
	line-height: 1.2;
}

.ufma-rail__step.is-now .ufma-rail__label {
	color: var(--ufma-ink);
	font-weight: 600;
}

.ufma-track__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

/* ---------- order list ---------- */

.ufma-orderlist {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ufma-orderlist--tight {
	gap: 0;
}

.ufma-orderlist--tight .ufma-order {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 16px 0;
	border-bottom: 1px solid var(--ufma-line);
	background: transparent;
}

.ufma-orderlist--tight .ufma-order:first-child {
	padding-top: 4px;
}

.ufma-orderlist--tight .ufma-order:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ufma .ufma-order {
	background: var(--ufma-surface);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius);
	padding: 18px;
	box-shadow: var(--ufma-shadow);
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100%;
	gap: 14px;
}

/* image | details, so the text block stays together */
.ufma .ufma-order__grid {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 16px;
	align-items: flex-start;
	width: 100%;
}

.ufma .ufma-order__info {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0;
	max-width: 100%;
	float: none !important;
}

.ufma .ufma-order__media {
	position: relative;
	display: block !important;
	flex: 0 0 88px !important;
	width: 88px !important;
	height: 88px;
	float: none !important;
	margin: 0 !important;
	border-radius: var(--ufma-radius-sm);
	overflow: hidden;
	background: var(--ufma-canvas);
	border: 1px solid var(--ufma-line);
}

.ufma-order__media img,
.ufma-order__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ufma-order__media-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--ufma-muted);
}

.ufma-order__more {
	position: absolute;
	right: 4px;
	bottom: 4px;
	background: rgba(20, 23, 26, 0.82);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.25rem 0.4rem;
	border-radius: 999px;
}

.ufma-order__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ufma .ufma-order__head {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: flex-start !important;
	flex-wrap: wrap;
	gap: 0.6rem;
	width: 100%;
}

.ufma-order__number {
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	color: var(--ufma-ink);
}

.ufma-order__number:hover {
	color: var(--ufma-accent-ink);
}

.ufma-order__meta {
	font-size: 0.85rem;
	color: var(--ufma-muted);
	line-height: 1.35;
}

.ufma-order__items {
	font-size: 0.88rem;
	color: var(--ufma-ink);
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ufma-order__price {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 2px;
}

.ufma-order__price .amount,
.ufma-order__price bdi {
	font-size: inherit;
	font-weight: inherit;
}

/* equal-width buttons */
.ufma .ufma-order__actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 8px;
	width: 100%;
}

.ufma .ufma-order__actions .ufma-btn {
	flex: 0 0 auto !important;
	width: auto !important;
	height: auto !important;
	align-self: flex-start !important;
	min-width: 132px;
	justify-content: center;
}

.ufma-orderlist--tight .ufma-order__actions {
	display: none;
}

/* ---------- badges & chips ---------- */

.ufma-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.4rem 0.6rem;
	border-radius: 999px;
	background: rgba(20, 23, 26, 0.06);
	color: var(--ufma-muted);
	white-space: nowrap;
}

.ufma-badge--good {
	background: rgba(31, 111, 92, 0.12);
	color: #17604f;
}

.ufma-badge--busy {
	background: rgba(37, 99, 235, 0.12);
	color: #1d4ed8;
}

.ufma-badge--warn {
	background: rgba(180, 120, 10, 0.14);
	color: #96620a;
}

.ufma-badge--bad {
	background: rgba(190, 40, 40, 0.12);
	color: #a72020;
}

.ufma-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}

.ufma-chips::-webkit-scrollbar {
	display: none;
}

.ufma-chip {
	border: 1px solid var(--ufma-line-strong);
	border-radius: 999px;
	padding: 0.45rem 0.85rem;
	font-size: 0.86rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--ufma-ink);
	white-space: nowrap;
	background: var(--ufma-surface);
}

.ufma-chip:hover {
	border-color: var(--ufma-accent);
}

.ufma-chip.is-active {
	background: var(--ufma-ink);
	border-color: var(--ufma-ink);
	color: #fff;
}

/* ---------- buttons ---------- */

.ufma .ufma-btn,
.ufma-headmenu .ufma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	background: var(--ufma-accent);
	color: #fff;
	border: 1px solid var(--ufma-accent);
	border-radius: var(--ufma-radius-sm);
	padding: 0.6rem 1rem;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, background-color 0.15s ease;
}

.ufma .ufma-btn:hover,
.ufma-headmenu .ufma-btn:hover {
	filter: brightness(0.94);
	color: #fff;
}

.ufma .ufma-btn--ghost,
.ufma-headmenu .ufma-btn--ghost {
	background: var(--ufma-surface);
	color: var(--ufma-ink);
	border-color: var(--ufma-line-strong);
}

.ufma .ufma-btn--ghost:hover,
.ufma-headmenu .ufma-btn--ghost:hover {
	color: var(--ufma-ink);
	background: var(--ufma-canvas);
	filter: none;
}

.ufma .ufma-btn--sm {
	padding: 0.45rem 0.75rem;
	font-size: 0.85rem;
}

.ufma .ufma-btn--block,
.ufma-headmenu .ufma-btn--block {
	width: 100%;
}

.ufma .ufma-btn .ufma-icon {
	width: 17px;
	height: 17px;
}

.ufma-back {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ufma-muted);
	text-decoration: none;
	margin-bottom: 0.5rem;
}

.ufma-back:hover {
	color: var(--ufma-ink);
}

.ufma-back__icon {
	width: 16px;
	height: 16px;
	transform: rotate(90deg);
}

/* ---------- address cards / quick links ---------- */

.ufma .ufma-cards {
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.ufma .ufma-cards > .ufma-card {
	flex: 1 1 260px !important;
	min-width: 0;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.ufma-card {
	background: var(--ufma-surface);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius);
	padding: 18px;
	box-shadow: var(--ufma-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ufma-card--empty {
	border-style: dashed;
	box-shadow: none;
	background: transparent;
	align-items: flex-start;
}

.ufma-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.ufma-card__head h3 {
	margin: 0;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}

.ufma-card address {
	font-style: normal;
	line-height: 1.6;
	font-size: 0.95rem;
	margin: 0;
}

.ufma .ufma-quick {
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.ufma .ufma-quick > .ufma-quick__card {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 200px !important;
	min-width: 0;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.ufma-quick__card {
	background: var(--ufma-surface);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.ufma-quick__card:hover {
	border-color: var(--ufma-accent);
}

.ufma-quick__card .ufma-icon {
	color: var(--ufma-accent);
	margin-bottom: 0.35rem;
}

.ufma-quick__card span {
	font-size: 0.85rem;
	color: var(--ufma-muted);
}

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

.ufma .ufma-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

.ufma .ufma-tile {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	background: var(--ufma-surface);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius);
	overflow: hidden;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	height: 100%;
}

/* Media sits in its own positioned box so the remove button has
   something reliable to anchor to. */
.ufma .ufma-tile__media-wrap {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	flex: 0 0 auto;
}

.ufma .ufma-tile__media {
	display: block !important;
	width: 100% !important;
	aspect-ratio: 1 / 1;
	background: var(--ufma-canvas);
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ufma .ufma-tile__media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block !important;
	margin: 0 !important;
}

.ufma .ufma-tile__remove:hover {
	background: #fff !important;
	border-color: rgba(20, 23, 26, 0.45) !important;
}

.ufma .ufma-tile__remove .ufma-icon {
	width: 14px !important;
	height: 14px !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto !important;
	stroke-width: 2;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ufma .ufma-tile__body {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto;
	padding: 12px;
	gap: 8px;
	min-width: 0;
}

/* Two lines every time, so every card breaks at the same place and the
   price and button below line up across the row. */
.ufma .ufma-tile__title {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.35;
	min-height: calc(2 * 1.35em);
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	text-decoration: none;
	color: var(--ufma-ink);
	margin: 0 !important;
}

.ufma .ufma-tile__title:hover {
	color: var(--ufma-accent-ink);
}

/* Flag colours (the badge itself is positioned inline in the template
   so themes cannot pull it out of the image corner). */
.ufma .ufma-tile__flag--good {
	background: #17604f;
	color: #fff;
}

.ufma .ufma-tile__flag--muted {
	background: rgba(20, 23, 26, 0.72);
	color: #fff;
}

/* Price row holds only the price, so every card's price sits on the
   same line however long the product name or the flag. */
.ufma .ufma-tile__meta {
	display: flex !important;
	align-items: center;
	gap: 6px;
	min-height: 22px;
	margin-top: auto;
}

.ufma .ufma-tile__price {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--ufma-ink);
	line-height: 1.2;
}

.ufma .ufma-tile__price del {
	opacity: 0.55;
	font-weight: 400;
	margin-right: 3px;
}

.ufma .ufma-tile__price ins {
	text-decoration: none;
}

.ufma .ufma-tile__price .amount,
.ufma .ufma-tile__price bdi {
	font-size: inherit;
}

.ufma .ufma-tile__meta .ufma-badge {
	font-size: 0.68rem;
	padding: 0.3rem 0.45rem;
}

.ufma .ufma-tile__actions {
	display: block !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.ufma .ufma-tile__actions .ufma-btn {
	display: flex !important;
	width: 100% !important;
	justify-content: center !important;
	float: none !important;
	margin: 0 !important;
}

.ufma .ufma-tile.is-going {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 520px) {
	.ufma .ufma-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- empty states ---------- */

.ufma-empty {
	text-align: center;
	padding: 28px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
}

.ufma-empty__icon {
	width: 34px;
	height: 34px;
	color: var(--ufma-accent);
	opacity: 0.65;
	margin-bottom: 0.3rem;
}

.ufma-empty h3 {
	margin: 0;
	font-size: 1.05rem;
}

.ufma-empty p {
	margin: 0 0 0.75rem;
	color: var(--ufma-muted);
	font-size: 0.92rem;
	max-width: 42ch;
}

/* ---------- account form ---------- */

.ufma .ufma-field-row {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0 16px;
}

.ufma .ufma-field-row > .form-row {
	flex: 1 1 220px !important;
	min-width: 0;
	width: auto !important;
	float: none !important;
}

.ufma .ufma-field-hint {
	display: block;
	font-size: 0.8rem;
	color: var(--ufma-muted);
	line-height: 1.45;
	margin-top: 4px;
	font-style: normal;
}

.ufma .ufma-readonly {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--ufma-canvas);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius-sm);
	padding: 12px 14px;
	margin: 0 0 16px;
}

.ufma .ufma-readonly__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ufma-muted);
}

.ufma .ufma-readonly__value {
	font-size: 0.95rem;
	font-weight: 600;
	word-break: break-word;
}

.ufma .ufma-readonly .ufma-field-hint {
	margin-top: 6px;
}

.ufma .ufma-form__actions {
	margin: 4px 0 0 !important;
}

/* ---------- connections ---------- */

.ufma-connections {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ufma-connection {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 12px 0;
	border-bottom: 1px solid var(--ufma-line);
}

.ufma-connection:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ufma-connection div {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

/* ---------- pager ---------- */

.ufma-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

/* ---------- sign in ---------- */

.ufma-signin {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 48px;
	align-items: center;
	max-width: 1040px;
	margin-left: auto;
	margin-right: auto;
}

.ufma-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.ufma-benefits li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
}

.ufma-benefits .ufma-icon {
	color: var(--ufma-accent);
}

.ufma-signin__panel {
	padding: 26px;
}

.ufma-signin__panel .ufma-h2 {
	margin-bottom: 1rem;
}

.ufma-signin__sub {
	color: var(--ufma-muted);
	font-size: 0.9rem;
	margin: -0.4rem 0 1.1rem;
	line-height: 1.5;
}

.ufma-signin__legal {
	font-size: 0.78rem;
	color: var(--ufma-muted);
	text-align: center;
	margin: 1rem 0 0;
	line-height: 1.5;
}

.ufma-signin__legal a {
	color: var(--ufma-accent-ink);
}

/* Social-only: nothing to balance against, so centre one narrow stack. */
.ufma-signin--social {
	display: block;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	padding: 12px 0 24px;
}

.ufma-signin--social .ufma-h1 {
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.05rem);
	text-wrap: balance;
	margin-bottom: 0.6rem;
}

.ufma-signin--social .ufma-lede {
	max-width: 40ch;
	margin-left: auto;
	margin-right: auto;
	text-wrap: pretty;
}

.ufma-signin--social .ufma-signin__pitch {
	margin-bottom: 26px;
}

/* Icons still line up on the left inside a centred block. */
.ufma-signin--social .ufma-benefits {
	display: inline-flex;
	text-align: left;
	margin: 0 auto;
}

.ufma-signin--social .ufma-signin__panel {
	padding: 26px;
	text-align: center;
}

.ufma-signin--social .ufma-signin__sub {
	margin: -0.3rem auto 1.2rem;
	max-width: 34ch;
}

/* External plugins' buttons: stretch them to match ours. */
.ufma-social--external > * {
	max-width: 100%;
}

.ufma-social--external a,
.ufma-social--external button {
	max-width: 100%;
}

.ufma-social--external p:empty,
.ufma-social--external br {
	display: none;
}

.ufma-or {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ufma-muted);
	font-size: 0.8rem;
	margin: 1.1rem 0;
}

.ufma-or::before,
.ufma-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--ufma-line);
}

/* ---------- checkout sign-in prompt ---------- */

/* Belt and braces: if a theme renders its login form somewhere other
   than the hook we unhook, hide it once our card is on the page. */
.ufma-checkout-hide-login .woocommerce-form-login-toggle,
.ufma-checkout-hide-login form.woocommerce-form-login,
.ufma-checkout-hide-login .wd-checkout-login,
.ufma-checkout-hide-login .woocommerce-form-coupon-toggle + .woocommerce-form-login {
	display: none !important;
}

.ufma-checkout-signin {
	max-width: 460px;
	margin: 0 auto 28px;
}

.ufma-checkout-signin .ufma-panel {
	padding: 24px;
	text-align: center;
}

.ufma-checkout-signin .ufma-h2 {
	margin-bottom: 0.4rem;
}

.ufma-checkout-signin .ufma-muted {
	margin-bottom: 1.1rem;
	line-height: 1.5;
}

.ufma-checkout-signin .ufma-social__btn {
	padding: 0.8rem 1rem;
	font-size: 0.98rem;
}

.ufma-checkout-signin .ufma-social__note {
	display: none;
}

/* ---------- social buttons ---------- */

.ufma-social {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ufma-social__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--ufma-line-strong);
	border-radius: var(--ufma-radius-sm);
	background: #fff;
	color: #14171a;
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ufma-social__btn:hover {
	border-color: rgba(20, 23, 26, 0.4);
	box-shadow: 0 1px 2px rgba(20, 23, 26, 0.08);
	color: #14171a;
}

.ufma-social__note {
	font-size: 0.78rem;
	color: var(--ufma-muted);
	margin: 0.7rem 0 0;
	text-align: center;
}

/* ---------- save-for-later button ---------- */

.ufma-save {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: transparent;
	border: 1px solid rgba(20, 23, 26, 0.18);
	border-radius: 10px;
	padding: 0.55rem 0.9rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #14171a;
	cursor: pointer;
	margin: 0.5rem 0;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ufma-save .ufma-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}

.ufma-save:hover {
	border-color: rgba(20, 23, 26, 0.4);
}

.ufma-save.is-saved {
	color: #17604f;
	border-color: rgba(31, 111, 92, 0.4);
}

.ufma-save.is-saved .ufma-icon {
	fill: currentColor;
	transform: scale(1.08);
}

.ufma-save--compact .ufma-save__label {
	display: none;
}

/* ---------- header account menu ---------- */

.ufma-headmenu {
	position: relative;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	vertical-align: middle !important;
	line-height: 1 !important;
	height: auto;
	text-align: left;

	/* Themes style divs and buttons inside header columns, which shows up
	   as a coloured pill behind the icon. These need !important or the
	   theme's rule wins. */
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.ufma-headmenu__trigger,
.ufma-headmenu__trigger:hover,
.ufma-headmenu__trigger:focus,
.ufma-headmenu__trigger:active,
.ufma-headmenu-wrap {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* The image is inline by default, which leaves a few pixels of descender
   space below it and pushes the icon off centre. */
.ufma-headmenu .ufma-avatar,
.ufma-headmenu .ufma-avatar__img,
.ufma-headmenu__trigger img {
	display: block !important;
	vertical-align: middle !important;
	margin: 0 !important;
}

.ufma-headmenu__trigger {
	line-height: 1 !important;
	vertical-align: middle !important;
}

/* Circular icon button, matching the theme's original account icon. */
.ufma-headmenu__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: transparent;
	border: 0;
	border-radius: 999px;
	padding: 0;
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: inherit;
	line-height: 1.2;
}

.ufma-headmenu__trigger .ufma-avatar,
.ufma-headmenu__trigger > .ufma-icon:not(.ufma-headmenu__caret) {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--ufma-line-strong) !important;
	background: var(--ufma-surface) !important;
	padding: 0;
	flex: 0 0 auto;
}

.ufma-headmenu__trigger > .ufma-icon:not(.ufma-headmenu__caret) {
	padding: 8px;
	color: var(--ufma-ink);
}

.ufma-headmenu__trigger--guest {
	padding: 0;
	border: 0;
	opacity: 1;
}

.ufma-headmenu__trigger:hover {
	background: transparent;
	opacity: 1;
}

.ufma-headmenu__trigger:hover .ufma-avatar,
.ufma-headmenu__trigger:hover > .ufma-icon:not(.ufma-headmenu__caret) {
	border-color: var(--ufma-ink);
}

/* Name and caret are optional chrome; hide them for the icon-only look. */
.ufma-headmenu--icon .ufma-headmenu__name,
.ufma-headmenu--icon .ufma-headmenu__caret,
.ufma-headmenu--icon .ufma-headmenu__trigger > svg.ufma-headmenu__caret {
	display: none !important;
}

.ufma-headmenu__caret {
	width: 15px;
	height: 15px;
	opacity: 0.6;
	transition: transform 0.18s ease;
}

.ufma-headmenu__trigger[aria-expanded="true"] .ufma-headmenu__caret {
	transform: rotate(180deg);
}

.ufma-headmenu__name {
	max-width: 10ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ufma-headmenu__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 9999;
	width: 280px;
	background: #fff;
	color: var(--ufma-ink);
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius);
	box-shadow: 0 16px 40px -12px rgba(20, 23, 26, 0.3);
	padding: 14px;
	text-align: left;
}

.ufma-headmenu--left .ufma-headmenu__panel {
	right: auto;
	left: 0;
}

.ufma-headmenu__panel[hidden] {
	display: none;
}

.ufma-headmenu__head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding-bottom: 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--ufma-line);
}

.ufma-headmenu__head div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ufma-headmenu__head strong {
	font-size: 0.92rem;
	line-height: 1.25;
}

.ufma-headmenu__head span {
	font-size: 0.78rem;
	color: var(--ufma-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ufma-headmenu__links {
	display: flex;
	flex-direction: column;
}

.ufma-headmenu__links a,
.ufma-headmenu__signout {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.5rem;
	border-radius: var(--ufma-radius-sm);
	text-decoration: none;
	color: var(--ufma-ink);
	font-size: 0.9rem;
	font-weight: 500;
}

.ufma-headmenu__links a:hover,
.ufma-headmenu__signout:hover {
	background: rgba(20, 23, 26, 0.05);
}

.ufma-headmenu .ufma-icon {
	width: 18px;
	height: 18px;
	color: var(--ufma-muted);
	flex: 0 0 auto;
}

.ufma-headmenu__signout {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--ufma-line);
	border-radius: 0;
	color: var(--ufma-muted);
}

.ufma-headmenu__title {
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

/* The signed-out panel holds only a heading and a button, so it needs
   more room than the signed-in list to avoid looking cramped. */
.ufma-headmenu__panel--guest {
	width: 300px;
	padding: 20px;
}

.ufma-headmenu__panel--guest .ufma-headmenu__title {
	font-size: 0.95rem;
	line-height: 1.4;
	margin: 0 0 1rem;
}

.ufma-headmenu__panel--guest .ufma-btn {
	margin-top: 10px;
}

.ufma-headmenu__panel--guest .ufma-social {
	margin-bottom: 0;
}

.ufma-headmenu__panel--guest .ufma-social__btn {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	gap: 0.55rem;
}

.ufma-headmenu__panel--guest .ufma-social__note {
	display: none;
}

.ufma-menu-item {
	display: flex;
	align-items: center;
}

/* The container a theme's header builder wraps us in is often a block
   with its own line-height. Neutralise it so the icon sits on the same
   centre line as the cart and search. */
.ufma-headmenu-wrap {
	display: flex !important;
	align-items: center !important;
	align-self: center !important;
	justify-content: center;
	height: 100%;
	line-height: 1 !important;
	margin: 0 !important;
}

/* The flex child in the header row is usually the container the theme
   wrapped us in, not our own element, so reach up one level and centre
   that too. Otherwise a header set to align-items:flex-start lines our
   38px circle up by its top edge and it sits high. */
/* The container the theme wraps us in can carry its own background,
   border and padding — which shows up as a coloured pill behind the
   icon. We cannot style a parent normally, but :has() lets us reach the
   one container whose direct child is our menu. */
:has(> .ufma-headmenu-wrap),
:has(> .ufma-headmenu) {
	align-items: center !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}

:has(> .ufma-headmenu-wrap):not(body):not(html) {
	align-self: center !important;
}

/* ---------- WooCommerce form clean-up ---------- */

.ufma-wc-content .woocommerce-MyAccount-content,
.ufma-wc-content .woocommerce {
	padding: 0;
	margin: 0;
}

.ufma-form h2,
.ufma-form h3,
.ufma-form legend {
	font-size: 1rem;
	letter-spacing: -0.01em;
}

.ufma-form .form-row,
.ufma-form p.form-row {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0;
	margin: 0 0 14px;
}

.ufma-form label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ufma-ink);
}

.ufma-form .required {
	color: #a72020;
	text-decoration: none;
}

.ufma-form input[type="text"],
.ufma-form input[type="email"],
.ufma-form input[type="tel"],
.ufma-form input[type="password"],
.ufma-form input[type="number"],
.ufma-form select,
.ufma-form textarea,
.ufma-form .select2-selection {
	width: 100%;
	border: 1px solid var(--ufma-line-strong);
	border-radius: var(--ufma-radius-sm);
	padding: 0.65rem 0.8rem;
	font-size: 0.95rem;
	background: #fff;
	color: var(--ufma-ink);
	line-height: 1.4;
}

.ufma-form input:focus,
.ufma-form select:focus,
.ufma-form textarea:focus {
	outline: none;
	border-color: var(--ufma-accent);
	box-shadow: 0 0 0 3px var(--ufma-accent-soft);
}

.ufma-form .button,
.ufma-form button[type="submit"] {
	background: var(--ufma-accent);
	color: #fff;
	border: 0;
	border-radius: var(--ufma-radius-sm);
	padding: 0.7rem 1.2rem;
	font-size: 0.94rem;
	font-weight: 600;
	cursor: pointer;
}

.ufma-form .button:hover,
.ufma-form button[type="submit"]:hover {
	filter: brightness(0.94);
	color: #fff;
}

.ufma-form fieldset {
	border: 1px solid var(--ufma-line);
	border-radius: var(--ufma-radius-sm);
	padding: 16px;
	margin: 18px 0;
}

.ufma-signin__form .u-columns,
.ufma-signin__form .u-column1,
.ufma-signin__form .u-column2,
.ufma-signin__form .col2-set,
.ufma-signin__form .col-1,
.ufma-signin__form .col-2 {
	display: block;
	width: 100%;
	max-width: none;
	float: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.ufma-signin__form .u-column2,
.ufma-signin__form .col-2 {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--ufma-line);
}

/* ---------- focus & motion ---------- */

.ufma a:focus-visible,
.ufma button:focus-visible,
.ufma-headmenu a:focus-visible,
.ufma-headmenu button:focus-visible {
	outline: 2px solid var(--ufma-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.ufma *,
	.ufma-headmenu * {
		transition: none !important;
		animation: none !important;
	}
}

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

@media (max-width: 900px) {
	.ufma-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.ufma .ufma-body > .ufma-nav,
	.ufma .ufma-body > .ufma-content {
		min-width: 0;
		max-width: 100%;
	}

	.ufma .ufma-body > .ufma-nav {
		grid-column: 1;
		grid-row: 1;
	}

	.ufma .ufma-body > .ufma-content {
		grid-column: 1;
		grid-row: 2;
	}

	.ufma-nav ul {
		position: static;
		flex-direction: row;
		gap: 6px;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
	}

	.ufma-nav ul::-webkit-scrollbar {
		display: none;
	}

	.ufma-nav__item a {
		border: 1px solid var(--ufma-line-strong);
		border-radius: 999px;
		white-space: nowrap;
		padding: 0.5rem 0.8rem;
	}

	.ufma-nav__item.is-current a {
		border-color: var(--ufma-accent);
	}

	.ufma-nav__item--out {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.ufma-signin {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ufma-signin--social {
		display: block;
		padding-top: 0;
	}

	.ufma-identity {
		padding-top: 8px;
		padding-bottom: 1.25rem;
		gap: 0.85rem;
	}

	.ufma-identity__greeting {
		margin-bottom: 0.15rem;
		letter-spacing: 0.12em;
	}

	.ufma-identity__text {
		flex: 1 1 100%;
	}

	.ufma-identity__meta {
		line-height: 1.5;
	}

	.ufma-identity__shop {
		margin-left: 0;
		width: 100%;
	}
}

@media (max-width: 560px) {
	.ufma .ufma-order__grid {
		gap: 12px;
	}

	.ufma .ufma-order__media {
		flex-basis: 72px !important;
		width: 72px !important;
		height: 72px;
	}

	.ufma-order__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}

	.ufma-order__actions .ufma-btn {
		flex: 1 1 calc(50% - 4px);
		min-width: 0;
	}

	.ufma-rail__label {
		font-size: 0.68rem;
	}

	/* A sheet pinned to the bottom edge reads like a cookie banner and gets
	   ignored. Centre it as a dialog with a dimmed backdrop instead, so it
	   clearly belongs to the tap that opened it. */
	.ufma-headmenu__panel {
		position: fixed !important;
		left: 50% !important;
		right: auto !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translate(-50%, -50%);
		width: calc(100vw - 32px) !important;
		max-width: 360px;
		max-height: calc(100vh - 96px);
		overflow-y: auto;
		padding: 20px;
		border-radius: 16px;
		z-index: 100000;

		/* The dimmed backdrop is the panel's own shadow, spread across the
		   viewport. A separate overlay element would have to win a z-index
		   fight with the theme's header; a shadow is always painted with
		   the panel it belongs to. */
		box-shadow: 0 24px 60px -12px rgba(20, 23, 26, 0.45),
			0 0 0 100vmax rgba(20, 23, 26, 0.5);
	}

	.ufma-headmenu__panel--guest .ufma-headmenu__title {
		font-size: 1rem;
		margin-bottom: 1rem;
		text-align: center;
	}

	.ufma-headmenu__panel--guest .ufma-social__btn {
		padding: 0.85rem 1rem;
		font-size: 1rem;
	}
}
