.fmslide {
	--fmslide-bg: #192a34;
	--fmslide-accent: #e85941;
	--fmslide-width: 190px;
	--fmslide-peek: 56px;
	--fmslide-hidden: calc(var(--fmslide-width) - var(--fmslide-peek));
	position: fixed;
	top: var(--fmslide-top, 300px);
	left: calc(-1 * var(--fmslide-hidden));
	z-index: 9990;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	width: var(--fmslide-width);
	padding: 0.55rem 0.45rem 0.55rem 0.55rem;
	border-radius: 0 12px 12px 0;
	background: var(--fmslide-bg);
	box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.22);
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	direction: rtl;
	transition: left 0.35s ease;
	box-sizing: border-box;
}

.fmslide.is-open,
.fmslide:hover,
.fmslide:focus-within {
	left: 0;
}

.fmslide__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.45rem 0.35rem;
	border-radius: 10px;
	text-decoration: none !important;
	color: #fff !important;
	transition: background 0.25s ease;
}

.fmslide__item:hover {
	background: rgba(255, 255, 255, 0.08);
}

.fmslide__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: transparent;
	flex-shrink: 0;
	overflow: hidden;
}

.fmslide__icon svg {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

.fmslide__label {
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fmslide__line {
	display: block;
	height: 1px;
	margin: 0.15rem 0.4rem;
	background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 767px) {
	.fmslide {
		--fmslide-width: 158px;
		--fmslide-peek: 42px;
		top: 38%;
		left: calc(-1 * var(--fmslide-hidden));
		right: auto;
		bottom: auto;
		padding: 0.3rem 0.28rem 0.3rem 0.4rem;
		border-radius: 0 10px 10px 0;
		box-shadow: 3px 6px 18px rgba(0, 0, 0, 0.2);
	}

	.fmslide.is-open,
	.fmslide:hover,
	.fmslide:focus-within {
		left: 0;
		right: auto;
	}

	.fmslide__item {
		grid-template-columns: 30px minmax(0, 1fr);
		gap: 0.3rem;
		min-height: 36px;
		padding: 0.28rem 0.22rem;
		border-radius: 8px;
	}

	.fmslide__icon {
		width: 30px;
		height: 30px;
		border-radius: 8px;
	}

	.fmslide__label {
		font-size: 0.7rem;
	}

	.fmslide__line {
		margin: 0.08rem 0.25rem;
	}
}
