/**
 * PhoenixB2B v1.6 — Tryb aplikacji B2B (frontend).
 *
 * Aktywne tylko gdy <body> ma klasę .phoenix-b2b-app-page (v1.6) lub
 * .phoenix-b2b-app-mode (v1.5, kompatybilność wsteczna).
 *
 * Co robi:
 *   - chowa nagłówek/stopkę/sidebar motywu (i Elementor location:header/footer),
 *   - chowa WSZYSTKIE warianty mini-cart / side-cart / drawer / floating-cart
 *     WooCommerce (xoo-wsc, woofc, wc-blocks, Elementor menu-cart itd.),
 *   - rozciąga kontener na full width + min-height 100vh,
 *   - ustawia ciemne tło zgodne z client-panel.css,
 *   - usuwa marginesy/paddingi, które motyw mógłby dorzucić.
 *
 * Wszystkie reguły scope'owane do body.phoenix-b2b-app-page lub
 * body.phoenix-b2b-app-mode — na innych stronach motyw działa normalnie.
 */

/* ==========================================================
 * BASE — html / body
 * ========================================================== */
html[data-pb2b-app="1"] {
	background: #070B18 !important;
}

body.phoenix-b2b-app-page,
body.phoenix-b2b-app-mode {
	background: #070B18 !important;
	color: #F8FAFC;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: hidden;
	min-height: 100vh;
}

/* ==========================================================
 * UKRYJ NAGŁÓWEK / STOPKĘ / SIDEBAR MOTYWU
 * ========================================================== */
body.phoenix-b2b-app-page > header,
body.phoenix-b2b-app-page > footer,
body.phoenix-b2b-app-page > .site-header,
body.phoenix-b2b-app-page > .site-footer,
body.phoenix-b2b-app-page .site-header,
body.phoenix-b2b-app-page .site-footer,
body.phoenix-b2b-app-page #site-header,
body.phoenix-b2b-app-page #site-footer,
body.phoenix-b2b-app-page #masthead,
body.phoenix-b2b-app-page #colophon,
body.phoenix-b2b-app-page .header-main,
body.phoenix-b2b-app-page .footer-main,
body.phoenix-b2b-app-page .global-header,
body.phoenix-b2b-app-page .global-footer,
body.phoenix-b2b-app-page .topbar,
body.phoenix-b2b-app-page .top-bar,
body.phoenix-b2b-app-page .header-top,
body.phoenix-b2b-app-page .pre-header,
body.phoenix-b2b-app-page .footer-top,
body.phoenix-b2b-app-page .footer-bottom,

/* Elementor */
body.phoenix-b2b-app-page .elementor-location-header,
body.phoenix-b2b-app-page .elementor-location-footer,
body.phoenix-b2b-app-page [data-elementor-type="header"],
body.phoenix-b2b-app-page [data-elementor-type="footer"],

/* Astra */
body.phoenix-b2b-app-page .ast-above-header,
body.phoenix-b2b-app-page .main-header-bar,
body.phoenix-b2b-app-page .ast-below-header,
body.phoenix-b2b-app-page .ast-small-footer,
body.phoenix-b2b-app-page .footer-adv,
body.phoenix-b2b-app-page .footer-sml-section,

/* GeneratePress */
body.phoenix-b2b-app-page .site-info,
body.phoenix-b2b-app-page .footer-widgets,

/* OceanWP */
body.phoenix-b2b-app-page #site-header-inner,
body.phoenix-b2b-app-page #footer,

/* Hello / Hello Plus */
body.phoenix-b2b-app-page .hello-header,
body.phoenix-b2b-app-page .hello-footer,

/* Storefront */
body.phoenix-b2b-app-page .storefront-handheld-footer-bar,

