/**
 * CCommerce Cashback — main.css
 * Design tokens mirror theme.json so this file works even where theme.json
 * custom properties aren't emitted (e.g. inside patterns rendered in
 * contexts that strip block-supports styles). Logical properties
 * (margin-inline / padding-inline) are used throughout for RTL readiness.
 */

:root {
	--ccc-bg: #F6F8FB;
	--ccc-surface: #FFFFFF;
	--ccc-ink: #0F172A;
	--ccc-muted: #475569;
	--ccc-line: #E2E8F0;
	--ccc-brand: #0B6E4F;
	--ccc-brand-2: #16A34A;
	--ccc-gold: #F59E0B;
	--ccc-danger: #DC2626;
	--ccc-info: #2563EB;
	--ccc-hero-grad: linear-gradient(135deg, #06281E 0%, #0B6E4F 100%);
	/* A deep, dedicated green for the shopper account-area sidebar —
	   darker than --ccc-brand so the member dashboard's nav column reads
	   as its own distinct section rather than just another branded block. */
	--ccc-account-sidebar-bg: #063D2C;
	--ccc-account-sidebar-active: #16A34A;
	/* A deep slate-blue for the store-owner dashboard sidebar
	   (.ccc-store-sidebar) — deliberately a different family of color than
	   the shopper account green above, so the two account types are easy
	   to tell apart at a glance. */
	--ccc-store-sidebar-bg: #1E293B;
	--ccc-store-sidebar-active: #2563EB;
	/* A deep burnt-orange for the store-staff check-in sidebar
	   (.ccc-store-staff-sidebar, /store-checkin/) — a third distinct family
	   of color so all three account types (shopper green, store-owner blue,
	   store-staff orange) are easy to tell apart at a glance. */
	--ccc-store-staff-sidebar-bg: #7C2D12;
	--ccc-store-staff-sidebar-active: #F97316;
	/* Height of the slim .ccc-app-bar used on the account, store AND
	   store-staff dashboard pages — kept as a variable since the app bar
	   itself and all three sidebars' sticky offset/height
	   (.ccc-account-sidebar, .ccc-store-sidebar, .ccc-store-staff-sidebar)
	   need to agree on it. */
	--ccc-app-bar-height: 57px;

	--ccc-font-sans: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ccc-radius-sm: 8px;
	--ccc-radius-md: 12px;
	--ccc-radius-lg: 20px;
	--ccc-gutter: 1.25rem;
	--ccc-container: 1180px;
	--ccc-tap-min: 44px;
	--ccc-motion: 200ms;
	--ccc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--ccc-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ccc-bg);
	color: var(--ccc-ink);
	font-family: var(--ccc-font-sans);
	font-size: 16px;
	line-height: 1.55;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ccc-brand); text-decoration: none; }
a:hover { color: var(--ccc-brand-2); }
button { font-family: inherit; }

/* Respect reduced-motion at the CSS layer as well as in JS. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Accessibility primitives ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ccc-skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--ccc-ink);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--ccc-radius-sm) 0;
}
.ccc-skip-link:focus {
	inset-inline-start: 0;
}

:focus-visible {
	outline: 3px solid var(--ccc-info);
	outline-offset: 2px;
}

/* ---------- Layout ---------- */
.ccc-container {
	max-width: var(--ccc-container);
	margin-inline: auto;
	padding-inline: var(--ccc-gutter);
}

.ccc-main {
	padding-block: 2rem;
	min-height: 50vh;
}

/* ---------- Utility bar ---------- */
.ccc-utility-bar {
	background: var(--ccc-ink);
	color: #fff;
	text-align: center;
	font-size: 0.875rem;
	padding-block: 0.5rem;
}
.ccc-utility-bar__text { margin: 0; }
.ccc-utility-bar strong { color: var(--ccc-gold); }

/* ---------- Header ---------- */
.ccc-header {
	background: var(--ccc-surface);
	border-bottom: 1px solid var(--ccc-line);
	position: static;
	top: 0;
	z-index: 100;
}
.ccc-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: 0.75rem;
	flex-wrap: wrap;
}
.ccc-header__site-name {
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--ccc-ink);
}
.ccc-header__brand { margin-inline-end: auto; min-width: 0; flex-shrink: 1; }
/* An uploaded custom logo can be any size (theme support declares
   flex-height/flex-width so admins aren't forced to crop it) — without a
   cap here, a wide logo image consumes the whole header row's width and
   forces the Wallet/Activate Cashback buttons to wrap onto a second row
   below it instead of sharing the same row. Capping height (width follows
   automatically since nothing here sets a fixed width) keeps logo, Wallet
   chip and Activate Cashback button reliably on one row at every size. */
.ccc-header__brand img,
.ccc-header__brand .custom-logo-link img {
	display: block;
	height: auto;
	max-height: 40px;
	width: auto;
	max-width: 180px;
}

.ccc-header__menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	width: var(--ccc-tap-min);
	height: var(--ccc-tap-min);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.ccc-header__menu-icon,
.ccc-header__menu-icon::before,
.ccc-header__menu-icon::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--ccc-ink);
	position: relative;
	transition: transform var(--ccc-motion) ease;
}
.ccc-header__menu-icon::before,
.ccc-header__menu-icon::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
}
.ccc-header__menu-icon::before { top: -6px; }
.ccc-header__menu-icon::after { top: 6px; }

.ccc-nav {
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.ccc-nav a {
	color: var(--ccc-ink);
	font-weight: 600;
	font-size: 0.9375rem;
	padding-block: 0.25rem;
}
.ccc-nav a:hover { color: var(--ccc-brand); }

.ccc-header__search {
	display: flex;
	align-items: center;
	background: var(--ccc-bg);
	border: 1px solid var(--ccc-line);
	border-radius: 999px;
	padding-inline: 0.75rem;
	min-width: 220px;
	flex: 1 1 220px;
	max-width: 360px;
}
.ccc-header__search-input {
	border: 0;
	background: transparent;
	padding-block: 0.5rem;
	width: 100%;
	font-size: 0.9375rem;
	outline: none;
}
.ccc-header__search-submit {
	border: 0;
	background: none;
	cursor: pointer;
	min-width: var(--ccc-tap-min);
	min-height: var(--ccc-tap-min);
}

/* Wrapper around the nav links only — the hamburger toggle opens/closes
   this on mobile (Login/Activate Cashback are siblings, always visible,
   never inside this wrapper). On desktop it's always expanded. See the
   mobile/desktop blocks below for the two states. */
.ccc-header__collapsible {
	display: block;
}

.ccc-header__utility {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.ccc-wallet-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(11, 110, 79, 0.08);
	color: var(--ccc-brand);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-weight: 700;
	font-size: 0.875rem;
}

/* ---------- Buttons ---------- */
.ccc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--ccc-tap-min);
	padding: 0.65rem 1.25rem;
	border-radius: var(--ccc-radius-sm);
	font-weight: 700;
	font-size: 0.9375rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background var(--ccc-motion) ease, color var(--ccc-motion) ease, border-color var(--ccc-motion) ease;
}
.ccc-btn--primary {
	background: var(--ccc-brand);
	color: #fff;
}
.ccc-btn--primary:hover {
	background: var(--ccc-brand-2);
	color: #fff;
}
.ccc-btn--ghost {
	background: transparent;
	border-color: var(--ccc-line);
	color: var(--ccc-ink);
}
.ccc-btn--ghost:hover {
	border-color: var(--ccc-brand);
	color: var(--ccc-brand);
}

/* ---------- Cards (shared base; store/deal specifics arrive Batch 3) ---------- */
.ccc-post-list,
.ccc-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccc-post-card,
.ccc-card {
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	overflow: hidden;
	box-shadow: var(--ccc-shadow-sm);
	transition: box-shadow var(--ccc-motion) ease, transform var(--ccc-motion) ease;
}
.ccc-post-card:hover,
.ccc-card:hover {
	box-shadow: var(--ccc-shadow-md);
	transform: translateY(-2px);
}
.ccc-post-card__body { padding: 1rem 1.25rem 1.25rem; }
.ccc-post-card__title { font-size: 1.125rem; margin: 0 0 0.5rem; }
.ccc-post-card__excerpt { color: var(--ccc-muted); font-size: 0.9375rem; }

/* ---------- Rate display (numerals never color-only; text is always paired) ---------- */
.ccc-rate {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1;
}
.ccc-rate--display {
	font-size: clamp(2rem, 4vw, 3.25rem);
}
.ccc-rate-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border-radius: 999px;
	padding: 0.3rem 0.75rem;
	font-weight: 700;
	font-size: 0.875rem;
	background: rgba(22, 163, 74, 0.1);
	color: var(--ccc-brand-2);
}
.ccc-rate-pill--increased {
	background: rgba(245, 158, 11, 0.14);
	color: #92400E;
}
.ccc-rate-pill--ended {
	background: var(--ccc-line);
	color: var(--ccc-muted);
	text-decoration: line-through;
}

/* ---------- Trust row / footer ---------- */
.ccc-footer {
	background: var(--ccc-ink);
	color: #E2E8F0;
	margin-top: 3rem;
}
.ccc-footer__trust {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 1rem;
}
.ccc-trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
	color: #94A3B8;
}
.ccc-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	padding-block: 2.5rem;
}
.ccc-footer__col h3 {
	color: #fff;
	font-size: 0.9375rem;
	margin-bottom: 0.75rem;
}
.ccc-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.ccc-footer-menu a {
	color: #CBD5E1;
	font-size: 0.9375rem;
}
.ccc-footer-menu a:hover { color: #fff; }

.ccc-newsletter-form input[type="email"] {
	width: 100%;
	min-height: var(--ccc-tap-min);
	border-radius: var(--ccc-radius-sm);
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	padding-inline: 0.9rem;
	margin-bottom: 0.6rem;
}
.ccc-form-note {
	font-size: 0.75rem;
	color: #94A3B8;
	margin-top: 0.5rem;
}

.ccc-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 1.25rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: #94A3B8;
}

