/*
 * Anchor and vignette.
 *
 * Both float above the page, so both reserve their own space and neither can
 * push content around. The anchor sits above the theme's mobile sticky slot by
 * using a taller z-index and its own bottom offset.
 */

.rn-anchor {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 8500;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 4px 0;
	background: var(--paper, #fff);
	border-top: 1px solid var(--rule-strong, #111214);
}

.rn-anchor[hidden] {
	display: none;
}

.rn-anchor__slot {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	overflow: hidden;
}

.rn-anchor__close {
	position: absolute;
	top: -22px;
	right: 0;
	width: 24px;
	height: 22px;
	background: var(--paper, #fff);
	color: var(--mute, #6b7078);
	border: 1px solid var(--rule-strong, #111214);
	border-bottom: 0;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.rn-anchor__close:hover {
	color: var(--ink, #111214);
}

/* ----------------------------------------------------------- vignette -- */

.rn-vignette {
	position: fixed;
	inset: 0;
	z-index: 9500;
	display: flex;
	flex-direction: column;
	background: var(--paper, #fff);
}

.rn-vignette[hidden] {
	display: none;
}

.rn-vignette__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-bottom: 1px solid var(--rule-strong, #111214);
	flex: 0 0 auto;
}

.rn-vignette__label {
	font-family: var(--font-mono, ui-monospace, Menlo, monospace);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mute, #6b7078);
}

.rn-vignette__close {
	width: 34px;
	height: 34px;
	background: none;
	border: 1px solid var(--rule, #d8dadf);
	color: var(--ink, #111214);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.rn-vignette__slot {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	padding: 12px;
}
