/**
 * Spatz theme — main stylesheet.
 *
 * Loaded from /assets/css/theme.css by inc/assets.php.
 * CSS variables come from theme.json presets (--wp--preset--*).
 */

/* ---------- Root normalization ---------- */

:root {
	--spatz-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
	--spatz-radius: 14px;
	--spatz-radius-sm: 8px;
	--spatz-radius-lg: 20px;
	--spatz-header-height: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--spatz-header-height) + 16px); }

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01", "cv11";
}

/* Fraunces italic class — used in hero and section titles for personality. */
.spatz-italic {
	font-style: italic;
	font-variation-settings: "SOFT" 100, "WONK" 1;
	color: var(--wp--preset--color--spatz);
}

/* Selection colour matches accent. */
::selection { background: var(--wp--preset--color--spatz); color: var(--wp--preset--color--cream); }

/* ---------- Links ---------- */

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color 0.15s var(--spatz-easing); }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons (global polish on top of theme.json) ---------- */

.wp-block-button__link,
.wp-element-button {
	transition: background-color 0.2s var(--spatz-easing), color 0.2s var(--spatz-easing), transform 0.2s var(--spatz-easing), box-shadow 0.2s var(--spatz-easing);
	box-shadow: 0 1px 0 rgba(21, 20, 35, 0.06);
}
.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(255, 107, 53, 0.18);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--ink);
	box-shadow: none;
	position: relative;
	z-index: 1;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}

/* ---------- Site header ---------- */

.spatz-site-header {
	position: sticky; top: 0; z-index: 40;
	backdrop-filter: saturate(180%) blur(12px);
	background: rgba(250, 243, 231, 0.88);
}
.spatz-header-row { min-height: var(--spatz-header-height); }
.spatz-brand .wp-block-site-title a { text-decoration: none; color: inherit; }
.spatz-primary-nav a { text-decoration: none; }
.spatz-primary-nav a:hover { color: var(--wp--preset--color--spatz); }

/* Header buttons — each in its own stacking context, no flex collapse, nowrap text */
.spatz-header-cta {
	display: inline-flex;
	gap: 8px;
	flex-wrap: nowrap;
	flex-shrink: 0;
}
.spatz-header-cta .wp-block-button {
	margin: 0;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.spatz-header-cta .wp-block-button__link {
	padding: 0.65rem 1.1rem;
	font-size: 0.875rem;
	border-radius: 999px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	text-decoration: none;
}

/* ---------- Hero ---------- */

.spatz-hero {
	position: relative;
	overflow: hidden;
}
.spatz-hero::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 85% -10%, rgba(255, 107, 53, 0.08), transparent 50%),
		radial-gradient(ellipse at 15% 100%, rgba(75, 46, 78, 0.05), transparent 50%);
	pointer-events: none; z-index: 0;
}
.spatz-hero > * { position: relative; z-index: 1; }

.spatz-eyebrow { gap: 0.5rem; }
.spatz-eyebrow-dot {
	width: 8px; height: 8px; border-radius: 999px;
	background: var(--wp--preset--color--spatz);
	box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
	animation: spatzPulse 2.4s var(--spatz-easing) infinite;
}
@keyframes spatzPulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18); }
	50%      { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.06); }
}

.spatz-hero-title {
	animation: spatzFadeUp 0.8s var(--spatz-easing) both;
}
.spatz-hero-sub {
	animation: spatzFadeUp 0.8s 0.1s var(--spatz-easing) both;
}
.spatz-hero .wp-block-buttons {
	animation: spatzFadeUp 0.8s 0.2s var(--spatz-easing) both;
}
@keyframes spatzFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.spatz-hero-title, .spatz-hero-sub, .spatz-hero .wp-block-buttons, .spatz-eyebrow-dot { animation: none; }
}

/* ---------- Benchmark visual ---------- */

