/* ==========================================================================
   BA24 Shop – Businessapp24 design system
   Fira Sans · navy/blue · light/dark · soft motion

   All front-end styles of the "BA24 Shop – Shopify Connector" plugin for
   printtextilien24.de: design tokens (CSS custom properties --ba24-*),
   light/dark schemes, buttons, hero, filter chips, product cards and grid,
   collection tiles, product page (gallery, variant picker, sticky buy bar,
   size guide dialog), cart drawer and cart page (incl. linked designer
   lines), customer account, motion, embedding in block themes and the
   designer (Gestalter).

   Interplay:
   - Markup comes from the plugin templates/shortcodes (classes .ba24-*).
   - assets/js/shop.js toggles state classes (is-open, is-visible,
     is-loading, is-active, …), sets --mx/--my on buttons and adds
     html.ba24-lock / ba24-js-reveal / ba24-sticky-on / ba24-buy-visible.
   - assets/js/designer.js drives the designer markup styled at the end.
   - Dark mode follows prefers-color-scheme unless the theme sets
     data-theme="light|dark" on <html> (Printtextilien24 theme switch);
     the dark tokens are therefore defined twice (media query + attribute).
   ========================================================================== */

:root {
	--ba24-navy: #14284b;
	--ba24-blue: #1667b8;
	--ba24-blue-hover: #0f4e8c;
	--ba24-accent: #6fb1f2;
	--ba24-bg: #f3f5f8;
	--ba24-card: #ffffff;
	--ba24-text: #2b3340;
	--ba24-heading: #14284b;
	--ba24-muted: #5a6575;
	--ba24-border: #dde3ea;
	--ba24-border-strong: #c9d3de;
	--ba24-soft: #e8f1fb;
	--ba24-selected: #f4f9fe;
	--ba24-amber: #f5b544;
	--ba24-error: #b42318;
	--ba24-ok: #2e7d4f;
	--ba24-accent-text: #1667b8;
	--ba24-on-navy: #ffffff;
	--ba24-pill-on: #14284b;
	--ba24-glow:
		0 18px 40px -22px rgba(22, 103, 184, 0.45),
		0 2px 6px -2px rgba(20, 40, 75, 0.08);
	--ba24-glow-lg:
		0 30px 60px -28px rgba(22, 103, 184, 0.55),
		0 4px 14px -6px rgba(20, 40, 75, 0.12);
	--ba24-radius: 16px;
	--ba24-radius-sm: 10px;
	--ba24-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ba24-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ba24-font: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ba24-bg: #0c1524;
		--ba24-card: #15223a;
		--ba24-text: #d5deea;
		--ba24-heading: #f1f5fb;
		--ba24-muted: #9aa8bb;
		--ba24-border: #24344d;
		--ba24-border-strong: #2f4363;
		--ba24-soft: #1a2c4a;
		--ba24-selected: #182a47;
		--ba24-accent-text: #7db9f5;
		--ba24-pill-on: #1667b8;
		--ba24-error: #f97066;
		--ba24-ok: #6fcf97;
		--ba24-glow:
			0 18px 40px -22px rgba(111, 177, 242, 0.25),
			0 2px 6px -2px rgba(0, 0, 0, 0.4);
		--ba24-glow-lg:
			0 30px 60px -28px rgba(111, 177, 242, 0.3),
			0 4px 14px -6px rgba(0, 0, 0, 0.5);
	}
}
:root[data-theme="dark"] {
	--ba24-bg: #0c1524;
	--ba24-card: #15223a;
	--ba24-text: #d5deea;
	--ba24-heading: #f1f5fb;
	--ba24-muted: #9aa8bb;
	--ba24-border: #24344d;
	--ba24-border-strong: #2f4363;
	--ba24-soft: #1a2c4a;
	--ba24-selected: #182a47;
	--ba24-accent-text: #7db9f5;
	--ba24-pill-on: #1667b8;
	--ba24-error: #f97066;
	--ba24-ok: #6fcf97;
	--ba24-glow:
		0 18px 40px -22px rgba(111, 177, 242, 0.25),
		0 2px 6px -2px rgba(0, 0, 0, 0.4);
	--ba24-glow-lg:
		0 30px 60px -28px rgba(111, 177, 242, 0.3),
		0 4px 14px -6px rgba(0, 0, 0, 0.5);
}

body.ba24-shop-page {
	background: var(--ba24-bg);
}
html.ba24-lock {
	overflow: hidden;
}
html {
	scroll-behavior: smooth;
}

