.happyell-webapp-history-nav {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9997;
	pointer-events: none;
}

html.happyell-webapp-standalone .happyell-webapp-history-nav {
	display: block;
}

.happyell-webapp-history-nav__button {
	position: fixed;
	top: max(var(--happyell-webapp-history-top, 70px), calc(env(safe-area-inset-top, 0px) + 10px));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(40, 40, 40, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
	color: #222;
	font: 700 25px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	-webkit-tap-highlight-color: transparent;
	pointer-events: auto;
	cursor: pointer;
	transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
}

.happyell-webapp-history-nav__button--back {
	left: max(8px, env(safe-area-inset-left, 0px));
}

.happyell-webapp-history-nav__button--forward {
	right: max(8px, env(safe-area-inset-right, 0px));
}

.happyell-webapp-history-nav__button:active:not(:disabled) {
	transform: scale(.94);
	background: #fff;
}

.happyell-webapp-history-nav__button:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

.happyell-webapp-history-nav__button:disabled {
	opacity: .28;
	box-shadow: none;
	pointer-events: none;
	cursor: default;
}

@media (max-width: 359px) {
	.happyell-webapp-history-nav__button {
		width: 42px;
		height: 42px;
		font-size: 23px;
	}
}

@media print {
	.happyell-webapp-history-nav {
		display: none !important;
	}
}