.spatz-benchmark {
	font-family: var(--wp--preset--font-family--body);
}
.spatz-benchmark-head {
	display: flex; align-items: center; gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--cream);
	border-radius: var(--spatz-radius) var(--spatz-radius) 0 0;
}
.spatz-benchmark-dot { width: 10px; height: 10px; border-radius: 999px; }
.spatz-benchmark-dot-r { background: #F87171; }
.spatz-benchmark-dot-y { background: #FBBF24; }
.spatz-benchmark-dot-g { background: #34D399; }
.spatz-benchmark-url {
	margin-left: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--wp--preset--color--whisker);
	letter-spacing: 0.02em;
}
.spatz-benchmark-body { padding: 28px 32px; }
.spatz-benchmark-row {
	display: grid; grid-template-columns: 160px 1fr 64px;
	align-items: center; gap: 16px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--wp--preset--color--line);
}
.spatz-benchmark-row:last-of-type { border-bottom: none; }
.spatz-benchmark-row-highlight { background: linear-gradient(90deg, rgba(255, 228, 214, 0.3), transparent); margin: 0 -16px; padding: 14px 16px; border-radius: 8px; }
.spatz-benchmark-label { font-size: 0.875rem; color: var(--wp--preset--color--whisker); font-weight: 500; }
.spatz-benchmark-bar { height: 10px; background: var(--wp--preset--color--line); border-radius: 999px; overflow: hidden; }
.spatz-benchmark-fill {
	height: 100%; border-radius: 999px;
	width: 0;
	animation: spatzFillBar 1.4s 0.3s var(--spatz-easing) forwards;
}
.spatz-benchmark-fill-low { background: #F59E0B; }
.spatz-benchmark-fill-high { background: var(--wp--preset--color--moss); }
@keyframes spatzFillBar { to { width: var(--w); } }
.spatz-benchmark-score {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem; font-weight: 600; font-style: italic;
	letter-spacing: -0.02em; text-align: right;
}
.spatz-benchmark-score-low { color: #F59E0B; }
.spatz-benchmark-score-high { color: var(--wp--preset--color--moss); }
.spatz-benchmark-caption {
	margin-top: 20px; font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem; color: var(--wp--preset--color--mist);
	letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
	.spatz-benchmark-fill { animation: none; width: var(--w); }
}

/* ---------- Tags / pills ---------- */

.spatz-tag {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px;
	background: var(--wp--preset--color--spatz-soft);
	color: var(--wp--preset--color--spatz-dark);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.spatz-tag-featured { background: var(--wp--preset--color--spatz); color: var(--wp--preset--color--cream); }

/* ---------- Benefit list (paw bullets) ---------- */

.spatz-benefit-list {
	list-style: none;
	padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 14px;
}
.spatz-benefit-list li {
	display: flex; align-items: flex-start; gap: 12px;
	font-size: 1rem; line-height: 1.55;
}
.spatz-benefit-list .spatz-paw {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--wp--preset--color--spatz);
	transform: rotate(-12deg);
}
.spatz-benefit-list strong { font-weight: 600; color: var(--wp--preset--color--ink); }

/* ---------- Screenshot frame ---------- */

.spatz-screenshot-frame {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--spatz-radius);
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(21, 20, 35, 0.08), 0 2px 6px rgba(21, 20, 35, 0.04);
	transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
	transition: transform 0.4s var(--spatz-easing);
}
.spatz-screenshot-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.spatz-screenshot-chrome {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	background: var(--wp--preset--color--cream-dark);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.spatz-screenshot-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--wp--preset--color--line); }
.spatz-screenshot-dot:nth-child(1) { background: #F87171; }
.spatz-screenshot-dot:nth-child(2) { background: #FBBF24; }
.spatz-screenshot-dot:nth-child(3) { background: #34D399; }
.spatz-screenshot-addr {
	margin-left: 12px; flex: 1; text-align: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem; color: var(--wp--preset--color--whisker);
	padding: 3px 10px; background: var(--wp--preset--color--cream); border-radius: 6px;
}
.spatz-screenshot-body { display: grid; grid-template-columns: 140px 1fr; min-height: 340px; }
.spatz-screenshot-sidebar { background: var(--wp--preset--color--cream); padding: 16px 12px; border-right: 1px solid var(--wp--preset--color--line); }
.spatz-ss-logo { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 600; font-size: 0.95rem; margin-bottom: 16px; }
.spatz-ss-nav { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--wp--preset--color--whisker); }
.spatz-ss-nav span { padding: 6px 8px; border-radius: 6px; }
.spatz-ss-active { background: var(--wp--preset--color--spatz-soft); color: var(--wp--preset--color--spatz-dark) !important; font-weight: 600; }
.spatz-screenshot-main { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.spatz-ss-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spatz-ss-stat { padding: 14px; background: var(--wp--preset--color--cream); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.spatz-ss-stat-val { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.spatz-ss-stat-label { font-family: var(--wp--preset--font-family--mono); font-size: 0.65rem; color: var(--wp--preset--color--whisker); text-transform: uppercase; letter-spacing: 0.08em; }
.spatz-ss-card { padding: 12px 14px; background: var(--wp--preset--color--cream); border-radius: 10px; }
.spatz-ss-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; font-weight: 500; }
.spatz-ss-pill { font-family: var(--wp--preset--font-family--mono); font-size: 0.65rem; padding: 2px 8px; border-radius: 999px; background: var(--wp--preset--color--line); color: var(--wp--preset--color--whisker); font-weight: 500; }
.spatz-ss-pill-on { background: rgba(46, 125, 50, 0.12); color: var(--wp--preset--color--moss); }
.spatz-ss-progress { margin-top: 8px; height: 6px; background: var(--wp--preset--color--line); border-radius: 999px; overflow: hidden; }
.spatz-ss-progress-fill { height: 100%; background: var(--wp--preset--color--moss); border-radius: 999px; width: var(--w); }

@media (max-width: 720px) {
	.spatz-screenshot-body { grid-template-columns: 1fr; }
	.spatz-screenshot-sidebar { display: none; }
}

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

.spatz-product-card {
	transition: transform 0.25s var(--spatz-easing), box-shadow 0.25s var(--spatz-easing), border-color 0.25s var(--spatz-easing);
	height: 100%;
}
.spatz-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(21, 20, 35, 0.08);
	border-color: var(--wp--preset--color--spatz) !important;
}
.spatz-product-card .wp-block-post-featured-image img {
	object-fit: cover; width: 100%;
}

.spatz-section-head {
	gap: var(--wp--preset--spacing--40);
}

/* ---------- Feature icons ---------- */

.spatz-feature-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px;
	background: var(--wp--preset--color--spatz-soft);
	border-radius: 14px;
	font-size: 1.5rem;
}

/* ---------- Pricing cards ---------- */

.spatz-price-card { height: 100%; transition: transform 0.25s var(--spatz-easing), box-shadow 0.25s var(--spatz-easing); }
.spatz-price-card:hover { transform: translateY(-4px); }
.spatz-price-card-featured { position: relative; box-shadow: 0 20px 48px rgba(21, 20, 35, 0.18); }
.spatz-price-card-featured:hover { box-shadow: 0 28px 64px rgba(21, 20, 35, 0.22); }
.spatz-price-col-featured { margin-top: -16px; }

.spatz-price-pill {
	display: inline-block;
	padding: 4px 10px;
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.spatz-price-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 10px;
}
.spatz-price-list li {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 0.9375rem; line-height: 1.5;
	color: var(--wp--preset--color--whisker);
}
.spatz-price-list li::before {
	content: "✓";
	flex-shrink: 0;
	color: var(--wp--preset--color--moss);
	font-weight: 600;
	margin-top: 1px;
}
.spatz-price-list-inverse li { color: var(--wp--preset--color--cream); opacity: 0.92; }
.spatz-price-list-inverse li::before { color: var(--wp--preset--color--spatz); }

@media (max-width: 880px) {
	.spatz-price-col-featured { margin-top: 0; }
}

/* ---------- Testimonials ---------- */

.spatz-testimonial-card { height: 100%; transition: transform 0.25s var(--spatz-easing); }
.spatz-testimonial-card:hover { transform: translateY(-3px); }

.spatz-stars {
	color: var(--wp--preset--color--spatz);
	font-size: 0.95rem;
	letter-spacing: 0.1em;
}

.spatz-avatar {
	flex-shrink: 0;
	width: 44px; height: 44px;
	border-radius: 999px;
	background: var(--wp--preset--color--spatz-soft);
	color: var(--wp--preset--color--spatz-dark);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600; font-style: italic;
	font-size: 1rem;
}

/* ---------- FAQ ---------- */

.spatz-faq-list {
	display: flex; flex-direction: column;
	border-top: 1px solid var(--wp--preset--color--line);
}
.spatz-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.spatz-faq-item > summary {
	list-style: none;
	padding: 24px 8px;
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	cursor: pointer;
	font-size: 1.0625rem;
	font-weight: 500;
	transition: color 0.2s var(--spatz-easing);
}
.spatz-faq-item > summary::-webkit-details-marker { display: none; }
.spatz-faq-item > summary:hover { color: var(--wp--preset--color--spatz); }
.spatz-faq-icon {
	flex-shrink: 0;
	width: 28px; height: 28px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	position: relative;
	transition: transform 0.2s var(--spatz-easing), border-color 0.2s var(--spatz-easing);
}
.spatz-faq-icon::before,
.spatz-faq-icon::after {
	content: ""; position: absolute; background: currentColor;
	left: 50%; top: 50%;
}
.spatz-faq-icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.spatz-faq-icon::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); transition: opacity 0.2s var(--spatz-easing); }
.spatz-faq-item[open] > summary .spatz-faq-icon { border-color: var(--wp--preset--color--spatz); }
.spatz-faq-item[open] > summary .spatz-faq-icon::after { opacity: 0; }

.spatz-faq-body {
	padding: 0 8px 28px;
	font-size: 1rem; line-height: 1.65;
	color: var(--wp--preset--color--whisker);
	max-width: 640px;
}

/* ---------- CTA band ---------- */

.spatz-cta-band {
	position: relative; overflow: hidden;
}
.spatz-cta-band::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(ellipse at 100% 0%, rgba(255, 107, 53, 0.22), transparent 50%);
	pointer-events: none;
}
.spatz-cta-inner { position: relative; }
.spatz-mascot-wrap { display: flex; justify-content: center; }
.spatz-mascot svg {
	max-width: 100%; height: auto;
	filter: drop-shadow(0 8px 24px rgba(255, 107, 53, 0.25));
	transition: transform 0.4s var(--spatz-easing);
}
.spatz-mascot:hover svg { transform: rotate(-6deg) scale(1.04); }

@media (max-width: 720px) {
	.spatz-cta-inner .wp-block-column:first-child { display: none; }
}

/* ---------- Spatz quote (blog pull quote) ---------- */

.spatz-quote-block {
	position: relative;
}
.spatz-quote-paw {
	position: absolute; top: 16px; left: 16px;
	color: var(--wp--preset--color--spatz);
	transform: rotate(-18deg);
}
.spatz-quote-paw .spatz-paw { width: 22px; height: 22px; }

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

.spatz-link-list {
	list-style: none;
	padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 8px;
}
.spatz-link-list a {
	text-decoration: none;
	color: var(--wp--preset--color--whisker);
	transition: color 0.15s var(--spatz-easing);
}
.spatz-link-list a:hover { color: var(--wp--preset--color--spatz); }

.spatz-footer-brand .wp-block-site-title a { text-decoration: none; color: inherit; }

/* ---------- Article body (single post) ---------- */

.spatz-article-header .wp-block-post-terms a { text-decoration: none; }
.wp-block-post-content > * + * { margin-top: var(--wp--preset--spacing--40); }
.wp-block-post-content h2 { margin-top: var(--wp--preset--spacing--60); }
.wp-block-post-content h3 { margin-top: var(--wp--preset--spacing--50); }
.wp-block-post-content p { line-height: 1.75; font-size: 1.125rem; }
.wp-block-post-content blockquote { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.375rem; line-height: 1.4; }

/* ---------- Blog archive cards ---------- */

.spatz-blog-card { transition: transform 0.25s var(--spatz-easing); }
.spatz-blog-card:hover { transform: translateY(-3px); }
.spatz-blog-card .wp-block-post-featured-image img { border-radius: var(--spatz-radius-sm); object-fit: cover; width: 100%; }
.spatz-blog-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); transition: color 0.15s var(--spatz-easing); }
.spatz-blog-card:hover .wp-block-post-title a { color: var(--wp--preset--color--spatz); }

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

.spatz-docs-sidebar .wp-block-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.spatz-docs-nav a {
	text-decoration: none; color: var(--wp--preset--color--whisker);
	display: block; padding: 6px 10px; border-radius: 6px;
	transition: background 0.15s var(--spatz-easing), color 0.15s var(--spatz-easing);
}
.spatz-docs-nav a:hover { background: var(--wp--preset--color--cream-dark); color: var(--wp--preset--color--ink); }
.spatz-docs-nav li.current a { background: var(--wp--preset--color--spatz-soft); color: var(--wp--preset--color--spatz-dark); font-weight: 600; }

@media (max-width: 880px) {
	.spatz-docs-sidebar { flex-basis: 100% !important; }
	.spatz-docs-sidebar > .wp-block-group { position: static !important; }
}

/* ---------- Plugin hero ---------- */

.spatz-plugin-price {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 600;
	font-size: 2rem;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink);
}
.spatz-plugin-price-row { gap: 1.5rem; }

/* ---------- 404 ---------- */

.spatz-404 { text-align: center; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	html { scroll-behavior: auto; }
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 880px) {
	.spatz-featured-split { flex-direction: column; }
	.spatz-featured-split .wp-block-column { flex-basis: 100% !important; }
}

/* ==========================================================================
   v1.1 additions
   ========================================================================== */