.ba24,
.ba24 *,
.ba24 *::before,
.ba24 *::after {
	box-sizing: border-box;
}
.ba24 {
	font-family: var(--ba24-font);
	color: var(--ba24-text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.ba24 img {
	max-width: 100%;
	display: block;
}
.ba24 [hidden],
[data-ba24-count][hidden] {
	display: none !important;
}
:where(.ba24) a {
	color: inherit;
}
.ba24 :is(h1, h2, h3) {
	color: var(--ba24-heading);
	font-family: var(--ba24-font);
	line-height: 1.2;
	margin: 0;
	font-weight: 700;
	letter-spacing: normal;
}
.ba24 button {
	font-family: inherit;
}
.ba24-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.ba24-wrap {
	width: min(1240px, 100% - 32px);
	margin-inline: auto;
}
.ba24-muted {
	color: var(--ba24-muted);
}
.ba24-eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ba24-accent-text);
}
.ba24-h2 {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	margin-bottom: 24px !important;
}
.ba24 :focus-visible {
	outline: 2px solid var(--ba24-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---------- Buttons ---------- */
.ba24-btn {
	--mx: 50%;
	--my: 50%;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ba24-soft);
	color: var(--ba24-heading);
	font: 600 15px/1 var(--ba24-font);
	text-decoration: none;
	cursor: pointer;
	transition:
		background 0.3s var(--ba24-ease),
		color 0.3s,
		transform 0.25s var(--ba24-ease),
		box-shadow 0.3s var(--ba24-ease);
	-webkit-tap-highlight-color: transparent;
}
.ba24-btn::before {
	/* soft light spot that follows the cursor (--mx/--my set by shop.js) */
	content: "";
	position: absolute;
	z-index: -1;
	left: var(--mx);
	top: var(--my);
	width: 0;
	height: 0;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.16);
	transition:
		width 0.45s var(--ba24-ease),
		height 0.45s var(--ba24-ease);
}
.ba24-btn:hover::before {
	width: 260%;
	height: 260%;
}
.ba24-btn:hover {
	transform: translateY(-1px);
}
.ba24-btn:active {
	transform: translateY(0) scale(0.98);
}
.ba24-btn--primary {
	background: var(--ba24-blue);
	color: #fff;
	box-shadow: 0 12px 26px -14px rgba(22, 103, 184, 0.9);
}
.ba24-btn--primary:hover {
	background: var(--ba24-blue-hover);
	color: #fff;
	box-shadow: 0 16px 30px -14px rgba(22, 103, 184, 1);
}
.ba24-btn--ghost {
	background: transparent;
	color: var(--ba24-accent-text);
	box-shadow: inset 0 0 0 1.5px var(--ba24-border-strong);
}
.ba24-btn--ghost::before {
	background: var(--ba24-soft);
}
.ba24-btn--lg {
	min-height: 54px;
	padding: 0 28px;
	font-size: 16px;
}
.ba24-btn--block {
	width: 100%;
}
.ba24-btn[disabled],
.ba24-btn.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	pointer-events: none;
}
.ba24-btn.is-loading {
	color: transparent !important;
	pointer-events: none;
}
.ba24-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	animation: ba24-spin 0.7s linear infinite;
}
.ba24-btn--ghost.is-loading::after,
.ba24-btn:not(.ba24-btn--primary).is-loading::after {
	border-color: var(--ba24-border-strong);
	border-top-color: var(--ba24-blue);
}
.ba24-btn__check {
	position: absolute;
	width: 26px;
	height: 26px;
	opacity: 0;
	transform: scale(0.4);
	transition:
		opacity 0.3s,
		transform 0.45s var(--ba24-spring);
}
.ba24-btn__check path {
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
	transition: stroke-dashoffset 0.45s 0.1s var(--ba24-ease);
}
.ba24-btn.is-added .ba24-btn__label {
	opacity: 0;
	transform: translateY(-8px);
}
.ba24-btn.is-added .ba24-btn__check {
	opacity: 1;
	transform: scale(1);
}
.ba24-btn.is-added .ba24-btn__check path {
	stroke-dashoffset: 0;
}
.ba24-btn__label {
	transition:
		opacity 0.25s,
		transform 0.3s var(--ba24-ease);
}
.ba24-ripple {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.18;
	transform: scale(0);
	animation: ba24-ripple 0.6s var(--ba24-ease) forwards;
	pointer-events: none;
}
.ba24-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ba24-accent-text);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.35s var(--ba24-ease);
}
.ba24-link:hover {
	background-size: 100% 1.5px;
}
.ba24-icon-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ba24-heading);
	cursor: pointer;
	transition: background 0.25s;
}
.ba24-icon-btn:hover {
	background: var(--ba24-soft);
}

@keyframes ba24-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes ba24-ripple {
	to {
		transform: scale(1);
		opacity: 0;
	}
}

/* ---------- Hero ---------- */
.ba24-hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(
		120% 140% at 85% 0%,
		#1d3a6b 0%,
		var(--ba24-navy) 55%
	);
	color: #fff;
	padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 72px);
	margin-bottom: 28px;
	box-shadow: 0 40px 80px -50px rgba(22, 103, 184, 0.7);
}
.ba24-hero__mark {
	position: absolute;
	right: -40px;
	top: -30px;
	width: clamp(220px, 34vw, 420px);
	color: var(--ba24-accent);
	opacity: 0.12;
	transform: rotate(-8deg);
	will-change: transform;
	pointer-events: none;
}
.ba24-hero__title {
	color: #fff !important;
	font-size: clamp(34px, 6vw, 64px);
	font-weight: 700;
	letter-spacing: -0.02em;
}
.ba24-hero__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 16px;
	border-radius: 4px;
	background: var(--ba24-accent);
}
.ba24-hero__intro {
	max-width: 620px;
	margin: 16px 0 0;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.78);
}
.ba24-hero__intro p {
	margin: 0;
}
.ba24-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	margin-bottom: 14px;
	color: rgba(255, 255, 255, 0.7);
}
.ba24-crumbs a {
	text-decoration: none;
	color: var(--ba24-accent);
}
.ba24-crumbs a:hover {
	text-decoration: underline;
}
.ba24-crumbs--light {
	color: var(--ba24-muted);
	padding: 24px 0 8px;
	margin: 0;
}
.ba24-crumbs--light a {
	color: var(--ba24-accent-text);
}

/* ---------- Chips & filters ---------- */
.ba24-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 12px;
	scrollbar-width: none;
}
.ba24-chips::-webkit-scrollbar {
	display: none;
}
.ba24-chip {
	position: relative;
	overflow: hidden;
	flex: none;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--ba24-card);
	color: var(--ba24-text);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	box-shadow:
		0 1px 0 var(--ba24-border),
		var(--ba24-glow);
	transition:
		background 0.3s,
		color 0.3s,
		transform 0.25s var(--ba24-ease);
}
.ba24-chip:hover {
	transform: translateY(-1px);
	color: var(--ba24-accent-text);
}
.ba24-chip.is-active {
	background: var(--ba24-navy);
	color: #fff;
}
.ba24-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px 16px;
	margin: 8px 0 24px;
}
.ba24-select {
	display: grid;
	gap: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ba24-muted);
}
.ba24-select select {
	appearance: none;
	min-width: 170px;
	height: 44px;
	padding: 0 40px 0 16px;
	border: 0;
	border-radius: 12px;
	background: var(--ba24-card)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231667B8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")
		no-repeat right 16px center;
	color: var(--ba24-text);
	font: 500 15px var(--ba24-font);
	box-shadow:
		0 1px 0 var(--ba24-border),
		var(--ba24-glow);
	cursor: pointer;
	transition: box-shadow 0.3s;
}
.ba24-select select:hover {
	box-shadow:
		0 0 0 2px var(--ba24-soft),
		var(--ba24-glow);
}
.ba24-select--sort {
	margin-left: auto;
}

