/* The editor over the product page. Full viewport on purpose: a book is laid out
   at page size, and a shopper working in a small rectangle fights the tool. */
.bindl-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: #000;
	display: flex;
	flex-direction: column;
}

/* The way back to the shop lives above the editor, never on top of it. */
.bindl-overlay__bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 8px;
	background: #111;
	color: #fff;
	font: 500 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.bindl-overlay__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.bindl-overlay__back::before {
	content: "\2190";
	font-size: 16px;
}

.bindl-overlay__back:hover,
.bindl-overlay__back:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.bindl-overlay__back:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.bindl-overlay__frame {
	flex: 1 1 auto;
	display: block;
	width: 100%;
	min-height: 0;
	border: 0;
	background: #fff;
}

/* The page behind must not scroll under the overlay, and must get its scroll
   position back untouched when the overlay closes. */
html.bindl-overlay-open,
html.bindl-overlay-open body {
	overflow: hidden;
}