/* ---------- Responsive visibility helpers ---------- */

.spatz-desktop-only { display: flex; }
.spatz-mobile-only  { display: none; }

@media (max-width: 880px) {
	.spatz-desktop-only { display: none !important; }
	.spatz-mobile-only  { display: inline-flex !important; }
}

/* ---------- Mobile menu toggle (hamburger) ---------- */

.spatz-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.2s var(--spatz-easing), border-color 0.2s var(--spatz-easing);
	-webkit-tap-highlight-color: transparent;
}
.spatz-menu-toggle:hover,
.spatz-menu-toggle:focus-visible {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--ink);
	outline: none;
}
.spatz-menu-toggle:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.35);
}

.spatz-menu-toggle-bars {
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
	width: 18px;
	height: 12px;
}
.spatz-menu-toggle-bars span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s var(--spatz-easing), opacity 0.2s var(--spatz-easing);
	transform-origin: center;
}

/* Animate to X when open */
.spatz-menu-toggle[aria-expanded="true"] .spatz-menu-toggle-bars span:nth-child(1) {
	transform: translateY(5px) rotate(45deg);
}
.spatz-menu-toggle[aria-expanded="true"] .spatz-menu-toggle-bars span:nth-child(2) {
	opacity: 0;
}
.spatz-menu-toggle[aria-expanded="true"] .spatz-menu-toggle-bars span:nth-child(3) {
	transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Mobile panel ---------- */

.spatz-mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	z-index: 9999;
	display: flex;
	justify-content: flex-end;
	pointer-events: none;
	contain: strict;
}
.spatz-mobile-panel[hidden] { display: none; }

.spatz-mobile-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: rgba(21, 20, 35, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s var(--spatz-easing);
	pointer-events: none;
	z-index: 1;
}

.spatz-mobile-inner {
	position: relative;
	z-index: 2;
	width: min(420px, 100vw);
	max-width: 100%;
	height: 100vh;
	height: 100dvh;
	background: var(--wp--preset--color--cream);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--spatz-easing);
	box-shadow: -16px 0 40px rgba(21, 20, 35, 0.18);
	pointer-events: none;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/* On phones narrower than 480px, use a full-screen panel — no side-slide. */
@media (max-width: 480px) {
	.spatz-mobile-inner {
		width: 100vw;
		box-shadow: none;
	}
}

/* Open state */
.spatz-mobile-panel.is-open { pointer-events: auto; }
.spatz-mobile-panel.is-open .spatz-mobile-backdrop {
	opacity: 1;
	pointer-events: auto;
}
.spatz-mobile-panel.is-open .spatz-mobile-inner {
	transform: translateX(0);
	pointer-events: auto;
}

/* Lock body scroll while open. Using position:fixed prevents the scroll
   position from being lost on iOS Safari and stops background scrolling. */
body.spatz-menu-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
	top: var(--spatz-scroll-top, 0);
	left: 0;
	right: 0;
}

/* ---------- Mobile panel contents ---------- */

.spatz-mobile-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--cream);
	position: sticky;
	top: 0;
	z-index: 2;
}
.spatz-mobile-brand {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}
.spatz-mobile-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s var(--spatz-easing), border-color 0.15s var(--spatz-easing);
}
.spatz-mobile-close:hover,
.spatz-mobile-close:focus-visible {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--ink);
	outline: none;
}

.spatz-mobile-nav {
	flex: 1;
	padding: 8px 0 24px;
}

.spatz-mobile-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.spatz-mobile-nav-list li { margin: 0; }

.spatz-mobile-nav-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	border-bottom: 1px solid rgba(231, 223, 207, 0.6);
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s var(--spatz-easing), color 0.15s var(--spatz-easing), padding 0.2s var(--spatz-easing);
	min-height: 60px;
}
.spatz-mobile-nav-list a:hover,
.spatz-mobile-nav-list a:focus-visible {
	background: var(--wp--preset--color--spatz-soft);
	color: var(--wp--preset--color--spatz-dark);
	padding-left: 32px;
	outline: none;
}
.spatz-mobile-link-arrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.125rem;
	color: var(--wp--preset--color--mist);
	transition: transform 0.2s var(--spatz-easing), color 0.2s var(--spatz-easing);
}
.spatz-mobile-nav-list a:hover .spatz-mobile-link-arrow,
.spatz-mobile-nav-list a:focus-visible .spatz-mobile-link-arrow {
	transform: translateX(4px);
	color: var(--wp--preset--color--spatz);
}

/* Secondary nav — smaller type, sans-serif */
.spatz-mobile-nav-secondary {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--wp--preset--color--line);
}
.spatz-mobile-nav-secondary a {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 500;
	padding: 14px 24px;
	min-height: 48px;
	color: var(--wp--preset--color--whisker);
}

/* ---------- Mobile panel footer (sticky CTA) ---------- */

.spatz-mobile-foot {
	padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--cream);
	position: sticky;
	bottom: 0;
}
.spatz-mobile-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 16px 20px;
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background 0.2s var(--spatz-easing), transform 0.15s var(--spatz-easing);
}
.spatz-mobile-cta:hover,
.spatz-mobile-cta:focus-visible {
	background: var(--wp--preset--color--spatz-dark);
	outline: none;
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}
.spatz-mobile-cta:active { transform: scale(0.98); }
.spatz-mobile-foot-note {
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--mist);
	text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.spatz-mobile-inner,
	.spatz-mobile-backdrop,
	.spatz-menu-toggle-bars span {
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Announcement bar ---------- */

.spatz-announcement {
	font-size: 0.875rem;
}
.spatz-announcement a { color: var(--wp--preset--color--spatz); text-decoration: underline; }
.spatz-announcement code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
}

/* ---------- Flagship visual (dynamic featured-plugin pattern) ---------- */

.spatz-flagship-visual {
	border-radius: var(--spatz-radius);
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(21, 20, 35, 0.08), 0 2px 6px rgba(21, 20, 35, 0.04);
	background: var(--wp--preset--color--paper);
}
.spatz-flagship-visual img,
.spatz-flagship-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.spatz-flagship-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 24px;
	background: var(--wp--preset--color--cream-dark);
	color: var(--wp--preset--color--whisker);
	min-height: 300px;
}
.spatz-flagship-placeholder span {
	font-size: 4rem;
	line-height: 1;
	margin-bottom: 16px;
}
.spatz-flagship-placeholder p {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	text-align: center;
	margin: 0;
}

.spatz-featured-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.spatz-featured-empty {
	text-align: center;
}

/* ---------- Flagship variant: centered ---------- */

.spatz-featured-centered .wp-block-post-featured-image img {
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(21, 20, 35, 0.10);
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ---------- Flagship variant: dark ---------- */

.spatz-featured-dark {
	position: relative;
	overflow: hidden;
}
.spatz-featured-dark::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 100% 0%, rgba(255, 107, 53, 0.18), transparent 55%);
	pointer-events: none;
}
.spatz-featured-dark > * { position: relative; z-index: 1; }
.spatz-featured-dark .wp-block-post-featured-image img {
	border-radius: 14px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

/* ---------- Theme showcase (for WP theme products) ---------- */

.spatz-theme-showcase {
	position: relative;
}
.spatz-browser-mockup {
	max-width: 1100px;
	margin: 56px auto 0;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 56px rgba(21, 20, 35, 0.10), 0 4px 12px rgba(21, 20, 35, 0.05);
	transition: transform 0.4s var(--spatz-easing);
}
.spatz-browser-mockup:hover { transform: translateY(-4px); }

.spatz-browser-chrome {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--wp--preset--color--cream-dark);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.spatz-browser-dot {
	width: 11px; height: 11px; border-radius: 999px;
}
.spatz-browser-dot:nth-child(1) { background: #F87171; }
.spatz-browser-dot:nth-child(2) { background: #FBBF24; }
.spatz-browser-dot:nth-child(3) { background: #34D399; }
.spatz-browser-addr {
	flex: 1;
	margin-left: 16px;
	text-align: center;
	padding: 4px 16px;
	background: var(--wp--preset--color--cream);
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--whisker);
}
.spatz-browser-screen {
	background: var(--wp--preset--color--paper);
	min-height: 300px;
	display: flex;
	align-items: flex-start;
}
.spatz-browser-screen img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Comparison table ---------- */

.spatz-compare-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--paper);
}

.spatz-compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: separate;
	border-spacing: 0;
}
.spatz-compare-table th,
.spatz-compare-table td {
	padding: 18px 20px;
	text-align: center;
	border-bottom: 1px solid var(--wp--preset--color--line);
	vertical-align: middle;
}
.spatz-compare-table thead th {
	background: var(--wp--preset--color--cream-dark);
	padding-top: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.spatz-compare-table thead th.spatz-compare-empty { background: var(--wp--preset--color--paper); }
.spatz-compare-table tbody th {
	text-align: left;
	font-weight: 500;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
}
.spatz-compare-table tr:last-child th,
.spatz-compare-table tr:last-child td { border-bottom: none; }

/* Highlight our column */
.spatz-compare-us {
	background: var(--wp--preset--color--spatz-soft) !important;
	position: relative;
}
.spatz-compare-table thead th.spatz-compare-us {
	border-top: 3px solid var(--wp--preset--color--spatz);
	border-radius: 14px 14px 0 0;
}
.spatz-compare-table tbody td.spatz-compare-us:last-child,
.spatz-compare-table tr:last-child td.spatz-compare-us {
	border-radius: 0 0 14px 14px;
}

.spatz-compare-brand {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	margin-bottom: 4px;
}
.spatz-compare-price {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--whisker);
}