/* ---------- Grid & cards ---------- */
.ba24-grid {
	--ba24-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--ba24-cols), minmax(0, 1fr));
	gap: clamp(14px, 2vw, 28px);
}
@media (max-width: 1100px) {
	.ba24-grid {
		--ba24-cols: 3 !important;
	}
}
@media (max-width: 760px) {
	.ba24-grid {
		--ba24-cols: 2 !important;
	}
}
.ba24-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ba24-card);
	border-radius: var(--ba24-radius);
	overflow: hidden;
	box-shadow: var(--ba24-glow);
	transition:
		transform 0.45s var(--ba24-ease),
		box-shadow 0.45s var(--ba24-ease);
}
.ba24-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ba24-glow-lg);
}
.ba24-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	background: var(--ba24-soft);
	overflow: hidden;
}
.ba24-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		opacity 0.5s var(--ba24-ease),
		transform 0.8s var(--ba24-ease);
}
.ba24-card__img.is-swapping {
	opacity: 0.4;
}
.ba24-card__img--alt {
	opacity: 0;
}
.ba24-card:hover .ba24-card__img {
	transform: scale(1.035);
}
.ba24-card:hover .ba24-card__img--alt {
	opacity: 1;
}
.ba24-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--ba24-soft), var(--ba24-selected));
}
.ba24-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ba24-card__body {
	display: grid;
	gap: 6px;
	padding: 14px 16px 18px;
}
.ba24-card__title {
	font-size: 16px;
	font-weight: 600;
}
.ba24-card__title a {
	text-decoration: none;
}
.ba24-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
} /* whole card clickable */
.ba24-card__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-weight: 600;
	color: var(--ba24-heading);
}
.ba24-card__colors {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 6px;
}
.ba24-card__more {
	font-size: 12px;
	color: var(--ba24-muted);
}
.ba24-card.is-sold-out .ba24-card__img {
	filter: grayscale(0.5);
	opacity: 0.75;
}
.ba24-from {
	font-size: 13px;
	font-weight: 400;
	color: var(--ba24-muted);
}
.ba24-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--dot);
	box-shadow: inset 0 0 0 1px rgba(20, 40, 75, 0.18);
	cursor: pointer;
	transition:
		transform 0.3s var(--ba24-spring),
		box-shadow 0.3s;
}
.ba24-dot:hover,
.ba24-dot.is-active {
	transform: scale(1.25);
	box-shadow:
		inset 0 0 0 1px rgba(20, 40, 75, 0.18),
		0 0 0 2px var(--ba24-card),
		0 0 0 3.5px var(--ba24-accent);
}

.ba24-badge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--ba24-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.ba24-badge--sale {
	background: var(--ba24-amber);
	color: #14284b;
}
.ba24-badge--muted {
	background: rgba(20, 40, 75, 0.72);
}
.ba24-price--sale {
	color: var(--ba24-error);
}
.ba24-price--compare {
	color: var(--ba24-muted);
	font-weight: 400;
	font-size: 0.9em;
}

/* ---------- Collection tiles ---------- */
.ba24-collections {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}
.ba24-collection-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--ba24-radius);
	overflow: hidden;
	background: var(--ba24-navy);
	box-shadow: var(--ba24-glow);
	text-decoration: none;
}
.ba24-collection-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
	transition:
		transform 0.8s var(--ba24-ease),
		opacity 0.5s;
}
.ba24-collection-tile:hover img {
	transform: scale(1.05);
	opacity: 0.7;
}
.ba24-collection-tile__label {
	position: absolute;
	left: 18px;
	bottom: 16px;
	display: grid;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.ba24-collection-tile__label small {
	font-size: 13px;
	font-weight: 500;
	opacity: 0.85;
}

/* ---------- Pagination / empty state ---------- */
.ba24-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 40px 0 64px;
}
.ba24-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--ba24-card);
	text-decoration: none;
	font-weight: 500;
	box-shadow: var(--ba24-glow);
	transition:
		background 0.3s,
		color 0.3s;
}
.ba24-pagination .page-numbers.current {
	background: var(--ba24-blue);
	color: #fff;
}
.ba24-pagination a.page-numbers:hover {
	color: var(--ba24-accent-text);
}
.ba24-empty {
	text-align: center;
	padding: 64px 16px;
	background: var(--ba24-card);
	border-radius: var(--ba24-radius);
	box-shadow: var(--ba24-glow);
	margin-bottom: 64px;
}

/* ---------- Product page ---------- */
.ba24-pdp {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
	padding: 8px 0 56px;
}
@media (max-width: 900px) {
	.ba24-pdp {
		grid-template-columns: 1fr;
	}
}
.ba24-gallery {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 12px;
}
@media (max-width: 900px) {
	.ba24-gallery {
		position: static;
		margin-inline: -16px;
	}
}
.ba24-gallery__main {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-radius: var(--ba24-radius);
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow);
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.ba24-gallery__main::-webkit-scrollbar {
	display: none;
}
@media (max-width: 900px) {
	.ba24-gallery__main {
		border-radius: 0;
	}
}
.ba24-gallery__slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	aspect-ratio: 4 / 5;
	position: relative;
	background: var(--ba24-soft);
}
.ba24-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ba24-gallery__thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 2px;
	scrollbar-width: none;
}
@media (max-width: 900px) {
	.ba24-gallery__thumbs {
		padding-inline: 16px;
	}
}
.ba24-thumb {
	flex: none;
	width: 72px;
	aspect-ratio: 4 / 5;
	padding: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ba24-soft);
	cursor: pointer;
	opacity: 0.6;
	transition:
		opacity 0.3s,
		transform 0.3s var(--ba24-ease),
		box-shadow 0.3s;
}
.ba24-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ba24-thumb:hover {
	opacity: 0.9;
}
.ba24-thumb.is-active {
	opacity: 1;
	box-shadow:
		0 0 0 2px var(--ba24-bg),
		0 0 0 4px var(--ba24-blue);
}

.ba24-buy {
	display: grid;
	gap: 18px;
}
.ba24-buy__title {
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
	letter-spacing: -0.01em;
}
.ba24-buy__price {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 26px;
	font-weight: 700;
	color: var(--ba24-heading);
}
.ba24-buy__price .ba24-price--compare {
	font-size: 18px;
}
.ba24-buy__note {
	margin: -12px 0 0;
	font-size: 14px;
	color: var(--ba24-muted);
}
.ba24-buy__note a {
	color: var(--ba24-accent-text);
}
.ba24-unit:not(:empty)::before {
	content: " · Grundpreis: ";
}
.ba24-buy__lead {
	font-size: 17px;
}
.ba24-buy__lead p {
	margin: 0;
}
.ba24-buy__form {
	display: grid;
	gap: 20px;
	padding: 22px;
	border-radius: var(--ba24-radius);
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow);
}