/* ---------- Empty state ---------- */
.ccc-empty-state {
	text-align: center;
	padding: 4rem 1rem;
}

/* ---------- Mobile: logo, Login, Activate Cashback, and the hamburger
   all share ONE row — the buttons sit directly next to the menu toggle
   instead of dropping to a row of their own. This is genuinely tight on
   a ~375px phone, so everything here is deliberately compact (smaller
   logo text, smaller button padding/font). As a safety net,
   .ccc-header__inner keeps its base flex-wrap: wrap — if a very narrow
   screen, a longer translation, or larger browser text settings ever
   make this not fit, it wraps to a second line automatically rather
   than clipping or overlapping. Search and the nav panel stay full-width
   rows below this one either way. ---------- */
@media (max-width: 767px) {
	.ccc-header__brand { order: 1; }
	.ccc-header__site-name { font-size: 1.0625rem; }
	.ccc-header__brand img,
	.ccc-header__brand .custom-logo-link img {
		max-height: 30px;
		max-width: 120px;
	}

	.ccc-header__utility {
		order: 2;
		gap: 0.4rem;
		/* Pushes this item — and the hamburger toggle right after it in
		   the same row as the logo — to the right edge of the header,
		   so logo, Wallet/Activate Cashback, and the hamburger all line
		   up in one row instead of the buttons sitting flush against the
		   left edge. */
		margin-inline-start: auto;
	}
	/* Trims only HORIZONTAL padding to save width — the thing actually
	   tight in this row. min-height (not a fixed height) keeps the full
	   44px tap target while still letting the button grow taller if its
	   text wraps to two lines on the narrowest screens — deliberately
	   NOT forcing white-space: nowrap, so on a genuinely tight phone
	   "Activate Cashback" can wrap within its own button rather than the
	   whole button being pushed to a new row below everything else. That
	   keeps logo/buttons/hamburger structurally in one row even when
	   there isn't quite enough width for every label on a single line. */
	.ccc-header__utility .ccc-btn {
		padding-inline: 0.65rem;
		min-height: var(--ccc-tap-min);
		font-size: 0.8125rem;
		text-align: center;
	}
	.ccc-wallet-chip { padding-inline: 0.65rem; min-height: var(--ccc-tap-min); font-size: 0.8125rem; }

	.ccc-header__menu-toggle {
		display: inline-flex;
		order: 3;
		flex-shrink: 0;
	}

	.ccc-header__search { order: 4; flex-basis: 100%; max-width: none; }

	.ccc-header__collapsible {
		order: 5;
		flex-basis: 100%;
		display: none;
	}
	.ccc-header__collapsible.is-open { display: block; }
	.ccc-header__nav { width: 100%; }
	.ccc-nav {
		flex-direction: column;
		gap: 0.5rem;
		padding-block: 0.75rem;
		border-top: 1px solid var(--ccc-line);
	}
}

/* ---------- Desktop: logo, then the collapsible wrapper (nav — always
   expanded here, the hamburger is hidden), then search, then the utility
   buttons at the far right. ---------- */
@media (min-width: 768px) {
	.ccc-header__menu-toggle { display: none; }

	.ccc-header__collapsible { order: 2; display: block !important; }
	.ccc-header__search { order: 3; max-width: 280px; }
	.ccc-header__utility { order: 4; }
}

/* =====================================================================
   Batch 3 — public templates
   ===================================================================== */

/* ---------- Section rhythm ---------- */
.ccc-section {
	padding-block: 2.5rem;
}
.ccc-section--surface {
	background: var(--ccc-surface);
	border-block: 1px solid var(--ccc-line);
}
.ccc-section__heading {
	font-size: 1.5rem;
	margin: 0 0 1.25rem;
}
.ccc-section__desc {
	color: var(--ccc-muted);
	margin: -0.75rem 0 1.25rem;
}
.ccc-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}
.ccc-section__header .ccc-section__heading { margin-bottom: 0; }
.ccc-section__see-all {
	font-weight: 700;
	font-size: 0.9375rem;
	white-space: nowrap;
}

/* ---------- Hero ---------- */
.ccc-hero {
	background: var(--ccc-hero-grad);
	color: #fff;
	padding-block: 3.5rem;
}
.ccc-hero__inner { text-align: center; }
.ccc-hero__headline {
	font-size: clamp(1.75rem, 4vw, 3rem);
	max-width: 20ch;
	margin: 0 auto 1.25rem;
	color: #fff;
}
.ccc-hero__search {
	display: flex;
	max-width: 480px;
	margin: 0 auto 1.5rem;
	gap: 0.5rem;
	background: #fff;
	border-radius: 999px;
	padding: 0.35rem;
}
.ccc-hero__search-input {
	flex: 1;
	border: 0;
	background: transparent;
	padding-inline: 1rem;
	font-size: 0.9375rem;
	min-width: 0;
	outline: none;
}
.ccc-hero__ctas {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}
.ccc-btn--lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.ccc-btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}
.ccc-btn--ghost-light:hover { border-color: #fff; color: #fff; }

.ccc-hero__trust-chips {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.85);
}

/* ---------- Store card specifics ---------- */
.ccc-store-card { display: flex; flex-direction: column; }
.ccc-store-card__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ccc-bg);
	height: 120px;
	overflow: hidden;
	position: relative;
}
/* Base size for this logo class wherever it's reused outside a listing
   card (the single-store hub header, the store-locator list) — those
   contexts have their own wrapper padding and rely on this cap. */
.ccc-store-card__logo { max-height: 60px; width: auto; margin-inline: auto; }
/* Real uploaded photos / featured images: fill the entire holder, cropped
   to match — this is what makes a rectangular product photo look as
   consistent as the round initials badge below. Wins over the cap above
   because it's more specific, and only applies inside a listing card. */
.ccc-store-card__logo-wrap img.ccc-store-card__logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0;
	max-height: none;
}
/* Fallback initials badge: intentionally NOT stretched full-bleed — a
   56px circle centered in the same holder reads better than a giant
   letter, so it keeps its own fixed size regardless of the rule above. */
.ccc-store-card__logo--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(11, 110, 79, 0.1);
	color: var(--ccc-brand);
	font-weight: 800;
	font-size: 1.125rem;
	flex: none;
}
.ccc-store-card__title { font-size: 1.0625rem; margin: 0 0 0.5rem; }
.ccc-store-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.9rem;
	color: var(--ccc-muted);
	font-size: 0.8125rem;
	margin-block: 0.6rem;
}
.ccc-store-card__cta { width: 100%; margin-top: 0.5rem; }

/* Two-per-row on mobile: the shared .ccc-card-grid base uses
   auto-fill/minmax(260px,...), which only ever fits ONE column on a phone
   screen. "Top Cashback Stores" specifically wants two columns on mobile
   (see home/top-stores.php), so this overrides just that grid's column
   count at the same breakpoint the rest of the theme already uses for
   mobile layout — the store-archive/category grid (.ccc-card-grid without
   the --stores modifier) is untouched and keeps its normal auto-fill
   behavior everywhere. Card internals are also tightened up a little
   (shorter logo strip, smaller title/button text) so a half-width card
   still reads cleanly instead of feeling cramped. */
@media (max-width: 767px) {
	.ccc-card-grid--stores {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
	.ccc-card-grid--stores .ccc-store-card__logo-wrap {
		height: 88px;
	}
	.ccc-card-grid--stores .ccc-store-card__body {
		padding: 0.75rem 0.875rem 0.875rem;
	}
	.ccc-card-grid--stores .ccc-store-card__title {
		font-size: 0.9375rem;
		margin-bottom: 0.35rem;
	}
	.ccc-card-grid--stores .ccc-store-card__meta {
		font-size: 0.75rem;
		gap: 0.35rem 0.6rem;
		margin-block: 0.4rem;
	}
	.ccc-card-grid--stores .ccc-store-card__cta {
		font-size: 0.8125rem;
		padding-block: 0.5rem;
	}
}

/* Same two-per-row mobile layout for the homepage "Hot Right Now" deals
   (home/deals-ticker.php). Only that grid carries --hot-deals, so the
   Deals archive keeps its normal auto-fill layout. Card internals are
   tightened so a half-width card still reads cleanly; the deal image
   itself still fills its full holder (see .ccc-deal-card__thumb). */
@media (max-width: 767px) {
	.ccc-card-grid--hot-deals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}
	.ccc-card-grid--hot-deals .ccc-deal-card__body {
		padding: 0.75rem 0.875rem 0.875rem;
	}
	.ccc-card-grid--hot-deals .ccc-deal-card__title {
		font-size: 0.9375rem;
		margin-bottom: 0.3rem;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.ccc-card-grid--hot-deals .ccc-deal-card__merchant,
	.ccc-card-grid--hot-deals .ccc-deal-card__expiry {
		font-size: 0.75rem;
	}
	.ccc-card-grid--hot-deals .ccc-deal-card__cta {
		font-size: 0.8125rem;
		padding-block: 0.5rem;
	}
}

/* ---------- Deal card specifics ---------- */
.ccc-deal-card { display: flex; flex-direction: column; }
.ccc-deal-card--expired { opacity: 0.65; }
/* The deal image fills the whole image holder edge to edge: the holder
   keeps a fixed 3:2 box and the <img> is pinned to all four corners of it
   (position:absolute / inset:0), so it can never render smaller than the
   holder whatever width/height attributes WordPress puts on the tag. */
.ccc-deal-card__thumb-link { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ccc-bg); }
.ccc-deal-card__thumb { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ccc-deal-card__thumb--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}
.ccc-deal-card__badge {
	display: inline-block;
	background: var(--ccc-gold);
	color: #4A2E00;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	margin-bottom: 0.5rem;
}
.ccc-deal-card__title { font-size: 1rem; margin: 0 0 0.35rem; }
.ccc-deal-card__merchant { color: var(--ccc-muted); font-size: 0.8125rem; margin: 0 0 0.5rem; }
.ccc-deal-card__expiry { font-size: 0.8125rem; color: var(--ccc-danger); margin: 0.5rem 0; }
.ccc-deal-card__cta { width: 100%; margin-top: 0.5rem; }

