/* Edge-aware horizontal scroll rail (variant strips). */
.bm-hscroll {
	position: relative;
	min-width: 0;
}

.bm-hscroll__track {
	min-width: 0;
}

.bm-hscroll__btn {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	flex: 0 0 3rem;
	align-items: center;
	justify-content: center;
	width: 3rem;
	min-width: 3rem;
	max-width: 3rem;
	height: 3rem;
	min-height: 3rem;
	max-height: 3rem;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.5);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.18),
		0 0 0 3px rgba(255, 255, 255, 0.12),
		0 8px 24px rgba(0, 0, 0, 0.38);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	backdrop-filter: blur(16px) saturate(145%);
	-webkit-backdrop-filter: blur(16px) saturate(145%);
	transition:
		background-color 0.22s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.bm-hscroll__btn:hover,
.bm-hscroll__btn:focus-visible {
	border-color: rgba(255, 255, 255, 0.58);
	background: rgba(15, 23, 42, 0.9);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.24),
		0 0 0 4px rgba(255, 255, 255, 0.16),
		0 12px 30px rgba(0, 0, 0, 0.52);
	color: #fff;
	outline: none;
	transform: translateY(-50%) scale(1.08);
}

.bm-hscroll__btn:active {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.12),
		0 0 0 3px rgba(96, 165, 250, 0.12),
		0 4px 14px rgba(0, 0, 0, 0.42);
	transform: translateY(-50%) scale(0.96);
}

.bm-hscroll__btn .dashicons {
	display: inline-flex;
	flex: 0 0 24px;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	width: 24px;
	min-width: 24px;
	height: 24px;
	min-height: 24px;
	line-height: 1;
	font-weight: 700;
}

.bm-hscroll__btn--left {
	left: 0.45rem;
}

.bm-hscroll__btn--right {
	right: 0.45rem;
}

/* Library preview sheet sits on a dark bar — keep buttons readable. */
.bm-preview-layers .bm-hscroll__btn {
	border-color: rgba(255, 255, 255, 0.38);
	background: rgba(15, 23, 42, 0.5);
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		0 0 0 3px rgba(255, 255, 255, 0.14),
		0 10px 28px rgba(0, 0, 0, 0.52);
}

.bm-preview-layers .bm-hscroll__btn:hover,
.bm-preview-layers .bm-hscroll__btn:focus-visible {
	border-color: rgba(255, 255, 255, 0.62);
	background: rgba(15, 23, 42, 0.9);
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.25),
		0 0 0 4px rgba(255, 255, 255, 0.18),
		0 12px 32px rgba(0, 0, 0, 0.55);
}