.ba24-option {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.ba24-option legend {
	display: flex;
	align-items: baseline;
	gap: 6px;
	width: 100%;
	padding: 0;
	margin-bottom: 10px;
	font-size: 15px;
}
.ba24-option legend strong {
	color: var(--ba24-heading);
	font-weight: 600;
}
.ba24-option__guide {
	margin-left: auto;
	font-size: 14px;
}
.ba24-option__values {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ba24-pill {
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
	min-width: 52px;
	height: 46px;
	padding: 0 16px;
	border-radius: 12px;
	background: var(--ba24-bg);
	color: var(--ba24-text);
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	box-shadow: inset 0 0 0 1px var(--ba24-border);
	transition:
		background 0.25s,
		color 0.25s,
		box-shadow 0.3s,
		transform 0.3s var(--ba24-spring);
}
.ba24-pill:hover {
	background: var(--ba24-selected);
	color: var(--ba24-accent-text);
}
input:checked + .ba24-pill {
	background: var(--ba24-pill-on);
	color: #fff;
	box-shadow: none;
	transform: scale(1.03);
}
input:focus-visible + .ba24-pill,
input:focus-visible + .ba24-swatch {
	outline: 2px solid var(--ba24-accent);
	outline-offset: 3px;
}
.ba24-pill.is-unavailable {
	color: var(--ba24-muted);
	background-image: linear-gradient(
		to top right,
		transparent calc(50% - 0.75px),
		var(--ba24-border-strong) calc(50% - 0.75px),
		var(--ba24-border-strong) calc(50% + 0.75px),
		transparent calc(50% + 0.75px)
	);
}
input:checked + .ba24-pill.is-unavailable {
	background-color: var(--ba24-muted);
}
.ba24-swatch {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	background: var(--sw, #ccc);
	background-image: var(--sw-img, none);
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(20, 40, 75, 0.18);
	transition:
		transform 0.35s var(--ba24-spring),
		box-shadow 0.3s;
}
.ba24-swatch:hover {
	transform: scale(1.08);
}
input:checked + .ba24-swatch {
	box-shadow:
		inset 0 0 0 1px rgba(20, 40, 75, 0.18),
		0 0 0 3px var(--ba24-card),
		0 0 0 5px var(--ba24-blue);
}
.ba24-swatch.is-unavailable {
	opacity: 0.45;
}
.ba24-swatch.is-unavailable::after {
	content: "";
	position: absolute;
	inset: 4px;
	background: linear-gradient(
		to top right,
		transparent calc(50% - 1px),
		var(--ba24-card) calc(50% - 1px),
		var(--ba24-card) calc(50% + 1px),
		transparent calc(50% + 1px)
	);
	border-radius: 50%;
}

.ba24-stock {
	margin: -4px 0 0;
	min-height: 1.5em;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
}
.ba24-stock:not(:empty)::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.ba24-stock.is-in {
	color: var(--ba24-ok);
}
.ba24-stock.is-low {
	color: #b7791f;
}
.ba24-stock.is-out {
	color: var(--ba24-error);
}
:root[data-theme="dark"] .ba24-stock.is-low {
	color: var(--ba24-amber);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .ba24-stock.is-low {
		color: var(--ba24-amber);
	}
}

.ba24-buy__actions {
	display: flex;
	gap: 12px;
}
.ba24-buy__actions .ba24-btn {
	flex: 1;
}
.ba24-qty {
	display: inline-flex;
	align-items: center;
	height: 54px;
	border-radius: 999px;
	background: var(--ba24-bg);
	box-shadow: inset 0 0 0 1px var(--ba24-border);
}
.ba24-qty button {
	width: 44px;
	height: 100%;
	border: 0;
	background: none;
	color: var(--ba24-heading);
	font-size: 20px;
	cursor: pointer;
	border-radius: 999px;
	transition: background 0.25s;
}
.ba24-qty button:hover {
	background: var(--ba24-soft);
}
.ba24-qty input {
	width: 38px;
	border: 0;
	background: none;
	text-align: center;
	font: 600 16px var(--ba24-font);
	color: var(--ba24-heading);
	-moz-appearance: textfield;
}
.ba24-qty input::-webkit-inner-spin-button,
.ba24-qty input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.ba24-qty--sm {
	height: 36px;
}
.ba24-qty--sm button {
	width: 32px;
	font-size: 16px;
}
.ba24-qty--sm input {
	width: 30px;
	font-size: 14px;
}
.ba24-form-error {
	margin: -8px 0 0;
	color: var(--ba24-error);
	font-size: 14px;
	font-weight: 500;
}

.ba24-usp {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 15px;
}
.ba24-usp li {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ba24-usp svg,
.ba24-checks li::before {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: var(--ba24-blue);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ba24-checks {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.ba24-checks li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.ba24-checks li::before {
	content: "";
	margin-top: 3px;
	background: no-repeat center/18px
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231667B8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ba24-accordion {
	display: grid;
	border-radius: var(--ba24-radius);
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow);
	overflow: hidden;
}
.ba24-accordion details + details {
	border-top: 1px solid var(--ba24-border);
}
.ba24-accordion summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	font-weight: 600;
	color: var(--ba24-heading);
	cursor: pointer;
	list-style: none;
	transition: background 0.25s;
}
.ba24-accordion summary::-webkit-details-marker {
	display: none;
}
.ba24-accordion summary:hover {
	background: var(--ba24-selected);
}
.ba24-accordion summary::after {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--ba24-blue);
	border-bottom: 2px solid var(--ba24-blue);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.35s var(--ba24-ease);
}
.ba24-accordion details[open] summary::after {
	transform: rotate(225deg) translate(-2px, -2px);
}
.ba24-accordion__body {
	padding: 0 22px 20px;
	overflow: hidden;
}
.ba24-specs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 18px;
	margin: 0;
}
.ba24-specs dt {
	color: var(--ba24-muted);
}
.ba24-specs dd {
	margin: 0;
}

.ba24-prose > :first-child {
	margin-top: 0;
}
.ba24-prose > :last-child {
	margin-bottom: 0;
}
.ba24-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.ba24-prose th,
.ba24-prose td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--ba24-border);
}
.ba24-prose th {
	color: var(--ba24-heading);
	background: var(--ba24-selected);
	font-weight: 600;
}
.ba24-prose tr:hover td {
	background: var(--ba24-selected);
}
.ba24-prose figure.wp-block-table {
	margin: 0;
	overflow-x: auto;
}

.ba24-story {
	padding: 56px 0;
	background: var(--ba24-card);
}
.ba24-story__inner {
	max-width: 860px;
	font-size: 17px;
}
.ba24-related {
	padding: 56px 0 72px;
}

/* Sticky buy bar */
.ba24-sticky-buy {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 12px 0;
	background: color-mix(in srgb, var(--ba24-card) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	box-shadow: 0 -18px 40px -26px rgba(22, 103, 184, 0.6);
	transform: translateY(110%);
	transition: transform 0.5s var(--ba24-ease);
}
.ba24-sticky-buy.is-visible {
	transform: none;
}
.ba24-sticky-buy__inner {
	display: flex;
	align-items: center;
	gap: 16px;
}
.ba24-sticky-buy__info {
	display: grid;
	flex: 1;
	min-width: 0;
}
.ba24-sticky-buy__info strong {
	color: var(--ba24-heading);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ba24-sticky-buy__info span {
	font-size: 13px;
	color: var(--ba24-muted);
}
.ba24-sticky-buy .ba24-price {
	font-weight: 700;
	color: var(--ba24-heading);
}
@media (max-width: 600px) {
	.ba24-sticky-buy .ba24-price {
		display: none;
	}
}

/* Size guide dialog */
.ba24-dialog {
	width: min(760px, 100% - 32px);
	max-height: 85vh;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: var(--ba24-card);
	color: var(--ba24-text);
	box-shadow: var(--ba24-glow-lg);
}
.ba24-dialog[open] {
	animation: ba24-pop 0.4s var(--ba24-ease);
}
.ba24-dialog::backdrop {
	background: rgba(12, 21, 36, 0.55);
	backdrop-filter: blur(3px);
	animation: ba24-fade 0.3s ease;
}
.ba24-dialog__head {
	position: sticky;
	top: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	background: var(--ba24-card);
	border-bottom: 1px solid var(--ba24-border);
}
.ba24-dialog__head h2 {
	font-size: 20px;
}
.ba24-dialog__body {
	padding: 20px 22px 26px;
	overflow: auto;
}
@keyframes ba24-pop {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}
@keyframes ba24-fade {
	from {
		opacity: 0;
	}
}

/* ---------- Cart drawer ---------- */
.ba24-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	pointer-events: none;
}
.ba24-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 21, 36, 0.5);
	opacity: 0;
	transition: opacity 0.4s ease;
	backdrop-filter: blur(2px);
}
.ba24-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(440px, 100%);
	display: flex;
	flex-direction: column;
	background: var(--ba24-card);
	outline: none;
	transform: translateX(104%);
	transition:
		transform 0.55s var(--ba24-ease),
		box-shadow 0.55s;
}
.ba24-drawer.is-open {
	pointer-events: auto;
}
.ba24-drawer.is-open .ba24-drawer__backdrop {
	opacity: 1;
}
.ba24-drawer.is-open .ba24-drawer__panel {
	transform: none;
	box-shadow: -30px 0 60px -30px rgba(22, 103, 184, 0.5);
}
.ba24-drawer__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px 14px 24px;
}
.ba24-drawer__head h2 {
	font-size: 22px;
}
.ba24-drawer__count {
	color: var(--ba24-muted);
	font-weight: 400;
	font-size: 18px;
}
.ba24-drawer__ship {
	padding: 0 24px 14px;
}
.ba24-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 0 24px;
	overscroll-behavior: contain;
}
.ba24-drawer__foot {
	padding: 18px 24px 22px;
	display: grid;
	gap: 10px;
	background: var(--ba24-selected);
	box-shadow: 0 -14px 30px -24px rgba(22, 103, 184, 0.5);
}
.ba24-drawer__sum {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 17px;
}
.ba24-drawer__sum strong {
	font-size: 22px;
	color: var(--ba24-heading);
	font-variant-numeric: tabular-nums;
}
.ba24-drawer__note {
	margin: -4px 0 4px;
	font-size: 13px;
	color: var(--ba24-muted);
}
.ba24-drawer__full {
	justify-self: center;
	font-size: 14px;
}