/* ---------- Category grid ---------- */
.ccc-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccc-category-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 1.25rem 0.5rem;
	text-align: center;
	color: var(--ccc-ink);
	min-height: var(--ccc-tap-min);
	transition: border-color var(--ccc-motion) ease, transform var(--ccc-motion) ease;
}
.ccc-category-grid__item:hover { border-color: var(--ccc-brand); transform: translateY(-2px); color: var(--ccc-ink); }
.ccc-category-grid__icon { font-size: 1.75rem; display: inline-flex; align-items: center; justify-content: center; }
.ccc-category-grid__icon img { width: 32px; height: 32px; object-fit: cover; border-radius: var(--ccc-radius-sm, 6px); }
.ccc-category-grid__label { font-size: 0.875rem; font-weight: 600; }

/* ---------- Category → District selection screen ---------- */
.ccc-page-header--with-icon { display: flex; align-items: flex-start; gap: 0.9rem; }
.ccc-page-header--with-icon .ccc-page-header__icon {
	flex: 0 0 auto;
	font-size: 2rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: var(--ccc-radius-md);
	background: var(--ccc-surface-alt, var(--ccc-surface));
}
.ccc-page-header--with-icon .ccc-page-header__icon img { width: 36px; height: 36px; object-fit: cover; border-radius: var(--ccc-radius-sm, 6px); }
.ccc-district-select-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}
.ccc-district-select-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 1.1rem 0.5rem;
	text-align: center;
	color: var(--ccc-ink);
	min-height: var(--ccc-tap-min);
	transition: border-color var(--ccc-motion) ease, transform var(--ccc-motion) ease;
}
.ccc-district-select-grid__item:hover { border-color: var(--ccc-brand); transform: translateY(-2px); color: var(--ccc-ink); }
.ccc-district-select-grid__icon { color: var(--ccc-danger); }
.ccc-district-select-grid__icon .ccc-pin-icon { width: 28px; height: 28px; }
.ccc-district-select-grid__item:hover .ccc-district-select-grid__icon { transform: translateY(-2px); }
.ccc-district-select-grid__label { font-size: 0.875rem; font-weight: 600; }
.ccc-category-district-select__all { text-align: center; }

/* Shared inline "map pin" icon (ccc_get_map_pin_icon_svg()) — sizes to one
   text line by default; callers override width/height for a bigger pin. */
.ccc-pin-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
}

/* ---------- Steps ---------- */
/* Four square tiles in one row on tablet/desktop; exactly two per row
   (a 2x2 grid) on phones, per the site owner's request rather than
   letting them stack one-per-row on narrow screens. */
.ccc-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
@media (max-width: 767px) {
	.ccc-steps { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
.ccc-steps__item {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.25rem 1rem;
	border: 1px solid var(--ccc-line, #e6e6e6);
	border-radius: var(--ccc-radius-md, 12px);
	background: var(--ccc-surface, #fff);
}
.ccc-steps__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	aspect-ratio: 1 / 1;
	border-radius: var(--ccc-radius-md, 12px);
	background: rgba(11, 110, 79, 0.1);
	color: var(--ccc-brand);
	margin-bottom: 0.9rem;
	font-weight: 800;
	font-size: 1.25rem;
}
.ccc-steps__number {
	position: absolute;
	top: -8px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ccc-brand);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 0 0 2px var(--ccc-surface, #fff);
}
.ccc-steps__title { font-size: 1.0625rem; margin: 0 0 0.4rem; }
.ccc-steps__desc { color: var(--ccc-muted); font-size: 0.9375rem; margin: 0; }
@media (max-width: 767px) {
	.ccc-steps__icon { width: 52px; height: 52px; }
	.ccc-steps__title { font-size: 0.9375rem; }
	.ccc-steps__desc { font-size: 0.8125rem; }
}

/* ---------- Testimonials ---------- */
.ccc-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}
.ccc-testimonial-card { padding: 1.5rem; margin: 0; }
.ccc-testimonial-card__quote { margin: 0 0 1rem; font-size: 0.9375rem; }
.ccc-testimonial-card__quote p { margin: 0; }
.ccc-testimonial-card__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.ccc-testimonial-card__author { font-weight: 700; font-size: 0.875rem; }
.ccc-testimonial-card__amount { color: var(--ccc-brand-2); font-weight: 700; font-size: 0.8125rem; }

/* ---------- App teaser ---------- */
.ccc-app-teaser { background: var(--ccc-ink); color: #fff; text-align: center; }
.ccc-app-teaser__inner { max-width: 560px; margin-inline: auto; }
.ccc-app-teaser__links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.ccc-app-teaser .ccc-btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

/* ---------- Newsletter ---------- */
.ccc-newsletter__heading { font-size: 1.125rem; margin: 0 0 0.75rem; }
.ccc-newsletter-form__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ccc-newsletter-form__row input[type="email"] { flex: 1; min-width: 220px; margin-bottom: 0; }
.ccc-newsletter-section__inner { max-width: 480px; margin-inline: auto; text-align: center; }
.ccc-newsletter-section .ccc-newsletter-form__row input[type="email"] { color: var(--ccc-ink); background: var(--ccc-bg); border: 1px solid var(--ccc-line); }

/* ---------- SEO block ---------- */
.ccc-seo-block__inner { max-width: 760px; margin-inline: auto; }
.ccc-seo-block__content { color: var(--ccc-muted); }

/* ---------- Accordion (FAQ) ---------- */
.ccc-accordion-item { border-bottom: 1px solid var(--ccc-line); }
.ccc-accordion-heading { margin: 0; }
.ccc-accordion-trigger {
	width: 100%;
	text-align: start;
	background: none;
	border: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 1rem;
	font-weight: 700;
	font-size: 1rem;
	color: var(--ccc-ink);
	cursor: pointer;
	min-height: var(--ccc-tap-min);
}
.ccc-accordion-trigger__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	position: relative;
}
.ccc-accordion-trigger__icon::before,
.ccc-accordion-trigger__icon::after {
	content: "";
	position: absolute;
	background: var(--ccc-brand);
	transition: transform var(--ccc-motion) ease;
}
.ccc-accordion-trigger__icon::before { top: 8px; inset-inline-start: 0; width: 18px; height: 2px; }
.ccc-accordion-trigger__icon::after { top: 0; inset-inline-start: 8px; width: 2px; height: 18px; }
.ccc-accordion-trigger[aria-expanded="true"] .ccc-accordion-trigger__icon::after { transform: scaleY(0); }
.ccc-accordion-panel { padding-bottom: 1rem; color: var(--ccc-muted); }
.ccc-accordion-panel p { margin: 0; }

/* ---------- Archive filters ---------- */
/* The form itself: a stacked column of fields. It's used both inside the
   slide-in drawer (narrow screens) and inside the static sidebar
   (wide screens) below, so it's written "stacked" by default rather than
   as a horizontal bar. */
.ccc-archive-filters {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.ccc-archive-filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
}
.ccc-archive-filters__field input,
.ccc-archive-filters__field select {
	min-height: var(--ccc-tap-min);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	padding-inline: 0.75rem;
	font-size: 0.9375rem;
	background: var(--ccc-bg);
}
.ccc-archive-filters__submit { width: 100%; }
.ccc-archive__count { color: var(--ccc-muted); font-size: 0.875rem; margin-bottom: 1rem; }

/* ---------- Archive filters: "inline" variant (no button/drawer) ---------- */
/* Used by the homepage "Find Your Store" widget (ccc_render_archive_filters()
   called with inline => true). On phones this lays the fields (Keyword,
   Category, District, Area) out as a fixed 2-column grid — two short rows
   instead of a single side-scrolling row — with the "Apply filters" button
   spanning both columns underneath. */
.ccc-archive-filters--inline {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 0.75rem;
	align-items: end;
}
.ccc-archive-filters--inline .ccc-archive-filters__field {
	width: auto;
	min-width: 0;
}
.ccc-archive-filters--inline .ccc-archive-filters__submit {
	grid-column: 1 / -1;
	width: 100%;
	white-space: nowrap;
}

/* Tablet/desktop: plenty of width, so switch to a single wrapping flex row
   instead of the 2-column grid used on phones. */
@media (min-width: 640px) {
	.ccc-archive-filters--inline {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.75rem;
	}
	.ccc-archive-filters--inline .ccc-archive-filters__field {
		flex: 1 1 150px;
		width: auto;
	}
	.ccc-archive-filters--inline .ccc-archive-filters__submit {
		flex: 0 0 auto;
		width: auto;
	}
}

/* ---------- Archive layout: "Filters" button + side panel ---------- */
/* Narrow screens (the default): the filter button sits above the results,
   and the fieldset itself is an off-canvas drawer that slides in from the
   left over a dimmed backdrop. Nothing here requires JS to find the
   results — the form posts as a normal GET request either way. */
.ccc-archive-layout { display: block; }

.ccc-filter-toggle { margin-bottom: 1.25rem; }

.ccc-filter-panel__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 400;
	opacity: 0;
	transition: opacity var(--ccc-motion) ease;
}
.ccc-filter-panel__backdrop.is-open { opacity: 1; }
.ccc-filter-panel__backdrop[hidden] { display: none; }

.ccc-filter-panel {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(320px, 85vw);
	overflow-y: auto;
	background: var(--ccc-bg);
	border-right: 1px solid var(--ccc-line);
	box-shadow: var(--ccc-shadow-md);
	padding: 1.25rem;
	z-index: 410;
	transform: translateX(-100%);
	transition: transform var(--ccc-motion) ease;
}
.ccc-filter-panel.is-open { transform: translateX(0); }

.ccc-filter-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--ccc-line);
}
.ccc-filter-panel__title { font-size: 1.0625rem; margin: 0; }
.ccc-filter-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ccc-tap-min);
	height: var(--ccc-tap-min);
	font-size: 1.5rem;
	line-height: 1;
	background: none;
	border: none;
	color: var(--ccc-ink);
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.ccc-filter-panel,
	.ccc-filter-panel__backdrop { transition: none; }
}