.spatz-compare-y,
.spatz-compare-n,
.spatz-compare-partial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	font-size: 0.875rem;
}
.spatz-compare-y { background: rgba(46, 125, 50, 0.14); color: var(--wp--preset--color--moss); }
.spatz-compare-n { background: rgba(159, 159, 159, 0.18); color: var(--wp--preset--color--mist); }
.spatz-compare-partial {
	background: rgba(255, 107, 53, 0.14);
	color: var(--wp--preset--color--spatz-dark);
	padding: 0 10px;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	min-width: auto;
}

/* ---------- Changelog ---------- */

.spatz-changelog-entry:last-child {
	border-bottom: none !important;
}
.spatz-changelog-entry h4 {
	margin-bottom: 8px;
}
.spatz-changelog-entry code {
	font-family: var(--wp--preset--font-family--mono);
	background: var(--wp--preset--color--cream-dark);
	color: var(--wp--preset--color--ink);
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

/* ---------- Sticky mobile buy button (single download pages) ---------- */

.spatz-sticky-buy {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: var(--wp--preset--color--cream);
	border-top: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 -8px 24px rgba(21, 20, 35, 0.08);
	transform: translateY(100%);
	transition: transform 0.35s var(--spatz-easing);
}
.spatz-sticky-buy.is-visible { transform: translateY(0); }
.spatz-sticky-buy-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}
.spatz-sticky-buy-name {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.spatz-sticky-buy-price {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--whisker);
}
.spatz-sticky-buy-cta {
	flex-shrink: 0;
	padding: 12px 20px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background 0.2s var(--spatz-easing);
}
.spatz-sticky-buy-cta:hover { background: var(--wp--preset--color--spatz); color: var(--wp--preset--color--cream); }

@media (max-width: 720px) {
	.spatz-edd-single .spatz-sticky-buy { display: flex; }
}

/* ---------- Docs TOC (auto-generated) ---------- */

.spatz-toc {
	background: var(--wp--preset--color--cream-dark);
	border-radius: 10px;
	padding: 20px 24px;
	margin: 24px 0 40px;
}
.spatz-toc-title {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--whisker);
}
.spatz-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	counter-reset: spatz-toc;
}
.spatz-toc li {
	counter-increment: spatz-toc;
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.spatz-toc li::before {
	content: counter(spatz-toc, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--wp--preset--color--mist);
	flex-shrink: 0;
}
.spatz-toc li.spatz-toc-depth-3 { padding-left: 20px; font-size: 0.9375rem; }
.spatz-toc a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.15s var(--spatz-easing);
}
.spatz-toc a:hover { color: var(--wp--preset--color--spatz); }

/* ---------- Code block copy button ---------- */

.spatz-code-wrap {
	position: relative;
}
.spatz-copy-button {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	background: rgba(250, 243, 231, 0.12);
	color: var(--wp--preset--color--cream);
	border: 1px solid rgba(250, 243, 231, 0.22);
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s var(--spatz-easing), background 0.2s var(--spatz-easing);
	-webkit-tap-highlight-color: transparent;
}
.spatz-code-wrap:hover .spatz-copy-button,
.spatz-code-wrap:focus-within .spatz-copy-button { opacity: 1; }
.spatz-copy-button:hover { background: rgba(255, 107, 53, 0.25); color: var(--wp--preset--color--cream); }
.spatz-copy-button.is-copied { background: rgba(46, 125, 50, 0.35); }

/* ---------- Elementor compat ---------- */

body.spatz-elementor-page main.spatz-elementor-canvas,
body.spatz-elementor-page main.spatz-elementor-full {
	padding: 0 !important;
}

/* Give Elementor sections room to breathe against theme.json body padding */
.spatz-elementor-canvas .elementor,
.spatz-elementor-full .elementor {
	margin: 0 calc(var(--wp--preset--spacing--40) * -1);
}

/* ==========================================================================
   v1.2 additions
   ========================================================================== */

/* ---------- Accessibility: skip link ---------- */

.spatz-skip-link {
	position: absolute;
	top: -40px;
	left: 8px;
	z-index: 10000;
	padding: 10px 16px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: top 0.15s var(--spatz-easing);
}
.spatz-skip-link:focus,
.spatz-skip-link:focus-visible {
	top: 8px;
	outline: 3px solid var(--wp--preset--color--spatz);
	outline-offset: 2px;
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

/* Screen-reader only helper */
.spatz-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Accessibility: visible focus across interactive elements ---------- */

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

/* Remove outline on mouse-only focus where :focus-visible already exists */
:focus:not(:focus-visible) { outline: none; }

/* ---------- Breadcrumbs ---------- */

.spatz-breadcrumbs { font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; }
.spatz-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}
.spatz-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--wp--preset--color--whisker);
	letter-spacing: 0.02em;
}
.spatz-breadcrumbs li + li::before {
	content: "›";
	color: var(--wp--preset--color--mist);
	margin-right: 2px;
	font-weight: 600;
}
.spatz-breadcrumbs a {
	color: var(--wp--preset--color--whisker);
	text-decoration: none;
	transition: color 0.15s var(--spatz-easing);
}
.spatz-breadcrumbs a:hover { color: var(--wp--preset--color--spatz); text-decoration: underline; }
.spatz-crumb-current { color: var(--wp--preset--color--ink); font-weight: 500; }

/* ---------- Newsletter ---------- */

.spatz-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 520px;
	margin: 0 auto;
}
.spatz-newsletter-input {
	flex: 1;
	min-width: 220px;
	padding: 14px 18px;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s var(--spatz-easing), box-shadow 0.2s var(--spatz-easing);
}
.spatz-newsletter-input:focus,
.spatz-newsletter-input:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--spatz);
	box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}
.spatz-newsletter-input::placeholder { color: var(--wp--preset--color--mist); }

.spatz-newsletter-submit {
	padding: 14px 24px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s var(--spatz-easing), transform 0.15s var(--spatz-easing);
}
.spatz-newsletter-submit:hover { background: var(--wp--preset--color--spatz); }
.spatz-newsletter-submit:active { transform: scale(0.98); }

/* ---------- Related products (shortcode-rendered grid) ---------- */

.spatz-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--40);
}
@media (max-width: 880px) {
	.spatz-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.spatz-related-grid { grid-template-columns: 1fr; }
}

.spatz-related-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	transition: transform 0.25s var(--spatz-easing),
		box-shadow 0.25s var(--spatz-easing),
		border-color 0.25s var(--spatz-easing);
}
.spatz-related-card:hover,
.spatz-related-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(21, 20, 35, 0.08);
	border-color: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	outline: none;
}
.spatz-related-thumb {
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--cream-dark);
}
.spatz-related-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.spatz-related-thumb-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
}
.spatz-related-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
	margin: 0;
}
.spatz-related-card:hover .spatz-related-title,
.spatz-related-card:focus-visible .spatz-related-title {
	color: var(--wp--preset--color--spatz);
}
.spatz-related-excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--whisker);
}
.spatz-related-empty {
	padding: var(--wp--preset--spacing--50) 0;
	text-align: center;
	color: var(--wp--preset--color--whisker);
}

/* ==========================================================================
   v1.4 — EDD cart + mini-cart
   ========================================================================== */

/* ---------- Cart trigger (icon + count) ---------- */

.spatz-cart-wrap {
	position: relative;
	display: inline-flex;
}

.spatz-cart-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 500;
	transition: background 0.2s var(--spatz-easing), border-color 0.2s var(--spatz-easing);
	-webkit-tap-highlight-color: transparent;
	position: relative;
}

.spatz-cart-trigger:hover,
.spatz-cart-trigger:focus-visible {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	outline: none;
}

.spatz-cart-wrap-compact .spatz-cart-trigger {
	padding: 8px 12px;
	gap: 4px;
}

.spatz-cart-label {
	font-size: 0.875rem;
	font-weight: 500;
}

.spatz-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	transform: scale(0);
	transition: transform 0.25s var(--spatz-easing);
	pointer-events: none;
}
.spatz-cart-count.is-visible { transform: scale(1); }

