/* NKO Blank Canvas: resets that make the page edge to edge in any theme. */

/* Kill theme / theme.json spacing on the page itself (block themes add root padding to body). */
html body.nko-canvas {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	overflow-x: clip; /* stops sideways scroll without breaking position:sticky */
}

/* The only wrapper on the page: full width, no padding, at least one screen tall. */
body.nko-canvas .nko-canvas__main {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
}

/* If you design with native blocks instead of one Custom HTML block:
   full-width blocks touch both edges, wide blocks centre at the theme's wide size. */
body.nko-canvas .nko-canvas__main > .alignfull {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}
body.nko-canvas .nko-canvas__main > .alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

/* "Hide floating widgets" (on by default): floating cart buttons and drawers that would
   cover the page's own sticky buy bar. Add more selectors here if another one appears. */
body.nko-canvas--hide-floating .mm-side-cart-root,
body.nko-canvas--hide-floating .xoo-wsc-modal,
body.nko-canvas--hide-floating .xoo-wsc-basket,
body.nko-canvas--hide-floating .wpc-floating-cart,
body.nko-canvas--hide-floating #ast-scroll-top {
	display: none !important;
}

/* Stacked top-level blocks sit flush against each other (no gaps between sections). */
body.nko-canvas .nko-canvas__main > * {
	margin-block: 0;
}