/* Wide screens: no drawer, no backdrop, no toggle button — the fields lay
   out as a single horizontal bar above the results, same spot and shape
   as the pre-1.23.0 filter bar. Narrow screens (the default, above) keep
   the "Filters" button + slide-in side panel; this query only changes
   desktop/tablet. */
@media (min-width: 900px) {
	.ccc-archive-layout { display: block; }
	.ccc-filter-toggle { display: none; }
	.ccc-filter-panel__backdrop { display: none; }
	.ccc-filter-panel {
		position: static;
		left: auto;
		height: auto;
		width: auto;
		max-height: none;
		overflow: visible;
		background: none;
		border: none;
		border-radius: 0;
		box-shadow: none;
		padding: 0;
		margin-bottom: 1.5rem;
		z-index: auto;
		transform: none;
	}
	.ccc-filter-panel__header { display: none; }
	.ccc-archive-filters {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: end;
		background: var(--ccc-surface);
		border: 1px solid var(--ccc-line);
		border-radius: var(--ccc-radius-md);
		padding: 1.25rem;
	}
	.ccc-archive-filters__field { flex: 1 1 150px; }
	.ccc-archive-filters__submit { flex: 0 0 auto; width: auto; }
}

/* ---------- Page header / generic page content ---------- */
.ccc-page-header { margin-bottom: 1.5rem; }
.ccc-page-header__title { font-size: 1.75rem; margin: 0 0 0.5rem; }
.ccc-page-header__desc { color: var(--ccc-muted); }
.ccc-page-content { margin-bottom: 2rem; }
.ccc-page-cta { text-align: center; margin-block: 2.5rem; }

/* ---------- Notices ---------- */
.ccc-notice {
	border-radius: var(--ccc-radius-sm);
	padding: 0.9rem 1.1rem;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
}
.ccc-notice--info { background: rgba(37, 99, 235, 0.08); color: #1e3a8a; }
.ccc-notice--warning { background: rgba(245, 158, 11, 0.12); color: #7c4a03; }

/* ---------- Store hub (single-ccc_store.php) ---------- */
.ccc-store-hub__header {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}
.ccc-store-hub__logo {
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
}
.ccc-store-hub__title { margin: 0 0 0.6rem; font-size: 1.75rem; }
.ccc-store-hub__categories { color: var(--ccc-muted); margin: 0.4rem 0 1rem; }
.ccc-store-hub__inactive-note { color: var(--ccc-muted); font-style: italic; }
.ccc-store-hub__facts {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	border-block: 1px solid var(--ccc-line);
	padding-block: 1rem;
	margin-bottom: 1.5rem;
}
.ccc-fact { display: flex; flex-direction: column; gap: 0.2rem; }
.ccc-fact__label { font-size: 0.75rem; color: var(--ccc-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.ccc-fact__value { font-weight: 700; }
.ccc-store-hub__content,
.ccc-deal-hub__content { max-width: 760px; margin-bottom: 2rem; color: var(--ccc-muted); }
.ccc-store-hub__exclusions { margin-bottom: 2rem; }
.ccc-store-hub__coupons,
.ccc-store-hub__deals,
.ccc-deal-hub__store { margin-bottom: 2rem; }

.ccc-coupon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.ccc-coupon-list__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	background: var(--ccc-surface);
	border: 1px dashed var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	padding: 0.75rem 1rem;
	flex-wrap: wrap;
}
.ccc-coupon-list__code {
	background: var(--ccc-bg);
	border-radius: var(--ccc-radius-sm);
	padding: 0.3rem 0.6rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* ---------- Deal hub (single-ccc_deal.php) ---------- */
.ccc-deal-hub__header { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.ccc-deal-hub__thumb { width: 220px; max-width: 100%; border-radius: var(--ccc-radius-md); overflow: hidden; }
.ccc-deal-hub__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ccc-deal-hub__thumb--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	min-height: 140px;
}
.ccc-deal-hub__title { margin: 0 0 0.5rem; font-size: 1.5rem; }
.ccc-deal-hub__expiry { color: var(--ccc-muted); margin: 0.6rem 0; }
.ccc-deal-hub__code code {
	background: var(--ccc-bg);
	border-radius: var(--ccc-radius-sm);
	padding: 0.3rem 0.6rem;
	font-weight: 700;
}
.ccc-deal-hub__inactive-note { color: var(--ccc-muted); font-style: italic; }

/* ---------- Search results ---------- */
.ccc-search-results__form {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
	margin-bottom: 1.5rem;
}
.ccc-search-results__form input {
	flex: 1;
	min-height: var(--ccc-tap-min);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	padding-inline: 0.9rem;
}
.ccc-search-results__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}
.ccc-search-results__type {
	text-transform: uppercase;
	font-size: 0.6875rem;
	letter-spacing: 0.05em;
	color: var(--ccc-brand);
	font-weight: 700;
	margin: 0 0 0.25rem;
}

/* ---------- 404 ---------- */
.ccc-404__search {
	display: flex;
	gap: 0.5rem;
	max-width: 420px;
	margin: 1.5rem auto;
}
.ccc-404__search input {
	flex: 1;
	min-height: var(--ccc-tap-min);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	padding-inline: 0.9rem;
}
.ccc-404__featured { margin-top: 3rem; }
.ccc-404__featured h2 { text-align: center; margin-bottom: 1.25rem; }

/* ---------- Status explainer (How it Works page) ---------- */
.ccc-status-list { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.ccc-status-list__item { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; }
.ccc-status-list__item dt { font-weight: 700; color: var(--ccc-brand); }
.ccc-status-list__item dd { margin: 0; color: var(--ccc-muted); }

@media (max-width: 600px) {
	.ccc-status-list__item { grid-template-columns: 1fr; gap: 0.2rem; }
	.ccc-store-hub__header,
	.ccc-deal-hub__header { flex-direction: column; }
}

/* =====================================================================
   Batch 4 — member dashboard, withdraw, referrals
   ===================================================================== */

/* ---------- Login gate ---------- */
.ccc-login-gate__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1rem;
}

/* ---------- Wallet summary / stat tiles (shared by dashboard + referrals) ---------- */
.ccc-wallet-summary,
.ccc-referral-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin-block: 1.5rem;
}
.ccc-wallet-stat {
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.ccc-wallet-stat--muted { background: var(--ccc-bg); }
.ccc-wallet-stat__label { font-size: 0.8125rem; color: var(--ccc-muted); }
.ccc-wallet-stat__value {
	font-size: 1.5rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.ccc-dashboard__cta-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.ccc-dashboard__section {
	margin-bottom: 2.5rem;
}
.ccc-dashboard__section h2 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.ccc-dashboard__empty {
	color: var(--ccc-muted);
	background: var(--ccc-bg);
	border-radius: var(--ccc-radius-md);
	padding: 1.25rem;
}

/* ---------- Accessible data table ---------- */
.ccc-table-wrap { overflow-x: auto; }
.ccc-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	overflow: hidden;
}
.ccc-table th,
.ccc-table td {
	text-align: start;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--ccc-line);
	font-size: 0.9375rem;
}
.ccc-table thead th {
	background: var(--ccc-bg);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--ccc-muted);
}
.ccc-table tbody tr:last-child td { border-bottom: 0; }

.ccc-status-badge {
	display: inline-block;
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 700;
}
.ccc-status-badge--pending { background: rgba(245, 158, 11, 0.14); color: #92400E; }
.ccc-status-badge--confirmed { background: rgba(37, 99, 235, 0.1); color: #1e3a8a; }
.ccc-status-badge--available { background: rgba(22, 163, 74, 0.12); color: var(--ccc-brand-2); }
.ccc-status-badge--paid { background: rgba(11, 110, 79, 0.14); color: var(--ccc-brand); }
.ccc-status-badge--missing { background: rgba(220, 38, 38, 0.1); color: var(--ccc-danger); }
.ccc-status-badge--cancelled { background: var(--ccc-line); color: var(--ccc-muted); }

@media (max-width: 640px) {
	.ccc-table thead { display: none; }
	.ccc-table, .ccc-table tbody, .ccc-table tr, .ccc-table td { display: block; width: 100%; }
	.ccc-table tr { border-bottom: 1px solid var(--ccc-line); padding: 0.5rem 0; }
	.ccc-table td {
		border-bottom: 0;
		display: flex;
		justify-content: space-between;
		gap: 1rem;
	}
	.ccc-table td::before {
		content: attr(data-label);
		font-weight: 700;
		color: var(--ccc-muted);
		font-size: 0.75rem;
	}
}

/* ---------- Generic accessible form (inquiry / withdraw) ---------- */
.ccc-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 1.5rem;
}
.ccc-form__row { display: flex; flex-direction: column; gap: 0.4rem; }
.ccc-form__row--full { grid-column: 1 / -1; }
.ccc-form__row label { font-size: 0.8125rem; font-weight: 700; }
.ccc-form__row input,
.ccc-form__row select,
.ccc-form__row textarea {
	min-height: var(--ccc-tap-min);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	padding-inline: 0.75rem;
	font-size: 0.9375rem;
	font-family: inherit;
	background: var(--ccc-bg);
}
.ccc-form__row textarea { padding-block: 0.6rem; min-height: 80px; }
.ccc-form button[type="submit"] { grid-column: 1 / -1; justify-self: start; }

/* ---------- Withdraw page ---------- */
.ccc-withdraw__balance {
	background: var(--ccc-hero-grad);
	color: #fff;
	border-radius: var(--ccc-radius-lg);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1.5rem;
}
.ccc-withdraw__balance-label { font-size: 0.875rem; opacity: 0.85; }
.ccc-withdraw__balance-value { font-size: 2.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ccc-withdraw__balance-threshold { font-size: 0.8125rem; opacity: 0.8; }

.ccc-withdraw-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}
.ccc-withdraw-method { padding: 1.5rem; }
.ccc-withdraw-method h2 { font-size: 1.0625rem; margin: 0 0 1rem; }
.ccc-withdraw-method .ccc-form { grid-template-columns: 1fr; padding: 0; border: 0; }
.ccc-withdraw__history { margin-top: 2.5rem; }

/* ---------- Referrals page ---------- */
.ccc-referral-link-box {
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 1.5rem;
	margin-bottom: 1rem;
}
.ccc-referral-link-box__row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.ccc-referral-link-box__input {
	flex: 1;
	min-width: 200px;
	min-height: var(--ccc-tap-min);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	padding-inline: 0.9rem;
	background: var(--ccc-bg);
	font-family: monospace;
	font-size: 0.875rem;
}
.ccc-referral-link-box__note { color: var(--ccc-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.ccc-referral-share { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* =====================================================================
   Batch 5 — breadcrumbs, details/accordion block styling, focus polish
   ===================================================================== */

.ccc-breadcrumbs { margin-bottom: 1rem; font-size: 0.8125rem; color: var(--ccc-muted); }
.ccc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccc-breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-inline-start: 0.35rem;
	color: var(--ccc-line);
}
.ccc-breadcrumbs a { color: var(--ccc-muted); }
.ccc-breadcrumbs a:hover { color: var(--ccc-brand); }
.ccc-breadcrumbs [aria-current="page"] { color: var(--ccc-ink); font-weight: 600; }

/* Style the native core/details block the same as our custom accordion
   so the FAQ pattern (Batch 5) and the PHP-rendered FAQ (Batch 3) match. */
.wp-block-details {
	border-bottom: 1px solid var(--ccc-line);
	padding-block: 0.25rem;
}
.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
	padding-block: 0.75rem;
	min-height: var(--ccc-tap-min);
}

/* Current nav item, now that aria-current="page" is present */
.ccc-nav a[aria-current="page"] { color: var(--ccc-brand); }

/* Ensure every interactive element sized inside a grid still has a
   visible, non-color-only focus ring (belt-and-braces on top of the
   global :focus-visible rule near the top of this file). */
.ccc-btn:focus-visible,
.ccc-accordion-trigger:focus-visible,
.ccc-category-grid__item:focus-visible,
.ccc-district-select-grid__item:focus-visible,
.ccc-copy-btn:focus-visible {
	outline: 3px solid var(--ccc-info);
	outline-offset: 2px;
}

/* ---------- Coupon card (audit fix: archive-ccc_coupon.php / single-ccc_coupon.php) ---------- */
.ccc-coupon-card { text-align: center; padding: 1.5rem; }
.ccc-coupon-card__logo { display: inline-flex; margin-bottom: 0.75rem; }
.ccc-coupon-card__title { font-size: 1.0625rem; margin: 0 0 0.4rem; }
.ccc-coupon-card__merchant { color: var(--ccc-muted); font-size: 0.8125rem; margin: 0 0 0.75rem; }
.ccc-coupon-card__code {
	display: inline-block;
	background: var(--ccc-bg);
	border: 1px dashed var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	padding: 0.35rem 0.9rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	margin-bottom: 0.6rem;
}
.ccc-coupon-card__expiry { font-size: 0.75rem; color: var(--ccc-muted); margin-bottom: 0.75rem; }
.ccc-coupon-card__cta { width: 100%; }

/* ---------- Blog post / generic Page (audit fix: page.php / single.php / archive.php) ---------- */
.ccc-post__meta { color: var(--ccc-muted); font-size: 0.875rem; }
.ccc-post__thumb,
.ccc-page__thumb { margin-bottom: 1.5rem; border-radius: var(--ccc-radius-md); overflow: hidden; }
.ccc-post__footer { margin-top: 2rem; font-size: 0.875rem; color: var(--ccc-muted); }
.ccc-page-links { margin-top: 1.5rem; }

/* ---------- Comments (audit fix: comments.php) ---------- */
.ccc-comments { margin-top: 3rem; border-top: 1px solid var(--ccc-line); padding-top: 2rem; }
.ccc-comments__heading { font-size: 1.25rem; margin-bottom: 1rem; }
.ccc-comment-list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.ccc-comment-list .comment-body {
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 1rem 1.25rem;
}
.ccc-comment-list .comment-author img { border-radius: 50%; vertical-align: middle; margin-inline-end: 0.5rem; }
.ccc-comment-form { margin-top: 1.5rem; }

/* ---------- DPDP/GDPR registration consent (audit fix: inc/security.php) ---------- */
.ccc-registration-consent { font-size: 0.875rem; margin-block: 1rem; }
.ccc-registration-consent input[type="checkbox"] { margin-inline-end: 0.5rem; }

/* =====================================================================
   Prompt C audit fixes
   ===================================================================== */

/* ---------- Typeahead search results ---------- */
.ccc-header__search,
.ccc-hero__search {
	position: relative;
}
.ccc-typeahead-results {
	position: absolute;
	top: calc(100% + 0.4rem);
	inset-inline-start: 0;
	inset-inline-end: 0;
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	box-shadow: var(--ccc-shadow-md);
	list-style: none;
	margin: 0;
	padding: 0.4rem;
	z-index: 200;
	max-height: 320px;
	overflow-y: auto;
	text-align: start;
}
.ccc-typeahead-results__item { border-radius: var(--ccc-radius-sm); }
.ccc-typeahead-results__item a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.6rem;
	color: var(--ccc-ink);
	font-size: 0.9375rem;
	border-radius: var(--ccc-radius-sm);
}
.ccc-typeahead-results__item[aria-selected="true"] a,
.ccc-typeahead-results__item a:hover {
	background: var(--ccc-bg);
}
.ccc-typeahead-results__type {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ccc-brand);
	font-weight: 700;
	flex-shrink: 0;
}

/* ---------- Newsletter consent checkbox ---------- */
.ccc-newsletter-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--ccc-muted);
	margin-top: 0.6rem;
}
.ccc-newsletter-form__consent input[type="checkbox"] {
	margin-top: 0.2rem;
	flex-shrink: 0;
}
.ccc-newsletter-section .ccc-newsletter-form__consent { color: rgba(255,255,255,0.75); }
.ccc-newsletter-form__consent a { color: inherit; text-decoration: underline; }

