/* Factorize Swipe — the full-screen Swipe page (inc/fullscreen.php). Strong
 * selectors on purpose: themes style html/body/links, and this page must not
 * scroll or pick up a theme's header spacing whatever the theme. */
html.fzsw-fullscreen,
html.fzsw-fullscreen body.fzsw-fullscreen-page {
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	overscroll-behavior: none;
}
html.fzsw-fullscreen body.fzsw-fullscreen-page { min-height: 0 !important; }

.fzsw-fs {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
	/* The theme's own page colours (its body background and text). */
	background: inherit;
	color: inherit;
}

.fzsw-fs .fzsw-fs__bar {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 10px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.fzsw-fs .fzsw-fs__title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}
.fzsw-fs .fzsw-fs__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	border-radius: 10px;
	color: inherit !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	background: none;
}
.fzsw-fs .fzsw-fs__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.fzsw-fs .fzsw-fs__cart { justify-content: center; }
.fzsw-fs .fzsw-fs__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #b3161b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.fzsw-fs .fzsw-fs__count:empty { display: none; }

.fzsw-fs .fzsw-fs__main {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 10px 10px;
	overflow: hidden;
}
.fzsw-fs .fzsw-fs__main > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- "Menu on the Swipe page: Shown" (assets/js/fullscreen-menu.js) ------
 * A menu button at the start of the bar; the site's main menu slides in from
 * the left over the deck. The panel scrolls inside itself when the menu is
 * long, so the page never does. Themes style buttons, headings and menu
 * items freely: everything here is reset on purpose. */
.fzsw-fs.fzsw-fs--menu .fzsw-fs__bar { grid-template-columns: auto auto 1fr auto; gap: 4px; }
html.fzsw-fullscreen .fzsw-fs button.fzsw-fs__btn {
	justify-content: center;
	margin: 0;
	border: 0;
	box-shadow: none;
	background: none;
	color: inherit !important;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
html.fzsw-fullscreen .fzsw-fs button.fzsw-fs__btn:hover { background: rgba(127, 127, 127, .12); }
html.fzsw-fullscreen .fzsw-fs .fzsw-fs__menu-btn { width: 44px; min-width: 44px; padding: 0; }

.fzsw-fs .fzsw-fs-menu {
	position: absolute;
	inset: 0;
	z-index: 20;
	overflow: hidden;
}
.fzsw-fs .fzsw-fs-menu[hidden] { display: none; }
.fzsw-fs .fzsw-fs-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .2s ease;
}
.fzsw-fs .fzsw-fs-menu__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(86vw, 360px);
	max-width: 100%;
	padding-left: env(safe-area-inset-left, 0px);
	background: var(--fzsw-fs-menu-bg, #fff);
	color: var(--fzsw-fs-menu-ink, inherit);
	box-shadow: 0 0 32px rgba(0, 0, 0, .25);
	transform: translateX(-102%);
	transition: transform .22s ease;
	outline: none;
}
.fzsw-fs .fzsw-fs-menu.is-open .fzsw-fs-menu__backdrop { opacity: 1; }
.fzsw-fs .fzsw-fs-menu.is-open .fzsw-fs-menu__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.fzsw-fs .fzsw-fs-menu__backdrop,
	.fzsw-fs .fzsw-fs-menu__panel { transition: none; }
}
.fzsw-fs .fzsw-fs-menu__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: 52px;
	padding: 0 6px 0 18px;
	border-bottom: 1px solid rgba(127, 127, 127, .22);
}
.fzsw-fs .fzsw-fs-menu__title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}
.fzsw-fs .fzsw-fs-menu__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 6px 0 calc(16px + env(safe-area-inset-bottom, 0px));
}
.fzsw-fs .fzsw-fs-menu__nav ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
	position: static;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	width: auto;
}
.fzsw-fs .fzsw-fs-menu__nav li {
	display: block;
	margin: 0;
	padding: 0;
	float: none;
	border: 0;
	background: none;
}
.fzsw-fs .fzsw-fs-menu__nav li::before,
.fzsw-fs .fzsw-fs-menu__nav li::after { content: none; }
.fzsw-fs .fzsw-fs-menu__nav a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 18px;
	color: inherit !important;
	background: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	border: 0;
	border-radius: 0;
}
.fzsw-fs .fzsw-fs-menu__nav a:hover { background: rgba(127, 127, 127, .12); }
.fzsw-fs .fzsw-fs-menu__nav a:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.fzsw-fs .fzsw-fs-menu__nav .current-menu-item > a,
.fzsw-fs .fzsw-fs-menu__nav .current_page_item > a { box-shadow: inset 4px 0 0 currentColor; }
.fzsw-fs .fzsw-fs-menu__nav ul ul a { padding-left: 34px; font-weight: 500; font-size: 15px; min-height: 44px; }
.fzsw-fs .fzsw-fs-menu__nav ul ul ul a { padding-left: 50px; }
