/* Vidguk Category Sort */

.vcs-sort {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	flex-shrink: 0;
}

.vcs-sort__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.28rem;
	min-width: 3.25rem;
	padding: 0.35rem 0.45rem 0.4rem;
	border-radius: 14px;
	border: 1px solid rgba(18, 24, 28, 0.08);
	background: #fff;
	color: #5a6670;
	transition:
		color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.2s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.vcs-sort__btn:hover {
	color: #12181c;
	border-color: rgba(12, 143, 126, 0.28);
	box-shadow: 0 1px 2px rgba(18, 24, 28, 0.04), 0 8px 20px rgba(18, 24, 28, 0.05);
	transform: translateY(-1px);
}

.vcs-sort__btn.is-active {
	color: #0c8f7e;
	border-color: rgba(12, 143, 126, 0.35);
	background: #d8f3ee;
}

.vcs-sort__icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
}

.vcs-sort__icon {
	display: flex;
	width: 1.2rem;
	height: 1.2rem;
}

.vcs-sort__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.vcs-sort__arrow {
	position: absolute;
	right: -0.35rem;
	bottom: -0.15rem;
	display: flex;
	width: 0.72rem;
	height: 0.72rem;
	opacity: 0.45;
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.vcs-sort__btn.is-active .vcs-sort__arrow {
	opacity: 1;
}

.vcs-sort__btn.is-asc .vcs-sort__arrow {
	transform: none;
}

.vcs-sort__btn.is-desc .vcs-sort__arrow,
.vcs-sort__btn:not(.is-active) .vcs-sort__arrow {
	transform: rotate(180deg);
}

.vcs-sort__arrow svg {
	width: 100%;
	height: 100%;
	display: block;
}

.vcs-sort__label {
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-align: center;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.vcs-sort {
		gap: 0.4rem;
	}

	.vcs-sort__btn {
		min-width: 2.9rem;
		padding: 0.3rem 0.35rem 0.35rem;
		border-radius: 12px;
	}

	.vcs-sort__label {
		font-size: 0.62rem;
	}
}