.ba24-progress {
	height: 6px;
	border-radius: 6px;
	background: var(--ba24-soft);
	overflow: hidden;
}
.ba24-progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ba24-blue), var(--ba24-accent));
	transition: width 0.8s var(--ba24-ease);
}
[data-ba24-ship] p {
	margin: 0 0 8px;
	font-size: 14px;
}
[data-ba24-ship].is-done p {
	color: var(--ba24-ok);
	font-weight: 500;
}

.ba24-lines {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ba24-line {
	display: grid;
	grid-template-columns: 76px 1fr auto;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ba24-border);
	transition: opacity 0.25s;
}
.ba24-line:last-child {
	border-bottom: 0;
}
.ba24-line.is-busy {
	opacity: 0.55;
	pointer-events: none;
}
.ba24-line.is-unavailable .ba24-line__img {
	opacity: 0.5;
}
.ba24-line__img {
	display: block;
	width: 76px;
	aspect-ratio: 4 / 5;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ba24-soft);
}
.ba24-line__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ba24-line__info {
	display: grid;
	gap: 2px;
	align-content: start;
	min-width: 0;
}
.ba24-line__title {
	font-weight: 600;
	color: var(--ba24-heading);
	text-decoration: none;
}
.ba24-line__title:hover {
	color: var(--ba24-accent-text);
}
.ba24-line__opts,
.ba24-line__unit {
	font-size: 14px;
	color: var(--ba24-muted);
}
.ba24-line__unit s {
	opacity: 0.8;
}
.ba24-line__warn {
	font-size: 13px;
	color: var(--ba24-error);
	font-weight: 500;
}
.ba24-line__row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}
.ba24-line__remove {
	font-size: 13px;
	color: var(--ba24-muted);
}
.ba24-line__total {
	color: var(--ba24-heading);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ba24-cart-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 48px 0;
	text-align: center;
}
.ba24-cart-empty p {
	margin: 0 0 8px;
	color: var(--ba24-muted);
}
.ba24-icon-tile {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--ba24-blue);
	color: #fff;
	box-shadow: 0 14px 28px -14px rgba(22, 103, 184, 0.9);
}

.ba24-skeleton {
	height: 96px;
	margin: 14px 0;
	border-radius: 12px;
	background: linear-gradient(
		90deg,
		var(--ba24-soft) 0%,
		var(--ba24-selected) 50%,
		var(--ba24-soft) 100%
	);
	background-size: 200% 100%;
	animation: ba24-shimmer 1.4s ease-in-out infinite;
}
@keyframes ba24-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* Floating cart button & header button */
.ba24-cart-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	grid-auto-flow: column;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}
.ba24-cart-btn__count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--ba24-amber);
	color: #14284b;
	font: 700 12px/1 var(--ba24-font);
	box-shadow: 0 0 0 2px var(--ba24-card);
}
.ba24-floating {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
}
.ba24-cart-btn--floating {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--ba24-navy);
	color: #fff;
	box-shadow: 0 18px 36px -14px rgba(22, 103, 184, 0.9);
	transition:
		transform 0.35s var(--ba24-spring),
		box-shadow 0.35s;
}
.ba24-cart-btn--floating:hover {
	transform: translateY(-3px) scale(1.04);
	color: #fff;
}
.ba24-cart-btn--floating .ba24-cart-btn__count {
	top: 4px;
	right: 2px;
	box-shadow: 0 0 0 2px var(--ba24-navy);
}
.ba24-floating {
	transition:
		bottom 0.5s var(--ba24-ease),
		opacity 0.35s,
		transform 0.45s var(--ba24-ease);
}
html.ba24-sticky-on .ba24-floating {
	bottom: 92px;
}
@media (max-width: 900px) {
	html.ba24-buy-visible .ba24-floating {
		opacity: 0;
		transform: scale(0.6);
		pointer-events: none;
	}
}
.ba24-account-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	font-family: var(--ba24-font);
	font-weight: 500;
}