/* Notification pulse when count increments — adds the class via JS */
@keyframes spatzCartPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
	50% { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0); }
}
.spatz-cart-count.is-pulsing { animation: spatzCartPulse 0.6s var(--spatz-easing); }

/* ---------- Mobile controls cluster ---------- */

.spatz-mobile-controls {
	gap: 8px;
}

/* ---------- Mini-cart dropdown ---------- */

.spatz-minicart {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: min(380px, 92vw);
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	box-shadow: 0 24px 56px rgba(21, 20, 35, 0.14), 0 4px 12px rgba(21, 20, 35, 0.06);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.2s var(--spatz-easing), transform 0.2s var(--spatz-easing);
	z-index: 50;
	overflow: hidden;
	pointer-events: none;
}
.spatz-minicart[hidden] { display: none; }
.spatz-minicart.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* Arrow/notch */
.spatz-minicart::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 20px;
	width: 12px;
	height: 12px;
	background: var(--wp--preset--color--paper);
	border-left: 1px solid var(--wp--preset--color--line);
	border-top: 1px solid var(--wp--preset--color--line);
	transform: rotate(45deg);
}

.spatz-minicart-inner {
	max-height: 70vh;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* ---------- Mini-cart: empty state ---------- */

.spatz-minicart-empty {
	padding: 40px 24px;
	text-align: center;
}
.spatz-minicart-empty-icon {
	font-size: 2.5rem;
	margin-bottom: 12px;
	opacity: 0.8;
}
.spatz-minicart-empty-title {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1.125rem;
	margin: 0 0 4px;
}
.spatz-minicart-empty-sub {
	font-size: 0.875rem;
	color: var(--wp--preset--color--whisker);
	margin: 0 0 20px;
}
.spatz-minicart-empty-cta {
	display: inline-block;
	padding: 10px 20px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s var(--spatz-easing);
}
.spatz-minicart-empty-cta:hover {
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

/* ---------- Mini-cart: head ---------- */

.spatz-minicart-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--cream);
}
.spatz-minicart-title {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1.0625rem;
	margin: 0;
}
.spatz-minicart-count {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	color: var(--wp--preset--color--whisker);
	letter-spacing: 0.04em;
}

/* ---------- Mini-cart: item list ---------- */

.spatz-minicart-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.spatz-minicart-item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 14px;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(231, 223, 207, 0.6);
	align-items: center;
}
.spatz-minicart-item:last-child { border-bottom: none; }

.spatz-minicart-thumb {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--cream-dark);
	flex-shrink: 0;
}
.spatz-minicart-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.spatz-minicart-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.spatz-minicart-item-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.spatz-minicart-item-title:hover { color: var(--wp--preset--color--spatz); }
.spatz-minicart-item-option {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	color: var(--wp--preset--color--whisker);
	letter-spacing: 0.02em;
}
.spatz-minicart-item-price {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.spatz-minicart-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	color: var(--wp--preset--color--mist);
	background: transparent;
	transition: background 0.15s var(--spatz-easing), color 0.15s var(--spatz-easing);
}
.spatz-minicart-remove:hover,
.spatz-minicart-remove:focus-visible {
	background: rgba(159, 159, 159, 0.15);
	color: var(--wp--preset--color--spatz-dark);
	outline: none;
	text-decoration: none;
}

/* ---------- Mini-cart: footer ---------- */

.spatz-minicart-foot {
	padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
	background: var(--wp--preset--color--cream);
	border-top: 1px solid var(--wp--preset--color--line);
}
.spatz-minicart-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 14px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
}
.spatz-minicart-total strong {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--wp--preset--color--ink);
}
.spatz-minicart-checkout {
	display: block;
	text-align: center;
	padding: 14px 20px;
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background 0.2s var(--spatz-easing), transform 0.15s var(--spatz-easing);
}
.spatz-minicart-checkout:hover,
.spatz-minicart-checkout:focus-visible {
	background: var(--wp--preset--color--spatz-dark);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
	outline: none;
}
.spatz-minicart-checkout:active { transform: scale(0.98); }

/* ---------- Empty EDD cart page ---------- */

#edd_checkout_cart_wrap:has(.edd-cart-empty),
.edd-empty-cart {
	padding: 48px 32px;
	text-align: center;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
}
.edd-empty-cart::before {
	content: "🐾";
	display: block;
	font-size: 3rem;
	margin-bottom: 16px;
	opacity: 0.7;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.spatz-minicart,
	.spatz-cart-count,
	.spatz-cart-count.is-pulsing {
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
}

/* ---------- Hide minicart on very small screens — show checkout page instead ---------- */

@media (max-width: 420px) {
	.spatz-minicart {
		position: fixed;
		top: auto !important;
		right: 0 !important;
		left: 0;
		bottom: 0;
		width: 100% !important;
		max-height: 80vh;
		border-radius: 20px 20px 0 0;
	}
	.spatz-minicart::before { display: none; }
}

/* ==========================================================================
   v1.5 — Login/register, account tabs, success + failed transaction pages
   ========================================================================== */

/* ---------- Auth cards (login + register) ---------- */

.spatz-auth-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	max-width: 1040px;
	margin: 40px auto;
}
@media (max-width: 880px) {
	.spatz-auth-pair { grid-template-columns: 1fr; }
}

.spatz-auth-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: 40px;
}

.spatz-auth-head {
	margin-bottom: 28px;
}
.spatz-auth-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--spatz);
	margin-bottom: 8px;
}
.spatz-auth-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 8px;
}
.spatz-auth-sub {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--whisker);
	margin: 0;
}

/* Style EDD's default form markup inside our card */
.spatz-auth-card form,
.spatz-auth-card .edd_form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.spatz-auth-card label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--whisker);
	margin-bottom: 6px;
	letter-spacing: 0.01em;
}
.spatz-auth-card input[type="text"],
.spatz-auth-card input[type="email"],
.spatz-auth-card input[type="password"],
.spatz-auth-card input[type="tel"] {
	width: 100%;
	padding: 12px 16px;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s var(--spatz-easing), box-shadow 0.2s var(--spatz-easing);
}
.spatz-auth-card input:focus,
.spatz-auth-card input:focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--spatz);
	box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
	background: var(--wp--preset--color--paper);
}
.spatz-auth-card input[type="submit"],
.spatz-auth-card .button,
.spatz-auth-card .edd-submit {
	align-self: flex-start;
	padding: 14px 28px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s var(--spatz-easing), transform 0.15s var(--spatz-easing);
}
.spatz-auth-card input[type="submit"]:hover,
.spatz-auth-card .button:hover,
.spatz-auth-card .edd-submit:hover {
	background: var(--wp--preset--color--spatz);
}
.spatz-auth-card .login-remember label,
.spatz-auth-card label.edd-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--whisker);
	margin: 0;
	cursor: pointer;
}
.spatz-auth-card input[type="checkbox"] {
	accent-color: var(--wp--preset--color--spatz);
}

.spatz-auth-foot {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 0.875rem;
	color: var(--wp--preset--color--whisker);
}
.spatz-auth-foot a {
	color: var(--wp--preset--color--spatz);
	text-decoration: none;
	font-weight: 500;
}
.spatz-auth-foot a:hover { text-decoration: underline; }
.spatz-auth-sep {
	color: var(--wp--preset--color--mist);
	margin: 0 8px;
}
.spatz-auth-terms {
	color: var(--wp--preset--color--mist);
	font-size: 0.8125rem;
	line-height: 1.5;
}
.spatz-auth-fallback {
	padding: 16px;
	background: var(--wp--preset--color--cream-dark);
	border-radius: 10px;
	color: var(--wp--preset--color--whisker);
	text-align: center;
	font-size: 0.9375rem;
}

/* ---------- Account page (logged in) ---------- */

.spatz-account {
	max-width: 1040px;
	margin: 0 auto;
}

.spatz-account-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding-bottom: 24px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	flex-wrap: wrap;
	gap: 16px;
}
.spatz-account-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 500;
	font-style: italic;
	letter-spacing: -0.02em;
	margin: 8px 0 0;
}
.spatz-account-logout {
	display: inline-block;
	padding: 10px 20px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s var(--spatz-easing), border-color 0.2s var(--spatz-easing);
}
.spatz-account-logout:hover {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.spatz-account-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 28px;
	padding: 6px;
	background: var(--wp--preset--color--cream-dark);
	border-radius: 999px;
	width: fit-content;
}
.spatz-account-tablist button {
	padding: 10px 20px;
	background: transparent;
	color: var(--wp--preset--color--whisker);
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s var(--spatz-easing), color 0.2s var(--spatz-easing);
	-webkit-tap-highlight-color: transparent;
}
.spatz-account-tablist button:hover {
	color: var(--wp--preset--color--ink);
}
.spatz-account-tablist button[aria-selected="true"] {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(21, 20, 35, 0.06);
}

