/* Kiosk mode: make the POS take the whole viewport and hide theme chrome */

body.wmpos-kiosk {
  overflow: hidden;
}

/* Hide admin bar (fallback in case filter doesn't run) */
#wpadminbar { display:none !important; }
html { margin-top:0 !important; }

/* Hide common theme headers/footers/navs
   IMPORTANT: do NOT hide the POS app header (wmpos-app-header). */
body.wmpos-kiosk header:not(.wmpos-app-header),
body.wmpos-kiosk footer,
#masthead, #colophon,
.site-header, .site-header-wrapper,
.site-footer, .site-footer-wrapper,
.elementor-location-header, .elementor-location-footer,
.wp-block-template-part,
.ast-header, .ast-footer-wrap,
#page > header, #page > footer,
#header, #footer,
.navbar, .navbar-header,
.wc-block-mini-cart, .wc-block-components-drawer,
.woocommerce-mini-cart, .woocommerce-minicart,
.xoo-wsc-modal, .xoo-wsc-basket, .xoo-wsc-footer,
.cart-drawer, .cartDrawer, .offcanvas-cart,
.wmpos-hide-in-kiosk {
  display:none !important;
}

/* Expand content area */
body.wmpos-kiosk #page,
body.wmpos-kiosk .site,
body.wmpos-kiosk .site-content,
body.wmpos-kiosk .content-area,
body.wmpos-kiosk .entry-content,
body.wmpos-kiosk .container,
body.wmpos-kiosk .elementor-section,
body.wmpos-kiosk .elementor-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Force POS wrapper to full viewport */
body.wmpos-kiosk .wmpos-wrap {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  margin: 0 !important;
  padding: 12px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--wmpos-bg);
}

/* Make the POS layout fill the viewport so panels can scroll internally */
body.wmpos-kiosk .wmpos-shell{
  flex: 1;
  min-height: 0;
}
body.wmpos-kiosk .wmpos-left,
body.wmpos-kiosk .wmpos-right{
  height: 100%;
}

/* Remove any theme spacing around content */
body.wmpos-kiosk .wmpos-wrap * {
  box-sizing: border-box;
}