/* Toast */
.ba24-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100000;
	max-width: calc(100% - 32px);
	padding: 14px 20px;
	border-radius: 14px;
	background: var(--ba24-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	box-shadow: var(--ba24-glow-lg);
	transform: translate(-50%, 24px);
	opacity: 0;
	transition:
		transform 0.45s var(--ba24-ease),
		opacity 0.35s;
}
.ba24-toast.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}
.ba24-toast.is-error {
	background: var(--ba24-error);
}

/* ---------- Cart page ---------- */
.ba24-cartpage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 32px;
	align-items: start;
	margin: 8px 0 48px;
}
@media (max-width: 900px) {
	.ba24-cartpage {
		grid-template-columns: 1fr;
	}
}
.ba24-cartpage__lines {
	padding: 8px 24px;
	border-radius: var(--ba24-radius);
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow);
}
.ba24-cartpage .ba24-line {
	grid-template-columns: 96px 1fr auto;
}
.ba24-cartpage .ba24-line__img {
	width: 96px;
}
.ba24-summary {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 14px;
	padding: 24px;
	border-radius: var(--ba24-radius);
	background: var(--ba24-navy);
	color: rgba(255, 255, 255, 0.85);
	box-shadow: var(--ba24-glow-lg);
}
.ba24-summary h2 {
	color: #fff !important;
	font-size: 20px;
}
.ba24-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.ba24-summary__row strong {
	color: #fff;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
}
.ba24-summary__row--muted {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
}
.ba24-summary__note {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}
.ba24-summary .ba24-progress {
	background: rgba(255, 255, 255, 0.14);
}
.ba24-summary [data-ba24-ship].is-done p {
	color: #8fe3b0;
}
.ba24-discount {
	display: flex;
	gap: 8px;
}
.ba24-discount input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: 500 15px var(--ba24-font);
}
.ba24-discount input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}
.ba24-discount .ba24-btn--ghost {
	color: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
}
.ba24-discount .ba24-btn--ghost::before {
	background: rgba(255, 255, 255, 0.12);
}
.ba24-discount__codes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ba24-discount__codes:empty {
	display: none;
}
.ba24-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ba24-soft);
	color: var(--ba24-accent-text);
	font-size: 13px;
	font-weight: 600;
}
.ba24-summary .ba24-tag {
	background: rgba(111, 177, 242, 0.18);
	color: #bfe0ff;
}
.ba24-tag.is-invalid {
	text-decoration: line-through;
	opacity: 0.7;
}
.ba24-tag button {
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	padding: 0;
}

/* ---------- Customer account ---------- */
.ba24-account {
	margin: 8px 0 48px;
}
.ba24-alert {
	padding: 14px 18px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--ba24-error) 12%, var(--ba24-card));
	color: var(--ba24-error);
	font-weight: 500;
}
.ba24-login {
	display: grid;
	place-items: center;
	padding: 24px 0;
}
.ba24-login__card {
	width: min(460px, 100%);
	display: grid;
	gap: 14px;
	justify-items: start;
	padding: 32px;
	border-radius: 20px;
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow-lg);
}
.ba24-login__card h2 {
	font-size: 26px;
}
.ba24-login__card p {
	margin: 0;
	color: var(--ba24-muted);
}
.ba24-account__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	margin-bottom: 24px;
}
.ba24-account__head h2 {
	font-size: clamp(26px, 4vw, 36px);
}
.ba24-account__head p {
	margin: 4px 0 0;
}
.ba24-account__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ba24-account__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}
@media (max-width: 900px) {
	.ba24-account__grid {
		grid-template-columns: 1fr;
	}
}
.ba24-panel {
	padding: 24px;
	border-radius: var(--ba24-radius);
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow);
}
.ba24-panel h3 {
	font-size: 18px;
	margin-bottom: 14px;
}
.ba24-panel--navy {
	background: var(--ba24-navy);
	color: rgba(255, 255, 255, 0.85);
}
.ba24-panel--navy h3 {
	color: #fff;
}
.ba24-panel--navy address {
	font-style: normal;
	line-height: 1.7;
}
.ba24-panel__foot {
	margin: 14px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}
.ba24-orders {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ba24-order {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--ba24-border);
}
.ba24-order:last-child {
	border-bottom: 0;
}
.ba24-order__thumbs {
	display: flex;
}
.ba24-order__thumbs img {
	width: 44px;
	height: 54px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 0 0 2px var(--ba24-card);
}
.ba24-order__thumbs img + img {
	margin-left: -14px;
}
.ba24-order__meta {
	display: grid;
}
.ba24-order__meta strong {
	color: var(--ba24-heading);
}
.ba24-order__meta span {
	font-size: 14px;
}
.ba24-order__status {
	display: grid;
	justify-items: end;
	gap: 4px;
	font-size: 14px;
}
@media (max-width: 560px) {
	.ba24-order {
		grid-template-columns: 1fr auto;
	}
	.ba24-order__thumbs {
		display: none;
	}
}

/* ---------- Motion ---------- */
.ba24-js-reveal .ba24-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.7s var(--ba24-ease),
		transform 0.7s var(--ba24-ease),
		box-shadow 0.45s var(--ba24-ease);
}
.ba24-js-reveal .ba24-reveal.is-visible {
	opacity: 1;
	transform: none;
}
.ba24-js-reveal .ba24-card.ba24-reveal.is-visible:hover {
	transform: translateY(-4px);
}

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

/* ---------- Embedding in block themes (shortcodes inside pages) ---------- */
.is-layout-constrained > .ba24.ba24-cartpage,
.is-layout-constrained > .ba24.ba24-account,
.is-layout-constrained > .ba24:has(> .ba24-grid),
.is-layout-constrained > .ba24:has(> .ba24-collections) {
	max-width: var(--wp--style--global--wide-size, 1240px) !important;
}
.ba24-line__title {
	overflow-wrap: anywhere;
}
@media (max-width: 480px) {
	.ba24-line {
		grid-template-columns: 64px 1fr;
	}
	.ba24-line__img {
		width: 64px;
	}
	.ba24-cartpage .ba24-line {
		grid-template-columns: 72px 1fr;
	}
	.ba24-cartpage .ba24-line__img {
		width: 72px;
	}
	.ba24-line__total {
		grid-column: 2;
	}
}