.spatz-account-panel {
	animation: spatzFadeIn 0.25s var(--spatz-easing);
}
@keyframes spatzFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
.spatz-account-section-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	margin: 0 0 8px;
}
.spatz-account-section-sub {
	color: var(--wp--preset--color--whisker);
	font-size: 0.9375rem;
	margin: 0 0 20px;
}

/* ---------- Transaction pages (success + failed) ---------- */

.spatz-txn {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 80px;
	text-align: center;
}

.spatz-txn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 999px;
	background: rgba(46, 125, 50, 0.14);
	color: var(--wp--preset--color--moss);
	margin-bottom: 28px;
}
.spatz-txn-icon-warn {
	background: rgba(255, 107, 53, 0.14);
	color: var(--wp--preset--color--spatz-dark);
}

.spatz-txn-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 16px 0 16px;
}
.spatz-txn-lead {
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--wp--preset--color--whisker);
	max-width: 600px;
	margin: 0 auto 40px;
}

.spatz-txn-receipt {
	text-align: left;
	margin: 40px 0;
	padding: 28px;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
}

.spatz-txn-next,
.spatz-txn-reasons {
	text-align: left;
	margin: 40px 0;
}
.spatz-txn-next-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0 0 20px;
	text-align: center;
}

.spatz-txn-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.spatz-txn-steps li {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	text-align: left;
}
.spatz-txn-step-n {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--wp--preset--color--spatz-soft);
	color: var(--wp--preset--color--spatz-dark);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	font-size: 0.875rem;
}
.spatz-txn-steps strong {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}
.spatz-txn-steps p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--wp--preset--color--whisker);
}

.spatz-txn-reason-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.spatz-txn-reason-list li {
	padding: 16px 20px;
	background: var(--wp--preset--color--cream-dark);
	border-radius: 12px;
	font-size: 0.9375rem;
	line-height: 1.6;
}
.spatz-txn-reason-list strong { color: var(--wp--preset--color--ink); }

.spatz-txn-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 48px 0 24px;
}

.spatz-txn-footnote {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--whisker);
	line-height: 1.6;
	max-width: 560px;
	margin: 0 auto;
}
.spatz-txn-footnote a { color: var(--wp--preset--color--spatz); text-decoration: none; font-weight: 500; }
.spatz-txn-footnote a:hover { text-decoration: underline; }

/* ==========================================================================
   v1.6 — Settings-driven UI (announcement bar, social icons)
   ========================================================================== */

/* ---------- Announcement bar ---------- */

.spatz-announcement-bar {
	position: relative;
	width: 100%;
	font-size: 0.875rem;
	line-height: 1.4;
	transition: transform 0.3s var(--spatz-easing), opacity 0.3s var(--spatz-easing);
}
.spatz-announcement-bar.is-dismissed {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	max-height: 0;
	overflow: hidden;
}

.spatz-announcement-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 18px;
	padding: 10px 48px 10px 20px;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	position: relative;
}

.spatz-announcement-message {
	margin: 0;
	font-weight: 500;
}
.spatz-announcement-message strong {
	font-weight: 700;
}

.spatz-announcement-cta {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
	white-space: nowrap;
	opacity: 0.95;
	transition: opacity 0.15s var(--spatz-easing);
}
.spatz-announcement-cta:hover { opacity: 1; }

.spatz-announcement-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	background: transparent;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	transition: opacity 0.15s var(--spatz-easing), background 0.15s var(--spatz-easing);
	color: inherit;
}
.spatz-announcement-close:hover,
.spatz-announcement-close:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
	outline: none;
}

/* Background variants */
.spatz-announcement-bg-ink {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}
.spatz-announcement-bg-ink .spatz-announcement-cta { color: var(--wp--preset--color--spatz); }

.spatz-announcement-bg-spatz {
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
}
.spatz-announcement-bg-spatz .spatz-announcement-cta { color: var(--wp--preset--color--cream); }

.spatz-announcement-bg-cream-dark {
	background: var(--wp--preset--color--cream-dark);
	color: var(--wp--preset--color--ink);
}
.spatz-announcement-bg-cream-dark .spatz-announcement-cta { color: var(--wp--preset--color--spatz-dark); }

.spatz-announcement-bg-moss {
	background: var(--wp--preset--color--moss);
	color: var(--wp--preset--color--cream);
}
.spatz-announcement-bg-moss .spatz-announcement-cta { color: var(--wp--preset--color--cream); }

@media (prefers-reduced-motion: reduce) {
	.spatz-announcement-bar { transition: none; }
}

/* ---------- Social icons ---------- */

.spatz-socials {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.spatz-socials-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--whisker);
	margin-right: 4px;
}
.spatz-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	background: transparent;
	transition: background 0.15s var(--spatz-easing), color 0.15s var(--spatz-easing), transform 0.15s var(--spatz-easing);
}
.spatz-social-link:hover,
.spatz-social-link:focus-visible {
	background: var(--wp--preset--color--spatz-soft);
	color: var(--wp--preset--color--spatz-dark);
	outline: none;
	transform: translateY(-1px);
	text-decoration: none;
}
.spatz-socials-sm .spatz-social-link { width: 30px; height: 30px; }
.spatz-socials-lg .spatz-social-link { width: 42px; height: 42px; }

/* Inverted context (e.g., footer with dark background if used) */
.has-ink-background-color .spatz-social-link,
.has-whisker-background-color .spatz-social-link {
	color: var(--wp--preset--color--cream);
}
.has-ink-background-color .spatz-social-link:hover,
.has-whisker-background-color .spatz-social-link:hover {
	background: rgba(255, 107, 53, 0.22);
	color: var(--wp--preset--color--spatz);
}

/* ==========================================================================
   v1.7.1 — EDD form polish
   Target EDD's actual form markup (<p class="edd-login-*"> wrappers).
   ========================================================================== */

/* EDD wraps each field in a <p> — undo the default paragraph margins. */
.spatz-auth-card p[class*="edd-login-"],
.spatz-auth-card p[class*="edd-register-"],
.spatz-auth-card p[class*="edd_profile_"],
.spatz-auth-card p.edd-profile-email-wrap,
.spatz-auth-card p.edd-profile-password-wrap {
	margin: 0 0 14px;
}

.spatz-auth-card p[class*="edd-login-"]:last-child,
.spatz-auth-card p[class*="edd-register-"]:last-child {
	margin-bottom: 0;
}

/* Submit row — right-align on desktop, keep full-width on mobile */
.spatz-auth-card .edd-login-submit,
.spatz-auth-card .edd-register-submit {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* "Remember me" checkbox row — inline with label */
.spatz-auth-card .edd-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--whisker);
}
.spatz-auth-card .edd-login-remember label {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--wp--preset--color--whisker);
	cursor: pointer;
}

/* EDD error / notice messages inside the card */
.spatz-auth-card .edd_errors,
.spatz-auth-card .edd-alert,
.spatz-auth-card .edd_success,
.spatz-auth-card .edd_error {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 0.9375rem;
	line-height: 1.45;
}
.spatz-auth-card .edd-alert-error,
.spatz-auth-card .edd_errors,
.spatz-auth-card .edd_error {
	background: rgba(220, 53, 69, 0.08);
	border: 1px solid rgba(220, 53, 69, 0.25);
	color: #b32d2e;
}
.spatz-auth-card .edd-alert-success,
.spatz-auth-card .edd_success {
	background: rgba(46, 125, 50, 0.08);
	border: 1px solid rgba(46, 125, 50, 0.25);
	color: var(--wp--preset--color--moss);
}

/* ---------- Account dashboard: profile editor (EDD's default output) ---------- */

.spatz-account-panel #edd_profile_editor_form,
.spatz-account-panel .edd_form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	max-width: 720px;
}
@media (max-width: 720px) {
	.spatz-account-panel #edd_profile_editor_form,
	.spatz-account-panel .edd_form {
		grid-template-columns: 1fr;
	}
}
.spatz-account-panel #edd_profile_editor_form p,
.spatz-account-panel .edd_form p {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.spatz-account-panel #edd_profile_editor_form p.edd_profile_password,
.spatz-account-panel #edd_profile_editor_form p.edd_profile_confirm_password,
.spatz-account-panel #edd_profile_editor_form fieldset {
	grid-column: 1 / -1;
}
.spatz-account-panel #edd_profile_editor_form label,
.spatz-account-panel .edd_form label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--whisker);
	letter-spacing: 0.01em;
	margin: 0;
}
.spatz-account-panel #edd_profile_editor_form input[type="text"],
.spatz-account-panel #edd_profile_editor_form input[type="email"],
.spatz-account-panel #edd_profile_editor_form input[type="password"],
.spatz-account-panel .edd_form input[type="text"],
.spatz-account-panel .edd_form input[type="email"] {
	width: 100%;
	padding: 10px 14px;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.15s var(--spatz-easing), box-shadow 0.15s var(--spatz-easing);
}
.spatz-account-panel #edd_profile_editor_form input:focus,
.spatz-account-panel .edd_form input:focus {
	outline: none;
	border-color: var(--wp--preset--color--spatz);
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
	background: var(--wp--preset--color--paper);
}
.spatz-account-panel #edd_profile_editor_form input[type="submit"],
.spatz-account-panel #edd_profile_editor_form .button,
.spatz-account-panel .edd_form .button {
	grid-column: 1 / -1;
	justify-self: start;
	padding: 12px 24px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s var(--spatz-easing);
}
.spatz-account-panel #edd_profile_editor_form input[type="submit"]:hover,
.spatz-account-panel #edd_profile_editor_form .button:hover,
.spatz-account-panel .edd_form .button:hover {
	background: var(--wp--preset--color--spatz);
}

