/**
 * Warenkorb & Kasse & Bestellbestätigung: voller Theme-Header aus (Tunnel).
 * Logo + Schritte: .su-checkout-steps-banner in checkout-steps.php; diese Datei blendet Mini-Cart/Top-Panel aus.
 * Ergänzt body.su-woo-tunnel-cart / body.su-woo-tunnel-checkout (functions.php).
 */

/* Theme-Header, Mobile-Overlay, Seitenmenü ausblenden */
body.su-woo-tunnel-checkout .top_panel,
body.su-woo-tunnel-checkout .menu_mobile,
body.su-woo-tunnel-checkout .menu_mobile_overlay,
body.su-woo-tunnel-checkout .menu_side_wrap,
body.su-woo-tunnel-cart .top_panel,
body.su-woo-tunnel-cart .menu_mobile,
body.su-woo-tunnel-cart .menu_mobile_overlay,
body.su-woo-tunnel-cart .menu_side_wrap {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/*
 * Checkout & Warenkorb-Tunnel: TRX/Eros Mini-Cart oft doppelt (Desktop + Mobile im DOM).
 * Slim-Header — Panels ausblenden, keine doppelten „Warenkorb ansehen“-Links.
 */
body.su-woo-tunnel-checkout .sc_layouts_cart,
body.su-woo-tunnel-checkout .trx_addons_sc_layouts_cart,
body.su-woo-tunnel-checkout .sc_layouts_cart_panel,
body.su-woo-tunnel-checkout .sc_layouts_cart_widget,
body.su-woo-tunnel-checkout .sc_layouts_cart_widget_area,
body.su-woo-tunnel-cart .sc_layouts_cart,
body.su-woo-tunnel-cart .trx_addons_sc_layouts_cart,
body.su-woo-tunnel-cart .sc_layouts_cart_panel,
body.su-woo-tunnel-cart .sc_layouts_cart_widget,
body.su-woo-tunnel-cart .sc_layouts_cart_widget_area,
/* Elementor Woo Menu Cart (zweite Quelle neben TRX / widget_shopping_cart) */
body.su-woo-tunnel-checkout .elementor-widget-woocommerce-menu-cart,
body.su-woo-tunnel-checkout .elementor-menu-cart__toggle,
body.su-woo-tunnel-checkout .elementor-menu-cart__container,
body.su-woo-tunnel-checkout .elementor-menu-cart__wrapper,
body.su-woo-tunnel-checkout .elementor-widget-container .elementor-menu-cart__toggle,
body.su-woo-tunnel-cart .elementor-widget-woocommerce-menu-cart,
body.su-woo-tunnel-cart .elementor-menu-cart__toggle,
body.su-woo-tunnel-cart .elementor-menu-cart__container,
body.su-woo-tunnel-cart .elementor-menu-cart__wrapper,
body.su-woo-tunnel-cart .elementor-widget-container .elementor-menu-cart__toggle,
/* Mini-Cart-Inhalt auch ohne .widget_shopping_cart-Klasse (Fragment-/Theme-Varianten) */
body.su-woo-tunnel-checkout .woocommerce-mini-cart,
body.su-woo-tunnel-checkout ul.woocommerce-mini-cart.cart_list,
body.su-woo-tunnel-cart .woocommerce-mini-cart,
body.su-woo-tunnel-cart ul.woocommerce-mini-cart.cart_list,
/* Doppelte Woo Mini-Cart-Widgets (Header/Mobile-Kopien im DOM) */
body.su-woo-tunnel-checkout .widget_shopping_cart,
body.su-woo-tunnel-checkout .woocommerce-mini-cart__buttons,
body.su-woo-tunnel-checkout .elementor-menu-cart__container,
body.su-woo-tunnel-checkout .elementor-menu-cart__footer-buttons,
body.su-woo-tunnel-checkout .wc-block-mini-cart,
body.su-woo-tunnel-cart .widget_shopping_cart,
body.su-woo-tunnel-cart .woocommerce-mini-cart__buttons,
body.su-woo-tunnel-cart .elementor-menu-cart__container,
body.su-woo-tunnel-cart .elementor-menu-cart__footer-buttons,
body.su-woo-tunnel-cart .wc-block-mini-cart,
/* BDThemes Element Pack WC Mini Cart (Fuß-Links außerhalb .woocommerce-mini-cart-Knoten) */
body.su-woo-tunnel-checkout .elementor-widget-bdt-wc-mini-cart,
body.su-woo-tunnel-cart .elementor-widget-bdt-wc-mini-cart {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Interaktive Mini-Cart-Fußzeilen-Links: bei zwei DOM-Kopien trotzdem nicht tab-/screenreader-fokussierbar */
body.su-woo-tunnel-checkout .woocommerce-mini-cart__buttons a,
body.su-woo-tunnel-checkout p.woocommerce-mini-cart__buttons a,
body.su-woo-tunnel-checkout .elementor-menu-cart__footer-buttons a,
body.su-woo-tunnel-checkout .wc-block-mini-cart__footer a,
body.su-woo-tunnel-checkout .bdt-mini-cart-footer-buttons a,
body.su-woo-tunnel-cart .woocommerce-mini-cart__buttons a,
body.su-woo-tunnel-cart p.woocommerce-mini-cart__buttons a,
body.su-woo-tunnel-cart .elementor-menu-cart__footer-buttons a,
body.su-woo-tunnel-cart .wc-block-mini-cart__footer a,
body.su-woo-tunnel-cart .bdt-mini-cart-footer-buttons a {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Optional: Breadcrumb-/Titelzeile im Header mit ausblenden (steckt in .top_panel) */
body.su-woo-tunnel-checkout .top_panel_title,
body.su-woo-tunnel-cart .top_panel_title {
	display: none !important;
}

/*
 * Tunnel ohne Slim-Leiste: Logo + Schritte stehen in .su-checkout-steps-banner (eigenes Padding 2rem).
 * Nur noch moderater Abstand zum Seitenrand / Admin-Bar.
 */
body.su-woo-tunnel-checkout .page_content_wrap,
body.su-woo-tunnel-cart .page_content_wrap {
	padding-top: max(1rem, env(safe-area-inset-top)) !important;
}

/* Schlanker Ersatz-Header */
.su-woo-tunnel-slim-header {
	position: sticky;
	z-index: 100050;
	top: 0;
	left: 0;
	right: 0;
	background: var(--su-tunnel-header-bg, #0f0f12);
	color: var(--su-tunnel-header-fg, #f4f4f5);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

body.admin-bar .su-woo-tunnel-slim-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .su-woo-tunnel-slim-header {
		top: 46px;
	}
}

/* Logo links, Nav optisch mittig (dritte Spalte 1fr gleicht das Layout aus) */
.su-woo-tunnel-slim-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	column-gap: 0.75rem;
	row-gap: 0.35rem;
	min-height: 56px;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	box-sizing: border-box;
}

.su-woo-tunnel-slim-logo {
	grid-column: 1;
	justify-self: start;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
	max-width: min(200px, 46vw);
	min-width: 0;
}

.su-woo-tunnel-slim-logo .su-woo-tunnel-custom-logo {
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.su-woo-tunnel-site-title {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.su-woo-tunnel-slim-nav {
	grid-column: 2;
	justify-self: center;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 1.1rem;
	text-align: center;
	max-width: min(100%, 70vw);
}

.su-woo-tunnel-slim-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid transparent;
	padding: 0.35rem 0.15rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	transition: color 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 380px) {
	.su-woo-tunnel-slim-link {
		white-space: normal;
		text-align: center;
		max-width: 11rem;
		line-height: 1.25;
	}
}

.su-woo-tunnel-slim-link:hover,
.su-woo-tunnel-slim-link:focus-visible {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.35);
	outline: none;
}

.su-woo-tunnel-slim-link--checkout {
	font-weight: 600;
	color: #fff;
}

/* Optional: große Footer-Sektion ausblenden — Klasse su-footer-hide-on-tunnel (siehe su-cart.css / su-checkout-overrides.css). */
body.su-woo-tunnel-cart .footer_wrap .su-footer-hide-on-tunnel,
body.su-woo-tunnel-checkout .footer_wrap .su-footer-hide-on-tunnel {
	display: none !important;
}