@media (max-width: 420px) {
	.ba24-buy__form {
		padding: 18px;
	}
	.ba24-buy__actions {
		gap: 8px;
	}
	.ba24-qty button {
		width: 36px;
	}
	.ba24-qty input {
		width: 30px;
	}
	.ba24-btn--lg {
		padding: 0 18px;
	}
}

/* ---------- Protection against aggressive theme styles (buttons/labels) ---------- */
.ba24 .ba24-option label.ba24-pill {
	display: grid;
	padding: 0 16px;
	margin: 0;
	font-size: 15px;
	line-height: 1;
	vertical-align: baseline;
}
.ba24 .ba24-option label.ba24-swatch {
	display: block;
	padding: 0;
	margin: 0;
}
.ba24 button.ba24-link,
.ba24 .ba24-qty button,
.ba24 button.ba24-icon-btn,
.ba24 button.ba24-thumb,
.ba24 .ba24-tag button {
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	text-decoration: none;
	font-family: var(--ba24-font);
}
.ba24 button.ba24-link {
	color: var(--ba24-accent-text) !important;
	padding: 0 !important;
	font-size: inherit;
}
.ba24 .ba24-qty button {
	color: var(--ba24-heading) !important;
	padding: 0 !important;
}
.ba24 .ba24-qty button:hover,
.ba24 button.ba24-icon-btn:hover {
	background-color: var(--ba24-soft) !important;
}
.ba24 button.ba24-icon-btn {
	color: var(--ba24-heading) !important;
	padding: 0 !important;
}
.ba24 button.ba24-thumb {
	padding: 0 !important;
}
.ba24 button.ba24-thumb.is-active {
	box-shadow:
		0 0 0 2px var(--ba24-bg),
		0 0 0 4px var(--ba24-blue) !important;
}
.ba24 button.ba24-btn {
	border: 0 !important;
	text-transform: none;
	letter-spacing: normal;
	font-family: var(--ba24-font);
}
.ba24 button.ba24-btn--primary {
	background-color: var(--ba24-blue) !important;
	color: #fff !important;
}
.ba24 button.ba24-btn--primary:hover {
	background-color: var(--ba24-blue-hover) !important;
}
.ba24 button.ba24-btn--ghost {
	background-color: transparent !important;
	color: var(--ba24-accent-text) !important;
}
.ba24 .ba24-summary button.ba24-btn--ghost {
	color: #fff !important;
}
.ba24 .ba24-qty input,
.ba24 .ba24-discount input {
	border: 0 !important;
	box-shadow: none;
	outline-offset: 2px;
}

/* ---------- Cart: design lines (blank textile / print / setup) ---------- */
.ba24-line__img {
	position: relative;
}
.ba24-line__design {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 34px !important;
	height: 34px !important;
	object-fit: contain !important;
	border-radius: 8px;
	background: #fff;
	box-shadow:
		0 0 0 2px var(--ba24-card),
		0 4px 10px -4px rgba(20, 40, 75, 0.4);
}
.ba24-line__img {
	overflow: visible !important;
}
.ba24-line__img > img:first-child {
	border-radius: 10px;
}
.ba24-line__prop {
	font-size: 13px;
	color: var(--ba24-muted);
}
.ba24-line__linked {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ba24-accent-text);
}
.ba24-line.is-linked {
	padding-top: 10px;
	padding-bottom: 10px;
}
.ba24-line.is-linked .ba24-line__img {
	opacity: 0.75;
	transform: scale(0.82);
	transform-origin: top left;
}