/* ---------- Purchase history table in account panel ---------- */

.spatz-account-panel #edd_user_history {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	overflow: hidden;
}
.spatz-account-panel #edd_user_history th,
.spatz-account-panel #edd_user_history td {
	padding: 16px 18px;
	text-align: left;
	font-size: 0.9375rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	vertical-align: middle;
}
.spatz-account-panel #edd_user_history thead th {
	background: var(--wp--preset--color--cream-dark);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--whisker);
}
.spatz-account-panel #edd_user_history tbody tr:last-child td {
	border-bottom: none;
}
.spatz-account-panel #edd_user_history tbody tr:hover {
	background: var(--wp--preset--color--cream);
}
.spatz-account-panel #edd_user_history .edd_purchase_status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.spatz-account-panel #edd_user_history .edd_purchase_status.complete,
.spatz-account-panel #edd_user_history .edd_purchase_status.publish {
	background: rgba(46, 125, 50, 0.14);
	color: var(--wp--preset--color--moss);
}
.spatz-account-panel #edd_user_history .edd_purchase_status.pending {
	background: rgba(255, 107, 53, 0.14);
	color: var(--wp--preset--color--spatz-dark);
}
.spatz-account-panel #edd_user_history .edd_purchase_status.failed,
.spatz-account-panel #edd_user_history .edd_purchase_status.refunded {
	background: rgba(159, 159, 159, 0.18);
	color: var(--wp--preset--color--mist);
}

/* Download links inside history rows */
.spatz-account-panel #edd_user_history ul.edd_purchase_receipt_files,
.spatz-account-panel #edd_user_history .edd_download_history_files {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.spatz-account-panel #edd_user_history .edd_download_file_link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--spatz);
	text-decoration: none;
	font-weight: 500;
}
.spatz-account-panel #edd_user_history .edd_download_file_link:hover {
	color: var(--wp--preset--color--spatz-dark);
	text-decoration: underline;
}

/* ---------- License keys table ---------- */

.spatz-account-panel #edd_sl_user_keys,
.spatz-account-panel .edd_sl_license_keys {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	overflow: hidden;
}
.spatz-account-panel #edd_sl_user_keys th,
.spatz-account-panel #edd_sl_user_keys td,
.spatz-account-panel .edd_sl_license_keys th,
.spatz-account-panel .edd_sl_license_keys td {
	padding: 14px 18px;
	text-align: left;
	font-size: 0.9375rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.spatz-account-panel #edd_sl_user_keys thead th,
.spatz-account-panel .edd_sl_license_keys thead th {
	background: var(--wp--preset--color--cream-dark);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--whisker);
}
.spatz-account-panel .edd_sl_license_key,
.spatz-account-panel code.license_key {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	background: var(--wp--preset--color--cream-dark);
	padding: 4px 10px;
	border-radius: 6px;
	display: inline-block;
	word-break: break-all;
}

/* ==========================================================================
   v1.7.2 — Account page: welcome meta, empty states, panel heads
   ========================================================================== */

.spatz-account-meta {
	margin: 6px 0 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--whisker);
}
.spatz-account-meta strong {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.spatz-account-name em {
	color: var(--wp--preset--color--spatz);
	font-style: italic;
}

.spatz-account-panel-head {
	margin-bottom: 24px;
}
.spatz-account-panel-head .spatz-account-section-title {
	margin: 0 0 6px;
}
.spatz-account-panel-head .spatz-account-section-sub {
	margin: 0;
	max-width: 560px;
}

/* Empty state for account tabs */
.spatz-account-empty {
	text-align: center;
	padding: 64px 24px;
	background: var(--wp--preset--color--paper);
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: 14px;
}
.spatz-account-empty-icon {
	font-size: 3rem;
	margin-bottom: 16px;
	opacity: 0.8;
}
.spatz-account-empty-title {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: 1.375rem;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--wp--preset--color--ink);
}
.spatz-account-empty-sub {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--whisker);
	max-width: 420px;
	margin: 0 auto 24px;
	line-height: 1.55;
}
.spatz-account-empty-cta {
	display: inline-block;
	padding: 12px 28px;
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s var(--spatz-easing);
}
.spatz-account-empty-cta:hover {
	background: var(--wp--preset--color--spatz-dark);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

/* ==========================================================================
   v1.8 — Multi-page account system (URL-based tabs)
   ========================================================================== */

.spatz-acct {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

/* ---------- Welcome hero ---------- */

.spatz-acct-hero {
	margin: 0 0 28px;
	padding: 48px 40px 56px;
	background: linear-gradient(135deg, var(--wp--preset--color--cream-dark), var(--wp--preset--color--cream));
	border-radius: 20px;
	border: 1px solid var(--wp--preset--color--line);
	position: relative;
	overflow: hidden;
}
.spatz-acct-hero::before {
	content: "🐾";
	position: absolute;
	right: -20px;
	bottom: -24px;
	font-size: 10rem;
	opacity: 0.08;
	transform: rotate(-8deg);
	pointer-events: none;
}
.spatz-acct-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}
.spatz-acct-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--spatz-dark);
	margin: 0 0 12px;
	font-weight: 600;
}
.spatz-acct-h1 {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 0 0 12px;
	color: var(--wp--preset--color--ink);
}
.spatz-acct-h1 em {
	font-style: italic;
	color: var(--wp--preset--color--spatz);
	font-weight: 600;
}
.spatz-acct-lead {
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--wp--preset--color--whisker);
	margin: 0;
}
.spatz-acct-lead strong {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

/* ---------- Tab nav ---------- */

.spatz-acct-tabs {
	margin: 0 0 28px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	position: sticky;
	top: 0;
	background: var(--wp--preset--color--cream);
	z-index: 10;
	margin-left: -8px;
	padding-left: 8px;
	margin-right: -8px;
	padding-right: 8px;
}
.spatz-acct-tabs-inner {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.spatz-acct-tabs-inner::-webkit-scrollbar { display: none; }

.spatz-acct-tab {
	flex-shrink: 0;
	padding: 14px 18px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wp--preset--color--whisker);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s var(--spatz-easing), border-color 0.15s var(--spatz-easing);
	white-space: nowrap;
}
.spatz-acct-tab:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.spatz-acct-tab.is-active {
	color: var(--wp--preset--color--ink);
	border-bottom-color: var(--wp--preset--color--spatz);
	font-weight: 600;
}
.spatz-acct-tab-logout {
	margin-left: auto;
	color: var(--wp--preset--color--mist);
	font-size: 0.875rem;
}
.spatz-acct-tab-logout:hover {
	color: var(--wp--preset--color--spatz-dark);
}

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

.spatz-acct-body {
	display: block;
}

.spatz-acct-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 20px;
}
.spatz-acct-grid-2 {
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) {
	.spatz-acct-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* ---------- Cards ---------- */

.spatz-acct-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.spatz-acct-card-fullwidth {
	margin-bottom: 20px;
}
.spatz-acct-card-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.spatz-acct-card-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--mist);
	margin: 0 0 4px;
	font-weight: 600;
}
.spatz-acct-card-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--wp--preset--color--ink);
}
.spatz-acct-card-sub {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--whisker);
	line-height: 1.55;
	margin: 4px 0 0;
	max-width: 520px;
}

/* Summary card — definition list */
.spatz-acct-defs {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.spatz-acct-def {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 16px;
	align-items: baseline;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.spatz-acct-def:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.spatz-acct-def dt {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--mist);
	margin: 0;
	font-weight: 600;
}
.spatz-acct-def dd {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--ink);
	margin: 0;
	font-weight: 500;
}

.spatz-acct-card-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--spatz);
	text-decoration: none;
	margin-top: auto;
}
.spatz-acct-card-link:hover {
	color: var(--wp--preset--color--spatz-dark);
	text-decoration: underline;
}

