/* Special category navigation and mobile fixed footer navigation. */
.wpst-special-nav {
	display: grid;
	gap: 1rem;
	padding: 1.15rem 1.5rem 0.25rem;
}

.wpst-special-nav__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.wpst-special-nav__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 48px;
	padding: 0.75rem 1.15rem;
	border: 1px solid #3b3b3b;
	border-radius: 12px;
	background: linear-gradient(180deg, #292929 0%, #222 100%);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	color: #f5f5f5;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.wpst-special-nav__action:hover,
.wpst-special-nav__action:focus,
.wpst-special-nav__action.is-current {
	border-color: #5a5a5a;
	background: linear-gradient(180deg, #333 0%, #272727 100%);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.wpst-special-nav__action .fa {
	font-size: 1.35rem;
}

.wpst-special-nav__action--1 .fa {
	color: #ff5948;
}

.wpst-special-nav__action--2 .fa {
	color: #ffc52f;
}

.wpst-special-nav__action--3 .fa {
	color: #ff5796;
}

.wpst-special-nav__carousel {
	position: relative;
	min-width: 0;
}

.wpst-special-nav__viewport {
	overflow: hidden;
}

.wpst-special-nav__track {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding: 0.25rem 3rem;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.wpst-special-nav__track::-webkit-scrollbar {
	display: none;
}

.wpst-special-nav__category {
	flex: 0 0 auto;
	padding: 0.72rem 1rem;
	border: 1px solid #363636;
	border-radius: 9px;
	background: #242424;
	color: #ddd;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.15;
	scroll-snap-align: start;
	text-decoration: none;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.wpst-special-nav__category:hover,
.wpst-special-nav__category:focus,
.wpst-special-nav__category.is-current {
	border-color: #666;
	background: #333;
	color: #fff;
	text-decoration: none;
}

.wpst-special-nav__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #444;
	border-radius: 50%;
	background: rgba(24, 24, 24, 0.96);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 160ms ease, visibility 160ms ease;
}

.wpst-special-nav__arrow--prev {
	left: 0.3rem;
}

.wpst-special-nav__arrow--next {
	right: 0.3rem;
}

.wpst-special-nav__arrow.is-hidden {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.wpst-special-nav__action:focus-visible,
.wpst-special-nav__category:focus-visible,
.wpst-special-nav__arrow:focus-visible,
.wpst-mobile-fixed-nav__item:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.wpst-mobile-fixed-nav {
	display: none;
}

@media only screen and (max-width: 767.98px) {
	.wpst-special-nav {
		gap: 1.25rem;
		padding: 1rem 10px 0.35rem;
	}

	.wpst-special-nav__actions {
		gap: 0.55rem;
	}

	.wpst-special-nav__action {
		min-height: 46px;
		padding: 0.68rem 0.85rem;
		font-size: 0.9rem;
	}

	.wpst-special-nav__track {
		padding-right: 0;
		padding-left: 0;
	}

	.wpst-special-nav__category {
		padding: 0.72rem 1rem;
	}

	.wpst-special-nav__arrow {
		display: none;
	}

	.wpst-mobile-fixed-nav {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1000001;
		display: block;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		background: rgba(20, 20, 20, 0.97);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.42);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	.wpst-mobile-fixed-nav__inner {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: 42rem;
		margin: 0 auto;
	}

	.wpst-mobile-fixed-nav__item {
		position: relative;
		display: flex;
		min-width: 0;
		min-height: 76px;
		padding: 0.55rem 0.35rem 0.45rem;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.3rem;
		color: #eee;
		text-align: center;
		text-decoration: none;
	}

	.wpst-mobile-fixed-nav__item + .wpst-mobile-fixed-nav__item::before {
		position: absolute;
		top: 18%;
		bottom: 18%;
		left: 0;
		width: 1px;
		background: rgba(255, 255, 255, 0.12);
		content: "";
	}

	.wpst-mobile-fixed-nav__item:hover,
	.wpst-mobile-fixed-nav__item:focus,
	.wpst-mobile-fixed-nav__item.is-current {
		background: rgba(255, 255, 255, 0.035);
		color: #fff;
		text-decoration: none;
	}

	.wpst-mobile-fixed-nav__icon {
		display: inline-flex;
		min-height: 28px;
		align-items: center;
		justify-content: center;
		font-size: 1.75rem;
		line-height: 1;
	}

	.wpst-mobile-fixed-nav__label {
		display: block;
		max-width: 100%;
		overflow: hidden;
		font-size: 0.84rem;
		font-weight: 600;
		line-height: 1.25;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.wpst-mobile-fixed-nav__item--1 .wpst-mobile-fixed-nav__icon {
		color: #ff5948;
	}

	.wpst-mobile-fixed-nav__item--2 .wpst-mobile-fixed-nav__icon,
	.wpst-mobile-fixed-nav__item--2.is-current .wpst-mobile-fixed-nav__label {
		color: #5aa4ff;
	}

	.wpst-mobile-fixed-nav__item--3 .wpst-mobile-fixed-nav__icon {
		color: #ff5796;
	}

	.wpst-has-mobile-fixed-nav #page {
		padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	}

	.wpst-has-mobile-fixed-nav #back-to-top {
		bottom: calc(150px + env(safe-area-inset-bottom, 0px));
		z-index: 1000002;
	}

	/* Keep fixed-bottom banner add-ons visible above, rather than over, the nav. */
	.wpst-has-mobile-fixed-nav .rtb-fixed-ad.rtb-fixed-bottom {
		bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpst-special-nav__track {
		scroll-behavior: auto;
	}

	.wpst-special-nav__action,
	.wpst-special-nav__category,
	.wpst-special-nav__arrow {
		transition: none;
	}
}
