/*
 * The action bar of the phone: the primary button, fixed at the bottom, on glass like the door's
 * capsules. Shown by assets/js/action-bar.js, which also publishes its height as --ro-hauteur-barre.
 */

.ro-action-bar {
	position: fixed;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: var(--ro-couche-barre, 200);
	box-sizing: border-box;
	padding: var(--espace-8, 8px) var(--ro-marge, 16px);
	padding-block-end: calc(var(--espace-8, 8px) + env(safe-area-inset-bottom, 0px));
	padding-inline-start: max(var(--ro-marge, 16px), env(safe-area-inset-left, 0px));
	padding-inline-end: max(var(--ro-marge, 16px), env(safe-area-inset-right, 0px));
	border-block-start: 1px solid var(--trait, #d9e0ec);
	background: var(--ro-verre, rgb(255 255 255 / 0.9));
	-webkit-backdrop-filter: var(--ro-flou-verre, blur(14px) saturate(160%));
	backdrop-filter: var(--ro-flou-verre, blur(14px) saturate(160%));
	transform: translateY(100%);
	visibility: hidden;
	transition:
		transform var(--ro-duree-panneau, 250ms) ease-out,
		visibility 0s linear var(--ro-duree-panneau, 250ms);
}

.ro-action-bar--visible {
	transform: none;
	visibility: visible;
	transition:
		transform var(--ro-duree-panneau, 250ms) ease-out,
		visibility 0s;
}

/* A browser without backdrop-filter gets near-opaque paper, never page text showing through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ro-action-bar {
		background: var(--papier, #fff);
	}
}

@media (min-width: 768px) {
	.ro-action-bar {
		display: none;
	}
}

@media print {
	.ro-action-bar {
		display: none;
	}
}
