/**
 * Isolated X-Ray shop chrome. Color system: intern Sub-App tokens
 * (extras/x-ray/assets/css/intern-tokens.css). Layout stays sparse.
 */

body.xray-shop {
	/* scribigo.de / intern SPA: 72px ink bar, max-w 1400px, px-6 / lg:px-10 */
	--xray-header-h: 72px;
	--xray-header-max: 1400px;
	--xray-header-px: 1.5rem;
	padding-top: var(--xray-header-h);
}

@media (min-width: 1024px) {
	body.xray-shop {
		--xray-header-px: 2.5rem;
	}
}

body.xray-shop.admin-bar {
	padding-top: calc(var(--xray-header-h) + 32px);
}

body.xray-shop #wpadminbar {
	display: none !important;
}

html {
	margin-top: 0 !important;
}

.xray-shop-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	box-sizing: border-box;
	height: var(--xray-header-h);
	min-height: var(--xray-header-h);
	padding: 0;
	background: var(--ink, oklch(0.145 0.006 60));
	border-bottom: 1px solid var(--ink-border, oklch(1 0 0 / 12%));
}

.xray-shop-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 0.5rem 1.5rem;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--xray-header-max);
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--xray-header-px);
}

.xray-shop-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	text-decoration: none !important;
	color: var(--ink-foreground, oklch(0.96 0.008 85)) !important;
	font-family: var(--swo-font-display, Outfit, ui-sans-serif, system-ui, sans-serif);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.xray-shop-brand img {
	display: block;
	height: 1.5rem;
	width: auto;
	max-width: none;
	object-fit: contain;
}

@media (min-width: 1024px) {
	.xray-shop-brand img {
		height: 1.75rem;
	}
}

/* Kasse-Frame (15.11.2026): App-Name wie Organizer/Buchsatz (border-l, ink-muted, Outfit sm). */
.xray-shop-brand-mark {
	display: inline-block;
	padding-left: 0.75rem;
	border-left: 1px solid var(--ink-border, oklch(1 0 0 / 12%));
	color: var(--ink-muted, oklch(0.68 0.012 75));
	font-family: var(--font-display, Outfit, ui-sans-serif, system-ui, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 0.875rem;
	letter-spacing: 0;
	line-height: 1.25rem;
}

.xray-shop-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	margin-left: 0.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--primary, oklch(0.66 0.19 45));
	color: var(--primary-foreground, oklch(0.13 0.01 60));
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.xray-shop-nav a.xray-shop-login {
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	background: var(--primary, oklch(0.66 0.19 45));
	color: var(--primary-foreground, oklch(0.13 0.01 60)) !important;
	opacity: 1;
}

.xray-shop-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-left: auto;
	gap: 0.5rem 1.5rem;
	font-family: var(--font-sans, "Source Sans 3", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.xray-shop-nav a,
.xray-shop-credits {
	color: var(--ink-foreground, oklch(0.96 0.008 85)) !important;
	text-decoration: none !important;
	opacity: 0.9;
}

.xray-shop-nav a:hover {
	color: var(--primary, oklch(0.66 0.19 45)) !important;
	opacity: 1;
}

.xray-shop-footer {
	margin-top: 3rem;
	padding: 1.25rem 1.25rem 2rem;
	border-top: 1px solid var(--border, oklch(0.89 0.01 80));
	background: var(--secondary, oklch(0.94 0.008 85));
	text-align: center;
}

.xray-shop-footer nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1.1rem;
	font-family: var(--swo-font-sans, "Source Sans 3", ui-sans-serif, system-ui, sans-serif);
	font-size: 0.8rem;
	font-weight: 600;
}

.xray-shop-footer a {
	color: var(--foreground, oklch(0.16 0.006 60)) !important;
	text-decoration: none !important;
	opacity: 0.85;
}

.xray-shop-footer a:hover {
	color: var(--petrol, oklch(0.31 0.045 205)) !important;
}

body.xray-shop #masthead,
body.xray-shop .ast-desktop-header,
body.xray-shop .ast-mobile-header-wrap,
body.xray-shop .ast-main-header-wrap,
body.xray-shop .main-header-bar-wrap,
body.xray-shop .sgo-mkt-header,
body.xray-shop #scribigoAppChrome,
body.xray-shop .scribigo-app-chrome,
body.xray-shop #colophon,
body.xray-shop .site-footer,
body.xray-shop .ast-small-footer,
body.xray-shop .ast-footer-copyright,
body.xray-shop .footer-adv,
body.xray-shop #astra-footer-adv,
body.xray-shop .trp-language-switcher,
body.xray-shop .trp-floater-ls,
body.xray-shop #trp-floater-ls {
	display: none !important;
}

body.xray-shop #content,
body.xray-shop .site-content,
body.xray-shop #page {
	background: transparent;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

@media (max-width: 639px) {
	.xray-shop-header {
		height: auto;
		min-height: var(--xray-header-h);
	}

	.xray-shop-header__inner {
		flex-wrap: wrap;
		row-gap: 0.5rem;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}
}

/* Kasse-Frame mobil: Navigation einzeilig, horizontal scrollbar; Inhalt unter dem zweizeiligen Kopf. */
@media (max-width: 639px) {
	body.xray-shop {
		padding-top: 104px;
	}

	.xray-shop-nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		width: 100%;
		margin-left: 0;
		gap: 1.1rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.xray-shop-nav::-webkit-scrollbar {
		display: none;
	}
}