/* Kadence / Blocksy / Neve */
body.phoenix-b2b-app-page .site-header-wrap,
body.phoenix-b2b-app-page .site-header-row-container-inner,
body.phoenix-b2b-app-page .ct-header,
body.phoenix-b2b-app-page .ct-footer,
body.phoenix-b2b-app-page .header-main-nav,
body.phoenix-b2b-app-page .nv-navbar,

/* Generic sidebars / widgets */
body.phoenix-b2b-app-page .sidebar,
body.phoenix-b2b-app-page #secondary,
body.phoenix-b2b-app-page .widget-area,

/* Breadcrumbs i tytuły stron */
body.phoenix-b2b-app-page .breadcrumb,
body.phoenix-b2b-app-page .breadcrumbs,
body.phoenix-b2b-app-page .page-title,
body.phoenix-b2b-app-page .page-header,
body.phoenix-b2b-app-page .entry-header,
body.phoenix-b2b-app-page .post-thumbnail,
body.phoenix-b2b-app-page .single-featured-image-header,

/* Komentarze */
body.phoenix-b2b-app-page #comments,
body.phoenix-b2b-app-page .comments-area,
body.phoenix-b2b-app-page .nav-links,

/* Kompatybilność wsteczna — selektor v1.5 */
body.phoenix-b2b-app-mode > header,
body.phoenix-b2b-app-mode > footer,
body.phoenix-b2b-app-mode .site-header,
body.phoenix-b2b-app-mode .site-footer,
body.phoenix-b2b-app-mode #masthead,
body.phoenix-b2b-app-mode #colophon,
body.phoenix-b2b-app-mode .header-main,
body.phoenix-b2b-app-mode .footer-main,
body.phoenix-b2b-app-mode .elementor-location-header,
body.phoenix-b2b-app-mode .elementor-location-footer,
body.phoenix-b2b-app-mode .sidebar,
body.phoenix-b2b-app-mode #secondary,
body.phoenix-b2b-app-mode .widget-area,
body.phoenix-b2b-app-mode .breadcrumb,
body.phoenix-b2b-app-mode .page-title,
body.phoenix-b2b-app-mode .entry-header {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* ==========================================================
 * v1.6 — BLOKADA KOSZYKA WOOCOMMERCE (mini-cart / side-cart /
 * drawer / floating / header-cart) NA STRONACH APP-MODE.
 * ========================================================== */
body.phoenix-b2b-app-page .woocommerce-mini-cart,
body.phoenix-b2b-app-page .widget_shopping_cart,
body.phoenix-b2b-app-page .widget_shopping_cart_content,
body.phoenix-b2b-app-page .cart_list,
body.phoenix-b2b-app-page .product_list_widget,
body.phoenix-b2b-app-page .site-header-cart,
body.phoenix-b2b-app-page .cart-widget,
body.phoenix-b2b-app-page .cart-customlocation,
body.phoenix-b2b-app-page .cart-icon,
body.phoenix-b2b-app-page .cart-contents,

/* XooCart */
body.phoenix-b2b-app-page .xoo-wsc-container,
body.phoenix-b2b-app-page .xoo-wsc-modal,
body.phoenix-b2b-app-page .xoo-wsc-basket,
body.phoenix-b2b-app-page .xoo-wsc-bki,
body.phoenix-b2b-app-page .xoo-wsc-cont,
body.phoenix-b2b-app-page .xoo-wsc-sc-bki,
body.phoenix-b2b-app-page .xoo-wsc-opac,

/* WooCommerce Fast Cart */
body.phoenix-b2b-app-page .woofc,
body.phoenix-b2b-app-page .woofc-area,
body.phoenix-b2b-app-page .woofc-icon,
body.phoenix-b2b-app-page .woofc-count,
body.phoenix-b2b-app-page .woofc-overlay,

/* WooCommerce Blocks */
body.phoenix-b2b-app-page .wc-block-mini-cart,
body.phoenix-b2b-app-page .wc-block-mini-cart__drawer,
body.phoenix-b2b-app-page .wp-block-woocommerce-mini-cart,
body.phoenix-b2b-app-page .wp-block-woocommerce-mini-cart-contents,
body.phoenix-b2b-app-page .wc-block-components-drawer,

/* Elementor menu cart */
body.phoenix-b2b-app-page .elementor-menu-cart__container,
body.phoenix-b2b-app-page .elementor-menu-cart__toggle,
body.phoenix-b2b-app-page .elementor-menu-cart__main,
body.phoenix-b2b-app-page .elementor-menu-cart,
body.phoenix-b2b-app-page .elementor-widget-woocommerce-menu-cart,
body.phoenix-b2b-app-page .elementor-widget-wc-mini-cart,

/* Generic floating / drawer / side carts (motywy custom) */
body.phoenix-b2b-app-page .cart-drawer,
body.phoenix-b2b-app-page .side-cart,
body.phoenix-b2b-app-page .floating-cart,
body.phoenix-b2b-app-page .header-cart,
body.phoenix-b2b-app-page .mini-cart,
body.phoenix-b2b-app-page #side-cart,
body.phoenix-b2b-app-page #mini-cart,
body.phoenix-b2b-app-page #cart-drawer,
body.phoenix-b2b-app-page #floating-cart,
body.phoenix-b2b-app-page #header-cart,

/* Kompatybilność wsteczna — selektor v1.5 */
body.phoenix-b2b-app-mode .woocommerce-mini-cart,
body.phoenix-b2b-app-mode .widget_shopping_cart,
body.phoenix-b2b-app-mode .site-header-cart,
body.phoenix-b2b-app-mode .cart-widget,
body.phoenix-b2b-app-mode .xoo-wsc-container,
body.phoenix-b2b-app-mode .xoo-wsc-modal,
body.phoenix-b2b-app-mode .xoo-wsc-basket,
body.phoenix-b2b-app-mode .woofc,
body.phoenix-b2b-app-mode .wc-block-mini-cart,
body.phoenix-b2b-app-mode .wp-block-woocommerce-mini-cart,
body.phoenix-b2b-app-mode .elementor-menu-cart__container,
body.phoenix-b2b-app-mode .elementor-menu-cart__toggle,
body.phoenix-b2b-app-mode .elementor-widget-woocommerce-menu-cart,
body.phoenix-b2b-app-mode .cart-drawer,
body.phoenix-b2b-app-mode .side-cart,
body.phoenix-b2b-app-mode .floating-cart,
body.phoenix-b2b-app-mode .header-cart {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	max-width: 0 !important;
	max-height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -99999px !important;
	top: -99999px !important;
	z-index: -1 !important;
}

/* ==========================================================
 * ROZCIĄGNIJ KONTENER NA FULL WIDTH
 * ========================================================== */
body.phoenix-b2b-app-page #page,
body.phoenix-b2b-app-page .site,
body.phoenix-b2b-app-page #wrapper,
body.phoenix-b2b-app-page .site-content,
body.phoenix-b2b-app-page #content,
body.phoenix-b2b-app-page #primary,
body.phoenix-b2b-app-page .content-area,
body.phoenix-b2b-app-page main,
body.phoenix-b2b-app-page .main,
body.phoenix-b2b-app-page .entry-content,
body.phoenix-b2b-app-page article,
body.phoenix-b2b-app-page .ast-container,
body.phoenix-b2b-app-page .site-main,
body.phoenix-b2b-app-page .post-inner,
body.phoenix-b2b-app-page .container,
body.phoenix-b2b-app-page .container-fluid,
body.phoenix-b2b-app-page .row,
body.phoenix-b2b-app-page .elementor,
body.phoenix-b2b-app-page .elementor-section,
body.phoenix-b2b-app-page .elementor-container,
body.phoenix-b2b-app-page .elementor-widget-wrap,
body.phoenix-b2b-app-page .e-con,
body.phoenix-b2b-app-page .e-con-inner,
body.phoenix-b2b-app-mode #page,
body.phoenix-b2b-app-mode .site,
body.phoenix-b2b-app-mode #wrapper,
body.phoenix-b2b-app-mode .site-content,
body.phoenix-b2b-app-mode #content,
body.phoenix-b2b-app-mode #primary,
body.phoenix-b2b-app-mode .content-area,
body.phoenix-b2b-app-mode main,
body.phoenix-b2b-app-mode .main,
body.phoenix-b2b-app-mode .entry-content,
body.phoenix-b2b-app-mode article,
body.phoenix-b2b-app-mode .ast-container,
body.phoenix-b2b-app-mode .site-main,
body.phoenix-b2b-app-mode .post-inner,
body.phoenix-b2b-app-mode .elementor,
body.phoenix-b2b-app-mode .elementor-section,
body.phoenix-b2b-app-mode .elementor-container,
body.phoenix-b2b-app-mode .elementor-widget-wrap,
body.phoenix-b2b-app-mode .e-con,
body.phoenix-b2b-app-mode .e-con-inner {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	min-height: 100vh;
}

/* Storefront podstawowe nadpisanie szerokości */
body.phoenix-b2b-app-page #page,
body.phoenix-b2b-app-mode #page { display: block !important; }

/* Elementor: kill min-height defaults */
body.phoenix-b2b-app-page .elementor-section,
body.phoenix-b2b-app-page .elementor-section.elementor-section-boxed > .elementor-container,
body.phoenix-b2b-app-mode .elementor-section,
body.phoenix-b2b-app-mode .elementor-section.elementor-section-boxed > .elementor-container { max-width: none !important; }

/* ==========================================================
 * USUŃ BIAŁE PASKI / MARGINESY / RAMKI MOTYWU
 * ========================================================== */
body.phoenix-b2b-app-page .entry-content > .alignfull,
body.phoenix-b2b-app-page .entry-content > .alignwide,
body.phoenix-b2b-app-mode .entry-content > .alignfull,
body.phoenix-b2b-app-mode .entry-content > .alignwide {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.phoenix-b2b-app-page .has-spacing,
body.phoenix-b2b-app-page .single-content,
body.phoenix-b2b-app-page .post-content,
body.phoenix-b2b-app-mode .has-spacing,
body.phoenix-b2b-app-mode .single-content,
body.phoenix-b2b-app-mode .post-content { padding: 0 !important; margin: 0 !important; }

/* Admin bar — jeśli zostawiony */
body.phoenix-b2b-app-page.admin-bar,
body.phoenix-b2b-app-mode.admin-bar { padding-top: 0 !important; }
body.phoenix-b2b-app-page #wpadminbar,
body.phoenix-b2b-app-mode #wpadminbar { background: #0B1020 !important; }

/* Skip-links */
body.phoenix-b2b-app-page .skip-link,
body.phoenix-b2b-app-mode .skip-link { position: absolute !important; left: -9999px !important; }

/* ==========================================================
 * STRONA LOGOWANIA / STANY — pełna wysokość
 * ========================================================== */
body.phoenix-b2b-app-page .phoenix-b2b-panel,
body.phoenix-b2b-app-mode .phoenix-b2b-panel { min-height: 100vh; }

/* ==========================================================
 * RESPONSIVE — zapobiegnij wystawaniu poza viewport
 * ========================================================== */
body.phoenix-b2b-app-page,
body.phoenix-b2b-app-mode { overflow-x: hidden; }

/* ==========================================================
 * NIE ŁAM CHARAKTERYSTYCZNYCH KOMPONENTÓW PANELU
 * ========================================================== */
body.phoenix-b2b-app-page .phoenix-b2b-panel,
body.phoenix-b2b-app-mode .phoenix-b2b-panel { max-width: none; }
body.phoenix-b2b-app-page .phoenix-b2b-panel .pb2b-app,
body.phoenix-b2b-app-mode .phoenix-b2b-panel .pb2b-app { min-height: 100vh; }