/* ---------- Registration consent (core wp-login.php register form) ---------- */
.ccc-registration-consent {
	font-size: 0.8125rem;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.ccc-registration-consent input[type="checkbox"] { margin-top: 0.2rem; }

/* ---------- Join page ---------- */
.ccc-join__inner {
	max-width: 560px;
	margin-inline: auto;
}
.ccc-join__header { text-align: center; }
.ccc-join__referral-banner { text-align: center; }
.ccc-join__errors {
	margin: 0;
	padding-inline-start: 1.25rem;
}
.ccc-join__form {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin-top: 1.5rem;
}
.ccc-join__consent-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 400;
}
.ccc-join__consent-label input[type="checkbox"] { margin-top: 0.2rem; }
.ccc-join__submit { grid-column: 1 / -1; width: 100%; justify-content: center; }
.ccc-join__login-link {
	grid-column: 1 / -1;
	text-align: center;
	font-size: 0.875rem;
	color: var(--ccc-muted);
	margin: 0;
}

/* Honeypot: invisible to sighted users, keyboard users, and screen readers. */
.ccc-join__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Become a Partner (store registration) page ---------- */
.ccc-store-register__inner {
	max-width: 720px;
	margin-inline: auto;
}
.ccc-store-register__form {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-top: 1rem;
}
.ccc-store-register__section-title {
	grid-column: 1 / -1;
	font-size: 1.0625rem;
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--ccc-line);
}
.ccc-store-register__form > .ccc-store-register__section-title:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.ccc-store-register__radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}
.ccc-store-register__radio-group label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	font-size: 0.9375rem;
}
.ccc-store-register__submit { grid-column: 1 / -1; width: 100%; justify-content: center; }
.ccc-required { color: var(--ccc-danger, #DC2626); }
.ccc-form__hint {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--ccc-muted);
}

/* ---------- Store Locator page ---------- */
.ccc-locator-map {
	width: 100%;
	height: 400px;
	border-radius: var(--ccc-radius-md);
	margin-bottom: 1.5rem;
	background: var(--ccc-bg);
}
.ccc-locator-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}
.ccc-locator-item { overflow: hidden; }
/* Featured-image holder, same full-bleed-crop treatment as the store
   archive/category cards (.ccc-store-card__logo-wrap): a fixed-height box
   that the photo fills and crops to cover, instead of a small inline logo
   floating in the card body. ccc_store_logo_html() still falls back to the
   round initials badge (.ccc-store-card__logo--placeholder) when a store
   has no featured image/logo — that keeps its own fixed size and stays
   centered rather than being stretched. */
.ccc-locator-item__media-link { display: block; }
.ccc-locator-item__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ccc-bg);
	height: 140px;
	overflow: hidden;
	position: relative;
}
.ccc-locator-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0;
	max-height: none;
}
.ccc-locator-item__body { padding: 1.25rem; }
.ccc-locator-item__title { font-size: 1.0625rem; margin: 0.25rem 0 0.5rem; }
.ccc-locator-item__address {
	color: var(--ccc-muted);
	font-size: 0.875rem;
	margin: 0.75rem 0 0.5rem;
	line-height: 1.5;
}
.ccc-locator-item__phone { font-size: 0.875rem; margin: 0 0 0.75rem; }
.ccc-locator-item__phone a { color: var(--ccc-ink); }
.ccc-locator-item__directions { width: 100%; }
.ccc-locator-item__location { margin: 0.25rem 0 0; }

/* Four columns on phones, as requested — a denser "near me" grid than the
   default auto-fill (which only fits one card per row below ~280px). Card
   internals are tightened up the same way .ccc-card-grid--stores already
   does at this breakpoint, so a quarter-width card still reads cleanly:
   shorter image strip, smaller type, the address clipped to two lines
   (still legible, but a full multi-line address no longer pushes the
   "Get Directions" button below the fold of a tiny card). */