/* Offers card */
.spatz-acct-offer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	transition: border-color 0.15s var(--spatz-easing), background 0.15s var(--spatz-easing);
}
.spatz-acct-offer:hover {
	border-color: var(--wp--preset--color--spatz);
	background: var(--wp--preset--color--spatz-soft);
}
.spatz-acct-offer-content {
	flex: 1;
	min-width: 0;
}
.spatz-acct-offer-content h3 {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 4px;
	color: var(--wp--preset--color--ink);
}
.spatz-acct-offer-content p {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--wp--preset--color--whisker);
	margin: 0;
}
.spatz-acct-offer-cta {
	flex-shrink: 0;
	padding: 8px 16px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s var(--spatz-easing);
	white-space: nowrap;
}
.spatz-acct-offer-cta:hover {
	background: var(--wp--preset--color--spatz);
	text-decoration: none;
	color: var(--wp--preset--color--cream);
}

/* Quick actions */
.spatz-acct-quick-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}
.spatz-acct-quick-action {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.15s var(--spatz-easing), transform 0.15s var(--spatz-easing), background 0.15s var(--spatz-easing);
}
.spatz-acct-quick-action:hover {
	border-color: var(--wp--preset--color--spatz);
	background: var(--wp--preset--color--paper);
	transform: translateY(-2px);
	text-decoration: none;
}
.spatz-acct-quick-action-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--wp--preset--color--spatz-soft);
	color: var(--wp--preset--color--spatz-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 600;
}
.spatz-acct-quick-action-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.spatz-acct-quick-action-label strong {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}
.spatz-acct-quick-action-label span {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--whisker);
	line-height: 1.4;
}

/* ==========================================================================
   v1.9 — License cards + billing table + status pills
   ========================================================================== */

/* ---------- Status pills (shared between licenses & orders) ---------- */

.spatz-acct-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.spatz-acct-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
	flex-shrink: 0;
}
.spatz-acct-pill.is-success {
	background: rgba(46, 125, 50, 0.12);
	color: var(--wp--preset--color--moss);
}
.spatz-acct-pill.is-warning {
	background: rgba(255, 107, 53, 0.14);
	color: var(--wp--preset--color--spatz-dark);
}
.spatz-acct-pill.is-danger {
	background: rgba(178, 45, 46, 0.12);
	color: #b32d2e;
}
.spatz-acct-pill.is-muted {
	background: rgba(109, 110, 133, 0.14);
	color: var(--wp--preset--color--mist);
}

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

.spatz-license-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.spatz-license-card {
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	transition: border-color 0.15s var(--spatz-easing), box-shadow 0.15s var(--spatz-easing);
}
.spatz-license-card:hover {
	border-color: var(--wp--preset--color--spatz);
	box-shadow: 0 4px 16px rgba(21, 20, 35, 0.06);
}

.spatz-license-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.spatz-license-type {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--mist);
	margin: 0 0 4px;
}
.spatz-license-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
	margin: 0;
	color: var(--wp--preset--color--ink);
}

.spatz-license-body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: start;
}
@media (max-width: 680px) {
	.spatz-license-body {
		grid-template-columns: 1fr;
	}
}

/* License key field */
.spatz-license-key-wrap {
	min-width: 0;
}
.spatz-license-key-label {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--mist);
	margin-bottom: 6px;
}
.spatz-license-key-field {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.spatz-license-key-input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	color: var(--wp--preset--color--ink);
	letter-spacing: 0.02em;
	transition: border-color 0.15s var(--spatz-easing);
}
.spatz-license-key-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--spatz);
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.spatz-license-key-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s var(--spatz-easing);
	flex-shrink: 0;
}
.spatz-license-key-copy:hover,
.spatz-license-key-copy:focus-visible {
	background: var(--wp--preset--color--spatz);
	outline: none;
}
.spatz-license-key-copy.is-copied {
	background: var(--wp--preset--color--moss);
}
.spatz-license-key-copy.is-copied .spatz-license-copy-label::before {
	content: "✓ ";
}

/* License meta (expires, sites) */
.spatz-license-meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}
.spatz-license-meta > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.spatz-license-meta dt {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--mist);
	margin: 0;
}
.spatz-license-meta dd {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	margin: 0;
}
.spatz-license-meta dd.is-expired {
	color: #b32d2e;
}
.spatz-license-meta dd.is-soon {
	color: var(--wp--preset--color--spatz-dark);
}

/* Actions row */
.spatz-license-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--wp--preset--color--line);
}
.spatz-license-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s var(--spatz-easing), color 0.15s var(--spatz-easing), border-color 0.15s var(--spatz-easing);
}
.spatz-license-btn-primary {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}
.spatz-license-btn-primary:hover,
.spatz-license-btn-primary:focus {
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}
.spatz-license-btn-secondary {
	background: transparent;
	color: var(--wp--preset--color--spatz-dark);
	border: 1px solid var(--wp--preset--color--spatz);
}
.spatz-license-btn-secondary:hover,
.spatz-license-btn-secondary:focus {
	background: var(--wp--preset--color--spatz-soft);
	color: var(--wp--preset--color--spatz-dark);
	text-decoration: none;
}

/* ---------- Copy toast ---------- */

.spatz-copy-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(120%);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	padding: 12px 20px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	z-index: 99999;
	pointer-events: none;
	opacity: 0;
	transition: transform 0.25s var(--spatz-easing), opacity 0.25s var(--spatz-easing);
}
.spatz-copy-toast.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

/* ---------- Billing table ---------- */

.spatz-acct-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--line);
}
.spatz-acct-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--wp--preset--color--paper);
	font-size: 0.9375rem;
}
.spatz-acct-table thead th {
	text-align: left;
	padding: 14px 18px;
	background: var(--wp--preset--color--cream-dark);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--whisker);
	border-bottom: 1px solid var(--wp--preset--color--line);
	white-space: nowrap;
}
.spatz-acct-table tbody td {
	padding: 16px 18px;
	border-bottom: 1px solid var(--wp--preset--color--line);
	vertical-align: middle;
}
.spatz-acct-table tbody tr:last-child td {
	border-bottom: none;
}
.spatz-acct-table tbody tr:hover td {
	background: var(--wp--preset--color--cream);
}
.spatz-acct-order-num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	color: var(--wp--preset--color--whisker);
}
.spatz-acct-amount {
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	white-space: nowrap;
}
.spatz-acct-table-actions {
	text-align: right;
}
.spatz-acct-table-link {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--spatz);
	text-decoration: none;
}
.spatz-acct-table-link:hover {
	color: var(--wp--preset--color--spatz-dark);
	text-decoration: underline;
}

/* Responsive — stack columns on small screens */
@media (max-width: 600px) {
	.spatz-acct-table thead { display: none; }
	.spatz-acct-table, .spatz-acct-table tbody, .spatz-acct-table tr, .spatz-acct-table td {
		display: block;
		width: 100%;
	}
	.spatz-acct-table tr {
		padding: 14px 18px;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}
	.spatz-acct-table tr:last-child { border-bottom: none; }
	.spatz-acct-table td {
		padding: 4px 0;
		border-bottom: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
	}
	.spatz-acct-table td::before {
		content: attr(data-label);
		font-family: var(--wp--preset--font-family--mono);
		font-size: 0.7rem;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--wp--preset--color--mist);
	}
	.spatz-acct-table-actions { text-align: left; }
	.spatz-acct-table-actions::before { display: none; }
}

/* ==========================================================================
   v1.10.1 — Hero image / mascot fallback
   ========================================================================== */

.spatz-hero-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 300px;
}

.spatz-hero-image-media {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Mascot fallback — centered, subtle soft circle behind it */
.spatz-hero-image-mascot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 40px;
	background: radial-gradient(circle at center, var(--wp--preset--color--spatz-soft) 0%, transparent 70%);
	border-radius: 14px;
}
.spatz-hero-image-mascot .spatz-mascot {
	width: clamp(160px, 30vw, 280px);
	height: auto;
	display: block;
}
.spatz-hero-image-mascot .spatz-mascot svg {
	width: 100% !important;
	height: auto !important;
	max-width: 280px;
}

/* ==========================================================================
   v1.10.3 — Mobile menu cart link
   ========================================================================== */

.spatz-mobile-cart-link {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 20px 24px;
	padding: 16px 18px;
	background: var(--wp--preset--color--spatz-soft);
	border: 1px solid var(--wp--preset--color--spatz);
	border-radius: 14px;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	transition: background 0.15s var(--spatz-easing), transform 0.15s var(--spatz-easing);
	position: relative;
}
.spatz-mobile-cart-link:hover,
.spatz-mobile-cart-link:focus-visible {
	background: var(--wp--preset--color--cream-dark);
	text-decoration: none;
	transform: translateY(-1px);
}
.spatz-mobile-cart-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--spatz-dark);
}
.spatz-mobile-cart-label {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.spatz-mobile-cart-label strong {
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}
.spatz-mobile-cart-sub {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--whisker);
}
.spatz-mobile-cart-count {
	flex-shrink: 0;
	min-width: 28px;
	height: 28px;
	padding: 0 10px;
	background: var(--wp--preset--color--spatz);
	color: var(--wp--preset--color--cream);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--mono);
}