/* ---------- Designer (Gestalter) ---------- */
.ba24-ds {
	margin: 8px 0 48px;
}
.ba24-ds__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	align-items: flex-start;
}
.ba24-ds__preview {
	flex: 1 1 440px;
	min-width: 0;
	display: grid;
	gap: 10px;
	position: sticky;
	top: 24px;
}
@media (max-width: 900px) {
	.ba24-ds__preview {
		position: static;
	}
}
.ba24-ds__stage {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	aspect-ratio: 4 / 5;
	border-radius: 20px;
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow);
	overflow: hidden;
	transition: box-shadow 0.3s;
}
.ba24-ds__stage.is-drop {
	box-shadow:
		0 0 0 3px var(--ba24-accent),
		var(--ba24-glow-lg);
}
.ba24-ds__stage svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.ba24-ds__stage svg path {
	transition: fill 0.35s ease;
}
.ba24-ds__area {
	position: absolute;
	border: 1.5px dashed rgba(22, 103, 184, 0.8);
	border-radius: 4px;
	display: grid;
	place-items: center;
	font-size: 13px;
	color: rgba(22, 103, 184, 0.9);
	transition: all 0.35s var(--ba24-ease);
}
.ba24-ds__area.is-dark {
	border-color: rgba(255, 255, 255, 0.7);
	color: rgba(255, 255, 255, 0.85);
}
.ba24-ds__area.has-motif span {
	display: none;
}
.ba24-ds__motif {
	position: absolute;
	height: auto;
	pointer-events: none;
	transition:
		left 0.35s var(--ba24-ease),
		top 0.35s var(--ba24-ease),
		width 0.35s var(--ba24-ease);
}
.ba24-ds__view {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(20, 40, 75, 0.85);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.ba24-ds__info {
	margin: 0;
	text-align: center;
	font-size: 14px;
	color: var(--ba24-muted);
}
.ba24-ds__hint {
	margin: 0;
	text-align: center;
	font-size: 13px;
	color: var(--ba24-muted);
}
.ba24-ds__controls {
	flex: 1 1 400px;
	min-width: 0;
	display: grid;
	gap: 16px;
}
.ba24-ds__card {
	display: grid;
	gap: 14px;
	padding: 20px;
	border-radius: var(--ba24-radius);
	background: var(--ba24-card);
	box-shadow: var(--ba24-glow);
}
.ba24 .ba24-ds__step {
	margin: 0;
	font-size: 16px;
}
.ba24-ds__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.ba24-ds__row:empty {
	display: none;
}
.ba24-ds__label {
	font-size: 14px;
	color: var(--ba24-muted);
	min-width: 52px;
}
.ba24-ds__colors strong {
	font-size: 14px;
	color: var(--ba24-heading);
}
.ba24-ds__methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
}
.ba24 button.ba24-ds__method {
	display: grid;
	gap: 4px;
	text-align: left;
	padding: 14px;
	border: 0 !important;
	border-radius: 12px;
	background: var(--ba24-bg) !important;
	color: var(--ba24-text) !important;
	box-shadow: inset 0 0 0 1px var(--ba24-border) !important;
	cursor: pointer;
	transition:
		box-shadow 0.25s,
		background 0.25s;
	font-family: var(--ba24-font);
	text-transform: none;
	letter-spacing: normal;
}
.ba24 button.ba24-ds__method strong {
	color: var(--ba24-heading);
	font-size: 15px;
}
.ba24 button.ba24-ds__method span {
	font-size: 13px;
	color: var(--ba24-muted);
}
.ba24 button.ba24-ds__method.is-on {
	box-shadow: inset 0 0 0 2px var(--ba24-blue) !important;
	background: var(--ba24-selected) !important;
}
.ba24 button.ba24-pill-btn {
	min-width: 52px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	border: 0 !important;
	box-shadow: inset 0 0 0 1px var(--ba24-border) !important;
	background: var(--ba24-bg) !important;
	color: var(--ba24-text) !important;
	font: 500 14px var(--ba24-font);
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	transition:
		background 0.2s,
		color 0.2s,
		transform 0.3s var(--ba24-spring);
}
.ba24 button.ba24-pill-btn:hover {
	background: var(--ba24-selected) !important;
	color: var(--ba24-accent-text) !important;
}
.ba24 button.ba24-pill-btn.is-on {
	background: var(--ba24-pill-on) !important;
	color: #fff !important;
	box-shadow: none !important;
	transform: scale(1.03);
}
.ba24 button.ba24-pill-btn.is-unavailable {
	color: var(--ba24-muted) !important;
	background-image: linear-gradient(
		to top right,
		transparent calc(50% - 0.75px),
		var(--ba24-border-strong) calc(50% - 0.75px),
		var(--ba24-border-strong) calc(50% + 0.75px),
		transparent calc(50% + 0.75px)
	) !important;
}
.ba24 button.ba24-ds__swatch {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0 !important;
	border-radius: 50%;
	background: var(--sw) !important;
	box-shadow: inset 0 0 0 1px rgba(20, 40, 75, 0.25) !important;
	cursor: pointer;
	transition:
		box-shadow 0.3s,
		transform 0.3s var(--ba24-spring);
}
.ba24 button.ba24-ds__swatch:hover {
	transform: scale(1.08);
}
.ba24 button.ba24-ds__swatch.is-on {
	box-shadow:
		inset 0 0 0 1px rgba(20, 40, 75, 0.25),
		0 0 0 3px var(--ba24-card),
		0 0 0 5px var(--ba24-blue) !important;
}
.ba24 button.ba24-ds__swatch.is-unavailable {
	opacity: 0.4;
}
.ba24-ds__upload {
	position: relative;
	flex: 1 1 220px;
	min-height: 52px;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1.5px dashed var(--ba24-accent-text);
	background: var(--ba24-bg);
	color: var(--ba24-accent-text);
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	transition: background 0.25s;
}
.ba24-ds__upload:hover {
	background: var(--ba24-selected);
}
.ba24-ds__upload:focus-within {
	outline: 2px solid var(--ba24-accent);
	outline-offset: 3px;
}
.ba24-ds__small {
	margin: 0;
	font-size: 13px;
	color: var(--ba24-muted);
}
.ba24-ds__small strong {
	color: var(--ba24-heading);
}
[data-ds-placing] {
	display: grid;
	gap: 14px;
}
[data-ds-placing][hidden] {
	display: none !important;
}
.ba24-ds__range {
	display: grid;
	gap: 2px;
	font-size: 14px;
	color: var(--ba24-muted);
}
.ba24-ds__range > span {
	display: flex;
	justify-content: space-between;
}
.ba24-ds__range strong {
	color: var(--ba24-heading);
}
.ba24-ds__range input {
	width: 100%;
	accent-color: var(--ba24-blue);
	height: 28px;
}
.ba24-ds__quality {
	display: grid;
	gap: 8px;
	padding: 14px;
	border-radius: 12px;
	background: var(--ba24-bg);
}
.ba24-ds__qhead {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
}
.ba24-ds__qhead strong {
	color: var(--ba24-heading);
}
.ba24-ds__qhead span {
	font-weight: 600;
}
.ba24-ds__qbar {
	height: 8px;
	border-radius: 8px;
	background: var(--ba24-border);
	overflow: hidden;
}
.ba24-ds__qbar span {
	display: block;
	height: 100%;
	border-radius: 8px;
	transition:
		width 0.5s var(--ba24-ease),
		background 0.3s;
}
.ba24-ds__select {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
	color: var(--ba24-muted);
}
.ba24-ds__select select {
	height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--ba24-border);
	background: var(--ba24-bg);
	color: var(--ba24-heading);
	font: 500 15px var(--ba24-font);
}
.ba24-ds__summary {
	display: grid;
	gap: 12px;
	padding: 20px;
	border-radius: var(--ba24-radius);
	background: var(--ba24-navy);
	color: rgba(255, 255, 255, 0.85);
	box-shadow: var(--ba24-glow-lg);
}
.ba24-ds__line {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
}
.ba24-ds__line[hidden] {
	display: none;
}
.ba24-ds__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.ba24-ds__total > span {
	text-align: right;
}
.ba24-ds__total strong {
	display: block;
	font-size: 24px;
	color: #fff;
}
.ba24-ds__total small {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}
.ba24 .ba24-qty--dark {
	height: 46px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}
.ba24 .ba24-qty--dark button,
.ba24 .ba24-qty--dark input {
	color: #fff !important;
}
.ba24 .ba24-qty--dark button:hover {
	background: rgba(255, 255, 255, 0.12) !important;
}
.ba24-ds__warn {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(245, 181, 68, 0.16);
	color: #f5c978;
	font-size: 14px;
}
.ba24-ds__fine {
	margin: 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
}
.ba24-ds .ba24-progress {
	background: var(--ba24-soft);
}

.ba24-line.is-linked .ba24-line__img:empty {
	background: var(--ba24-soft) no-repeat center/34px
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 8V3h10v5M7 17H4v-7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v7h-3M7 14h10v7H7z' fill='none' stroke='%231667B8' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Designer: feature preview */
.ba24-ds__banner {
	display: grid;
	gap: 4px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 14px;
	border: 1px solid
		color-mix(in srgb, var(--ba24-accent, #2563eb) 35%, transparent);
	background: color-mix(in srgb, var(--ba24-accent, #2563eb) 9%, transparent);
	color: var(--ba24-text, inherit);
	font-size: 0.95rem;
	line-height: 1.5;
}
.ba24-ds__banner strong {
	font-size: 1rem;
}
.ba24-ds.is-preview [data-ds-total] {
	font-size: 1.05rem;
}