@media (max-width: 767px) {
	.ccc-locator-list {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.5rem;
	}
	.ccc-locator-item__media { height: 64px; }
	.ccc-locator-item__body { padding: 0.5rem 0.5rem 0.625rem; }
	.ccc-locator-item__title { font-size: 0.75rem; line-height: 1.2; margin: 0.35rem 0 0.3rem; }
	.ccc-locator-item__location,
	.ccc-locator-item__phone {
		font-size: 0.6875rem;
		margin: 0 0 0.35rem;
	}
	.ccc-locator-item__address {
		font-size: 0.6875rem;
		margin: 0.35rem 0;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.ccc-locator-item__directions {
		padding: 0.4rem 0.5rem;
		font-size: 0.6875rem;
	}
	.ccc-locator-item .ccc-rate-pill {
		padding: 0.2rem 0.5rem;
		font-size: 0.6875rem;
	}
}

/* ---------- Store hub location section (single-ccc_store.php) ---------- */
.ccc-store-hub__location { margin-bottom: 2rem; }
.ccc-store-hub__location-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: start;
}
.ccc-store-hub__address { color: var(--ccc-muted); line-height: 1.6; margin: 0 0 0.75rem; }
.ccc-store-hub__phone { margin: 0 0 1rem; }
.ccc-store-hub__phone a { color: var(--ccc-ink); font-weight: 600; }
.ccc-store-hub__map iframe { border-radius: var(--ccc-radius-md); width: 100%; }
.ccc-store-hub__location-crumb { margin: 0 0 0.5rem; }

/* District › Sub-location breadcrumb tag, reused on the store hub and
   the Store Locator list. */
.ccc-store-hub__location-tag {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ccc-brand);
}
.ccc-store-hub__location-tag a { color: inherit; text-decoration: none; }
.ccc-store-hub__location-tag a:hover { text-decoration: underline; }
.ccc-store-hub__location-tag span[aria-hidden] { color: var(--ccc-muted); font-weight: 400; }

@media (max-width: 700px) {
	.ccc-store-hub__location-inner { grid-template-columns: 1fr; }
}

/* ---------- Store photo gallery (horizontal bar + lightbox) ---------- */
.ccc-store-gallery { margin-bottom: 2rem; }
.ccc-store-gallery__track {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding: 0 0 0.5rem;
	margin: 0;
	list-style: none;
	/* A visible (if subtle) scrollbar is the only affordance telling a
	   mouse/trackpad user there's more to scroll — hiding it entirely
	   would make the strip look like a dead end past the fold. */
	scrollbar-width: thin;
}
.ccc-store-gallery__item { flex: 0 0 auto; scroll-snap-align: start; }
.ccc-store-gallery__thumb {
	display: block;
	width: 160px;
	height: 110px;
	padding: 0;
	border: none;
	border-radius: var(--ccc-radius-md);
	overflow: hidden;
	cursor: zoom-in;
	background: var(--ccc-bg);
}
.ccc-store-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccc-store-gallery__thumb:focus-visible {
	outline: 2px solid var(--ccc-brand);
	outline-offset: 2px;
}

.ccc-gallery-lightbox-open { overflow: hidden; }
.ccc-gallery-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 2rem;
}
.ccc-gallery-lightbox.is-open { display: flex; }
.ccc-gallery-lightbox__image {
	max-width: min(92vw, 1100px);
	max-height: 88vh;
	object-fit: contain;
	border-radius: var(--ccc-radius-md);
}
.ccc-gallery-lightbox__close,
.ccc-gallery-lightbox__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: var(--ccc-tap-min);
	min-height: var(--ccc-tap-min);
}
.ccc-gallery-lightbox__close:hover,
.ccc-gallery-lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.ccc-gallery-lightbox__close { top: 1rem; right: 1rem; font-size: 1.75rem; line-height: 1; }
.ccc-gallery-lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 1.25rem; }
.ccc-gallery-lightbox__nav--prev { left: 1rem; }
.ccc-gallery-lightbox__nav--next { right: 1rem; }

@media (max-width: 600px) {
	.ccc-store-gallery__thumb { width: 128px; height: 88px; }
	.ccc-gallery-lightbox { padding: 1rem; }
}

/* =====================================================================
   Dashboard & Referrals visual polish
   ===================================================================== */

/* ---------- Page header accent (dashboard, referrals, withdraw) ---------- */
.ccc-dashboard .ccc-page-header,
.ccc-referrals .ccc-page-header,
.ccc-withdraw .ccc-page-header {
	position: relative;
	padding-bottom: 1.25rem;
	margin-bottom: 2rem;
}
.ccc-dashboard .ccc-page-header::after,
.ccc-referrals .ccc-page-header::after,
.ccc-withdraw .ccc-page-header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 64px;
	height: 4px;
	border-radius: 999px;
	background: var(--ccc-hero-grad);
}

/* ---------- Wallet stat cards: icon + color treatment ---------- */
.ccc-wallet-stat--icon {
	position: relative;
	padding-top: 1.35rem;
	overflow: hidden;
}
.ccc-wallet-stat__icon {
	position: absolute;
	top: 0.9rem;
	right: 1rem;
	font-size: 1.5rem;
	opacity: 0.85;
	line-height: 1;
}
.ccc-wallet-stat--icon::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 4px;
	height: 100%;
	background: var(--ccc-line);
}
.ccc-wallet-stat--available::before { background: var(--ccc-brand-2); }
.ccc-wallet-stat--pending::before { background: var(--ccc-gold); }
.ccc-wallet-stat--confirmed::before { background: var(--ccc-info); }
.ccc-wallet-stat--muted::before { background: var(--ccc-brand); }
.ccc-wallet-stat--neutral::before { background: var(--ccc-brand); }

.ccc-wallet-stat--available { background: linear-gradient(180deg, rgba(22, 163, 74, 0.06), transparent 60%); }
.ccc-wallet-stat--pending { background: linear-gradient(180deg, rgba(245, 158, 11, 0.07), transparent 60%); }
.ccc-wallet-stat--confirmed:not(.ccc-wallet-stat--muted) { background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 60%); }

.ccc-wallet-stat--hero {
	grid-column: span 1;
}
.ccc-wallet-stat--hero .ccc-wallet-stat__value {
	font-size: 1.75rem;
	color: var(--ccc-brand);
}

@media (min-width: 640px) {
	.ccc-wallet-summary { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

/* ---------- My Referrals list ---------- */
.ccc-my-referrals { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.ccc-my-referrals h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.ccc-referral-people {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.ccc-referral-people__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--ccc-surface);
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-md);
	padding: 0.9rem 1.1rem;
	flex-wrap: wrap;
	transition: box-shadow var(--ccc-motion) ease, transform var(--ccc-motion) ease;
}
.ccc-referral-people__item:hover {
	box-shadow: var(--ccc-shadow-sm);
	transform: translateY(-1px);
}
.ccc-referral-people__avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(11, 110, 79, 0.1);
	color: var(--ccc-brand);
	font-weight: 800;
	font-size: 0.9375rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ccc-referral-people__info {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1 1 160px;
	min-width: 0;
}
.ccc-referral-people__name { font-weight: 700; }
.ccc-referral-people__joined { font-size: 0.75rem; color: var(--ccc-muted); }
.ccc-referral-people__status { flex-shrink: 0; }
.ccc-referral-people__earned {
	flex-shrink: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--ccc-brand-2);
	white-space: nowrap;
}

.ccc-empty-state--compact {
	padding: 1.5rem;
	text-align: left;
	background: var(--ccc-bg);
	border-radius: var(--ccc-radius-md);
}
.ccc-empty-state--compact p { margin: 0; color: var(--ccc-muted); }

@media (max-width: 560px) {
	.ccc-referral-people__item { flex-direction: column; align-items: flex-start; }
	.ccc-referral-people__status,
	.ccc-referral-people__earned { margin-inline-start: 60px; }
}

/* =====================================================================
   Account "app shell": the slim top bar + hamburger-only menu drawer that
   header.php/footer.php swap in for the member account pages (My Wallet,
   My Purchases, My Referrals Purchases, Withdraw, Refer and Earn, My
   Referrals) AND the store-owner dashboard pages (Store Dashboard, Store
   Profile, My Deals & Coupons, Payout Requests, Performance — see
   ccc_is_store_dashboard_page() in inc/store-account.php) in place of the
   normal site header/footer — see ccc_is_account_dashboard_page() in
   inc/wallet.php for the shopper side. The whole point is to give the
   dashboard the full page: just a logo top-left and one hamburger button
   below the 1024px desktop breakpoint. For a logged-in member/store owner
   that button opens their own menu — styled further down as
   .ccc-account-sidebar or .ccc-store-sidebar, the SAME markup/CSS pattern
   used nowhere else on the page — as an off-canvas drawer below 1024px,
   or a permanent column at 1024px and up; .ccc-app-menu-panel below is
   only the (plain, white) fallback shown to a logged-out visitor, or a
   logged-in shopper/store-owner viewing the "other" dashboard they don't
   have an account for.
   ===================================================================== */

.ccc-app-bar {
	background: var(--ccc-surface);
	border-bottom: 1px solid var(--ccc-line);
	position: sticky;
	top: 0;
	z-index: 100;
}
.ccc-app-bar__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 1rem;
}
.ccc-app-bar__brand { min-width: 0; }
.ccc-app-bar__brand img,
.ccc-app-bar__brand .custom-logo-link img {
	display: block;
	height: auto;
	max-height: 34px;
	width: auto;
	max-width: 160px;
}

/* Unlike .ccc-header__menu-toggle (hidden on desktop, see further down),
   this toggle is the ONLY way into the site menu on this page, so it's
   visible at every width. */
.ccc-app-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 1px solid var(--ccc-line);
	border-radius: var(--ccc-radius-sm);
	width: var(--ccc-tap-min);
	height: var(--ccc-tap-min);
	flex-shrink: 0;
	cursor: pointer;
}

.ccc-app-menu-panel__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 400;
	opacity: 0;
	transition: opacity var(--ccc-motion) ease;
}
.ccc-app-menu-panel__backdrop.is-open { opacity: 1; }
.ccc-app-menu-panel__backdrop[hidden] { display: none; }

.ccc-app-menu-panel {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(300px, 85vw);
	overflow-y: auto;
	background: var(--ccc-surface);
	border-right: 1px solid var(--ccc-line);
	box-shadow: var(--ccc-shadow-md);
	padding: 1.25rem;
	z-index: 410;
	transform: translateX(-100%);
	transition: transform var(--ccc-motion) ease;
}
.ccc-app-menu-panel.is-open { transform: translateX(0); }

.ccc-app-menu-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--ccc-line);
}
.ccc-app-menu-panel__title { font-size: 1.0625rem; margin: 0; font-weight: 800; }
.ccc-app-menu-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ccc-tap-min);
	height: var(--ccc-tap-min);
	font-size: 1.5rem;
	line-height: 1;
	background: none;
	border: none;
	color: var(--ccc-ink);
	cursor: pointer;
}
.ccc-app-menu-panel__nav { margin-bottom: 1.5rem; }
/* The regular .ccc-nav is a horizontal row (header strip); inside this
   vertical drawer the same menu reads as a plain stacked list instead. */
.ccc-nav--vertical {
	flex-direction: column;
	gap: 0;
}
.ccc-nav--vertical li { border-bottom: 1px solid var(--ccc-line); }
.ccc-nav--vertical a { display: block; padding-block: 0.85rem; }

.ccc-app-menu-panel__utility {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ccc-line);
}
.ccc-app-menu-panel__utility .ccc-btn,
.ccc-app-menu-panel__utility .ccc-wallet-chip { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
	.ccc-app-menu-panel,
	.ccc-app-menu-panel__backdrop { transition: none; }
}

/* =====================================================================
   Account-style dashboard layout: shared left sidebar + content, used by
   both the shopper account pages (My Purchases, My Referrals Purchases,
   My Wallet, Withdraw, Refer and Earn, My Referrals) AND the store-owner
   dashboard pages (Store Dashboard, Store Profile, My Deals & Coupons,
   Payout Requests, Performance) — same .ccc-account-layout/
   .ccc-account-content classes for both, so the two look and behave
   identically; only the sidebar inside the drawer differs
   (.ccc-account-sidebar vs .ccc-store-sidebar, further down).
   ===================================================================== */

/* This layout only ever appears on pages flagged by
   ccc_is_account_dashboard_page() or ccc_is_store_dashboard_page(), which
   also get the slim .ccc-app-bar/.ccc-app-menu-panel header (see further
   up this file) in place of the normal site header — so it's safe to
   defeat .ccc-container here and take the full page width/height, instead
   of sitting inside the normal content column. Below the 1024px desktop
   breakpoint (further down this section) .ccc-account-content is the only
   thing in this layout and gets the page's full width, with the sidebar
   menu reachable only via the hamburger drawer; at 1024px and up, for a
   recognized member/store owner, the menu becomes a permanently visible
   left column instead and this layout gets left padding to make room for
   it. */
.ccc-account-layout.ccc-container {
	max-width: none;
	padding-inline: 0;
}
.ccc-main.ccc-account-layout {
	padding-block: 0;
	min-height: calc(100vh - var(--ccc-app-bar-height));
}
.ccc-account-layout { display: block; }

/* The account menu itself: a solid, deep-green panel — deliberately a
   different, darker green than the brand accent color used for
   buttons/links elsewhere, so it reads as its own distinct section — with
   white/pale-green text and an icon on every link. Below 1024px (phones
   and tablets) it's an off-canvas drawer, opened by .ccc-app-menu-toggle
   and closed by .ccc-account-sidebar__close/backdrop/Escape
   (assets/js/main.js's initAppMenuDrawer() and initAccountAjaxNav()). At
   1024px and up it's pinned open as a permanent left column instead (see
   the desktop override below) — same single copy of markup/CSS either
   way, never a second one rendered anywhere else on the page. */
.ccc-account-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(280px, 85vw);
	overflow-y: auto;
	background: var(--ccc-account-sidebar-bg);
	color: rgba(255, 255, 255, 0.92);
	padding: 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	z-index: 410;
	box-shadow: var(--ccc-shadow-md);
	transform: translateX(-100%);
	transition: transform var(--ccc-motion) ease;
}
.ccc-account-sidebar.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
	.ccc-account-sidebar { transition: none; }
}
.ccc-account-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}
.ccc-account-sidebar__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ccc-tap-min);
	height: var(--ccc-tap-min);
	flex-shrink: 0;
	font-size: 1.5rem;
	line-height: 1;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
}
.ccc-account-sidebar__close:hover { color: #FFFFFF; }
.ccc-account-sidebar__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}
.ccc-account-sidebar__brand img,
.ccc-account-sidebar__brand .custom-logo-link img {
	display: block;
	height: auto;
	max-height: 32px;
	width: auto;
	max-width: 100%;
}
.ccc-account-sidebar__brand .ccc-header__site-name {
	color: #FFFFFF;
	font-weight: 800;
	font-size: 1.0625rem;
}
.ccc-account-sidebar__eyebrow {
	margin: 0.25rem 0.5rem 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.ccc-account-sidebar__list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1 1 auto;
}
.ccc-account-sidebar__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-radius: var(--ccc-radius-sm);
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
	font-size: 0.9375rem;
	min-height: var(--ccc-tap-min);
	transition: background var(--ccc-motion) ease, color var(--ccc-motion) ease;
}
.ccc-account-sidebar__icon {
	display: inline-flex;
	flex-shrink: 0;
	opacity: 0.85;
}
.ccc-account-sidebar__link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
}
.ccc-account-sidebar__link.is-active {
	background: var(--ccc-account-sidebar-active);
	color: #FFFFFF;
	font-weight: 800;
}
.ccc-account-sidebar__link.is-active .ccc-account-sidebar__icon { opacity: 1; }

.ccc-account-sidebar__auth {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 1rem;
	margin-top: auto;
}
.ccc-account-sidebar__user {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: rgba(0, 0, 0, 0.18);
	border-radius: var(--ccc-radius-sm);
	padding: 0.5rem 0.6rem;
}
.ccc-account-sidebar__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
}
.ccc-account-sidebar__username {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #FFFFFF;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ccc-account-sidebar__logout {
	display: inline-flex;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.75);
	padding: 0.35rem;
	border-radius: var(--ccc-radius-sm);
}
.ccc-account-sidebar__logout:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.ccc-account-sidebar__login { width: 100%; justify-content: center; }

/* The store-owner dashboard menu: the exact same panel/drawer/desktop-
   column pattern as .ccc-account-sidebar above (see that block's comment
   for the full behavior), just with a deep slate-blue background instead
   of green so the two account types are easy to tell apart at a glance.
   Rendered by template-parts/store/sidebar.php. */
.ccc-store-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(280px, 85vw);
	overflow-y: auto;
	background: var(--ccc-store-sidebar-bg);
	color: rgba(255, 255, 255, 0.92);
	padding: 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	z-index: 410;
	box-shadow: var(--ccc-shadow-md);
	transform: translateX(-100%);
	transition: transform var(--ccc-motion) ease;
}
.ccc-store-sidebar.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
	.ccc-store-sidebar { transition: none; }
}
.ccc-store-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}
.ccc-store-sidebar__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ccc-tap-min);
	height: var(--ccc-tap-min);
	flex-shrink: 0;
	font-size: 1.5rem;
	line-height: 1;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
}
.ccc-store-sidebar__close:hover { color: #FFFFFF; }
.ccc-store-sidebar__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}
.ccc-store-sidebar__brand img,
.ccc-store-sidebar__brand .custom-logo-link img {
	display: block;
	height: auto;
	max-height: 32px;
	width: auto;
	max-width: 100%;
}
.ccc-store-sidebar__brand .ccc-header__site-name {
	color: #FFFFFF;
	font-weight: 800;
	font-size: 1.0625rem;
}
.ccc-store-sidebar__eyebrow {
	margin: 0.25rem 0.5rem 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.ccc-store-sidebar__list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1 1 auto;
}
.ccc-store-sidebar__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-radius: var(--ccc-radius-sm);
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
	font-size: 0.9375rem;
	min-height: var(--ccc-tap-min);
	transition: background var(--ccc-motion) ease, color var(--ccc-motion) ease;
}
.ccc-store-sidebar__icon {
	display: inline-flex;
	flex-shrink: 0;
	opacity: 0.85;
}
.ccc-store-sidebar__link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
}
.ccc-store-sidebar__link.is-active {
	background: var(--ccc-store-sidebar-active);
	color: #FFFFFF;
	font-weight: 800;
}
.ccc-store-sidebar__link.is-active .ccc-store-sidebar__icon { opacity: 1; }

.ccc-store-sidebar__auth {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 1rem;
	margin-top: auto;
}
.ccc-store-sidebar__user {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: rgba(0, 0, 0, 0.18);
	border-radius: var(--ccc-radius-sm);
	padding: 0.5rem 0.6rem;
}
.ccc-store-sidebar__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
}
.ccc-store-sidebar__username {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #FFFFFF;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ccc-store-sidebar__logout {
	display: inline-flex;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.75);
	padding: 0.35rem;
	border-radius: var(--ccc-radius-sm);
}
.ccc-store-sidebar__logout:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.ccc-store-sidebar__login { width: 100%; justify-content: center; }

/* The store-staff check-in menu (/store-checkin/): the exact same panel/
   drawer/desktop-column pattern as .ccc-account-sidebar and
   .ccc-store-sidebar above (see .ccc-account-sidebar's comment for the
   full behavior), just with a deep burnt-orange background so all three
   account types are easy to tell apart at a glance.
   Rendered by template-parts/store/staff-sidebar.php. */
.ccc-store-staff-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(280px, 85vw);
	overflow-y: auto;
	background: var(--ccc-store-staff-sidebar-bg);
	color: rgba(255, 255, 255, 0.92);
	padding: 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	z-index: 410;
	box-shadow: var(--ccc-shadow-md);
	transform: translateX(-100%);
	transition: transform var(--ccc-motion) ease;
}
.ccc-store-staff-sidebar.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
	.ccc-store-staff-sidebar { transition: none; }
}
.ccc-store-staff-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}
.ccc-store-staff-sidebar__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ccc-tap-min);
	height: var(--ccc-tap-min);
	flex-shrink: 0;
	font-size: 1.5rem;
	line-height: 1;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
}
.ccc-store-staff-sidebar__close:hover { color: #FFFFFF; }
.ccc-store-staff-sidebar__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}
.ccc-store-staff-sidebar__brand img,
.ccc-store-staff-sidebar__brand .custom-logo-link img {
	display: block;
	height: auto;
	max-height: 32px;
	width: auto;
	max-width: 100%;
}
.ccc-store-staff-sidebar__brand .ccc-header__site-name {
	color: #FFFFFF;
	font-weight: 800;
	font-size: 1.0625rem;
}
.ccc-store-staff-sidebar__eyebrow {
	margin: 0.25rem 0.5rem 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.ccc-store-staff-sidebar__list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	flex: 1 1 auto;
}
.ccc-store-staff-sidebar__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 0.85rem;
	border-radius: var(--ccc-radius-sm);
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
	font-size: 0.9375rem;
	min-height: var(--ccc-tap-min);
	transition: background var(--ccc-motion) ease, color var(--ccc-motion) ease;
}
.ccc-store-staff-sidebar__icon {
	display: inline-flex;
	flex-shrink: 0;
	opacity: 0.85;
}
.ccc-store-staff-sidebar__link:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
}
.ccc-store-staff-sidebar__link.is-active {
	background: var(--ccc-store-staff-sidebar-active);
	color: #FFFFFF;
	font-weight: 800;
}
.ccc-store-staff-sidebar__link.is-active .ccc-store-staff-sidebar__icon { opacity: 1; }

.ccc-store-staff-sidebar__auth {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 1rem;
	margin-top: auto;
}
.ccc-store-staff-sidebar__user {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: rgba(0, 0, 0, 0.18);
	border-radius: var(--ccc-radius-sm);
	padding: 0.5rem 0.6rem;
}
.ccc-store-staff-sidebar__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
}
.ccc-store-staff-sidebar__username {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #FFFFFF;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ccc-store-staff-sidebar__logout {
	display: inline-flex;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.75);
	padding: 0.35rem;
	border-radius: var(--ccc-radius-sm);
}
.ccc-store-staff-sidebar__logout:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }

/* Desktop: the account menu stays visible as a permanent left column
   instead of a hamburger drawer. Scoped to logged-in members on an
   account page specifically (WordPress's own "logged-in" body class
   together with ccc-is-account-page, see inc/setup.php) — a logged-out
   visitor who lands on an account URL still sees the login gate and gets
   the plain .ccc-app-menu-panel fallback (public menu + Login) behind the
   hamburger at every width, since they have no account menu to pin open.
   Below 1024px both groups fall back to the shared off-canvas drawer
   rules above. */
@media (min-width: 1024px) {
	body.logged-in.ccc-is-account-page .ccc-app-bar,
	body.logged-in.ccc-is-account-page .ccc-app-menu-panel__backdrop {
		display: none;
	}
	body.logged-in.ccc-is-account-page .ccc-account-sidebar {
		transform: none;
		box-shadow: none;
		border-right: 1px solid rgba(255, 255, 255, 0.08);
	}
	/* Nothing to close once the menu is pinned open. */
	body.logged-in.ccc-is-account-page .ccc-account-sidebar__close {
		display: none;
	}
	body.logged-in.ccc-is-account-page .ccc-main.ccc-account-layout {
		padding-left: min(280px, 85vw);
		min-height: 100vh;
	}
}

/* Desktop: same treatment for the store-owner dashboard, scoped to
   `ccc-is-store-owner-view` — set in inc/setup.php only when header.php is
   actually rendering .ccc-store-sidebar (a logged-in user who owns a
   store). A logged-out visitor, or a logged-in shopper with no store of
   their own, still gets the plain hamburger + public menu at every width
   (see that body-class filter's doc comment for why this one can't just
   reuse WordPress's "logged-in" class the way the account rule above
   does). */
@media (min-width: 1024px) {
	body.ccc-is-store-owner-view .ccc-app-bar,
	body.ccc-is-store-owner-view .ccc-app-menu-panel__backdrop {
		display: none;
	}
	body.ccc-is-store-owner-view .ccc-store-sidebar {
		transform: none;
		box-shadow: none;
		border-right: 1px solid rgba(255, 255, 255, 0.08);
	}
	/* Nothing to close once the menu is pinned open. */
	body.ccc-is-store-owner-view .ccc-store-sidebar__close {
		display: none;
	}
	body.ccc-is-store-owner-view .ccc-main.ccc-account-layout {
		padding-left: min(280px, 85vw);
		min-height: 100vh;
	}
}

/* Desktop: same treatment for the store-staff check-in tool, scoped to
   `ccc-is-store-staff-view` — set in inc/setup.php only when header.php is
   actually rendering .ccc-store-staff-sidebar (a logged-in user who
   manages a store). Anyone else on /store-checkin/ still gets the plain
   hamburger + public menu at every width (see that body-class filter's
   doc comment for why this one can't just reuse WordPress's "logged-in"
   class the way the account rule above does). */
@media (min-width: 1024px) {
	body.ccc-is-store-staff-view .ccc-app-bar,
	body.ccc-is-store-staff-view .ccc-app-menu-panel__backdrop {
		display: none;
	}
	body.ccc-is-store-staff-view .ccc-store-staff-sidebar {
		transform: none;
		box-shadow: none;
		border-right: 1px solid rgba(255, 255, 255, 0.08);
	}
	/* Nothing to close once the menu is pinned open. */
	body.ccc-is-store-staff-view .ccc-store-staff-sidebar__close {
		display: none;
	}
	body.ccc-is-store-staff-view .ccc-main.ccc-account-layout {
		padding-left: min(280px, 85vw);
		min-height: 100vh;
	}
}

.ccc-account-content {
	min-width: 0;
	background: var(--ccc-surface);
	padding: 1.75rem 2rem;
	overflow-y: auto;
	transition: opacity var(--ccc-motion) ease;
}
.ccc-account-content.is-loading { opacity: 0.5; }
.ccc-account-content__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	position: relative;
	padding-bottom: 1.25rem;
	margin-bottom: 1.5rem;
}
.ccc-account-content__header::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 64px;
	height: 4px;
	border-radius: 999px;
	background: var(--ccc-hero-grad);
}
.ccc-account-content__header h1 {
	margin: 0;
	font-size: 1.5rem;
}
.ccc-account-content__desc {
	color: var(--ccc-muted);
	margin-bottom: 1.5rem;
}

.ccc-csv-export {
	font-size: 0.8125rem;
	padding: 0.5rem 0.9rem;
	flex-shrink: 0;
}

/* Current logo preview above the upload field on templates/store-profile.php. */
.ccc-store-profile__logo-row {
	margin-bottom: 1.25rem;
}
.ccc-store-profile__logo-row img {
	display: block;
	max-height: 80px;
	width: auto;
	border-radius: var(--ccc-radius-sm);
}

@media (max-width: 480px) {
	.ccc-account-content { padding: 1.25rem; }
}

/* =====================================================================
   Hero slider (only present when at least one ccc_hero_slide exists —
   otherwise the static .ccc-hero__inner markup renders instead, styled
   further up in this file).
   ===================================================================== */

.ccc-hero--slider { padding: 0; overflow: hidden; }

.ccc-hero-slider {
	position: relative;
	height: clamp(320px, 45vw, 480px);
	overflow: hidden;
}
.ccc-hero-slider__track {
	display: flex;
	height: 100%;
	transition: transform 500ms ease;
}
.ccc-hero-slider__slide {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
	background-image: var(--ccc-slide-bg, none);
	background-size: cover;
	background-position: center;
	background-color: var(--ccc-ink);
}
.ccc-hero-slider__slide--no-image { background: var(--ccc-hero-grad); }

.ccc-hero-slider__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	background: linear-gradient(180deg, rgba(6, 40, 30, 0.35), rgba(6, 40, 30, 0.65));
}
.ccc-hero-slider__headline {
	color: #fff;
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	max-width: 24ch;
	margin: 0 0 0.75rem;
}
.ccc-hero-slider__subtext {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.0625rem;
	max-width: 45ch;
	margin: 0 0 1.25rem;
}

.ccc-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(15, 23, 42, 0.4);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--ccc-motion) ease;
}
.ccc-hero-slider__arrow:hover { background: rgba(15, 23, 42, 0.65); }
.ccc-hero-slider__arrow--prev { inset-inline-start: 1rem; }
.ccc-hero-slider__arrow--next { inset-inline-end: 1rem; }

.ccc-hero-slider__dots {
	position: absolute;
	bottom: 1rem;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}
.ccc-hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	background: transparent;
	padding: 0;
	cursor: pointer;
}
.ccc-hero-slider__dot.is-active {
	background: #fff;
	border-color: #fff;
}

.ccc-hero-slider__searchbar {
	background: var(--ccc-surface);
	border-bottom: 1px solid var(--ccc-line);
	padding-block: 1rem;
}
.ccc-hero__search--compact { max-width: 480px; margin-inline: auto; }

@media (max-width: 600px) {
	.ccc-hero-slider { height: 360px; }
	/* A slide's optional Mobile Image (hero.php) replaces its desktop image. */
	.ccc-hero-slider__slide:not(.ccc-hero-slider__slide--no-image) { background-image: var(--ccc-slide-bg-mobile, var(--ccc-slide-bg, none)); }
	.ccc-hero-slider__arrow { width: 36px; height: 36px; font-size: 1.25rem; }
}
