.facetwp-search {
	width: 100% !important;
	background: transparent !important;
	border: 1px solid #ffffff40 !important;
	padding: 4px 8px !important;
	border-radius: 4px !important;
}

.facetwp-facet {
	margin-bottom: 16px !important;
}

.facetwp-icon:before {
	background: url("../images/search.svg") no-repeat !important;
	height: 16px !important;
	width: 16px !important;
}

.facetwp-icon {
	display: flex;
	align-items: center;
	right: 8px !important;
}

/* Skeleton loading animation */
@keyframes shimmer {
	0% {
		background-position: -468px 0;
	}
	100% {
		background-position: 468px 0;
	}
}

.skeleton-loader {
	animation: shimmer 1.5s infinite linear;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.05) 0%,
		rgba(255, 255, 255, 0.15) 20%,
		rgba(255, 255, 255, 0.05) 40%,
		rgba(255, 255, 255, 0.05) 100%
	);
	background-size: 800px 100%;
	border-radius: 4px;
	display: inline-block;
	height: 1em;
	width: 100%;
}

#waitlist-body.is-filtering {
	opacity: 0.5;
	pointer-events: none;
	position: relative;
}

#waitlist-body.is-filtering::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(16, 25, 47, 0.7);
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.5;
	}
	50% {
		opacity: 0.8;
	}
}

/* No results styling */
.waitlist-no-results-content {
	width: 90%;
	max-width: 630px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.waitlist-no-results-content {
		width: 630px;
	}
}

.waitlist-clear-btn {
	background-color: #DB1E30;
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	padding: 14px 28px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.waitlist-clear-btn:hover {
	background-color: #c01929;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(219, 30, 48, 0.3);
}

.waitlist-clear-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(219, 30, 48, 0.3);
}

/* Zebra striping for table rows */
#waitlist-body tr:not(#waitlist-no-results):nth-child(even) {
	background-color: rgba(255, 255, 255, 0.03);
}

#waitlist-body tr:not(#waitlist-no-results):hover {
	background-color: rgba(249, 250, 251, 0.08) !important;
}

/* Search input and table container alignment */
#waitlist-wrapper > div {
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
}

/* Table container constraints */
#waitlist-wrapper .overflow-x-auto {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Cap table at 1000px and enable scroll */
#waitlist-wrapper table {
	max-width: 1000px;
	width: 100%;
}

/* Prevent text wrapping in table cells */
#waitlist-wrapper table th,
#waitlist-wrapper table td {
	white-space: nowrap;
}

/* Mobile: 90% width container with scrollable table */
@media (max-width: 767px) {

	#waitlist-wrapper .overflow-x-auto {
		width: 100%;
		max-width: 100%;
	}

	#waitlist-wrapper table {
		width: 640px;
		max-width: none;
	}
}

/* Custom scrollbar styling for waitlist table */
.waitlist-scrollable {
	/* Firefox scrollbar styling */
	scrollbar-width: thick;
	scrollbar-color: rgba(219, 30, 48, 0.8) rgba(255, 255, 255, 0.1);
}

/* Webkit browsers (Chrome, Safari, Edge) scrollbar styling */
.waitlist-scrollable::-webkit-scrollbar {
	width: 14px;
	height: 14px;
}

.waitlist-scrollable::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	margin: 4px;
}

.waitlist-scrollable::-webkit-scrollbar-thumb {
	background: rgba(219, 30, 48, 0.8);
	border-radius: 6px;
	border: 2px solid rgba(16, 25, 47, 0.5);
	transition: background 0.2s ease;
}

.waitlist-scrollable::-webkit-scrollbar-thumb:hover {
	background: rgba(219, 30, 48, 1);
}

.waitlist-scrollable::-webkit-scrollbar-thumb:active {
	background: rgba(192, 25, 41, 1);
}

/* Corner where horizontal and vertical scrollbars meet */
.waitlist-scrollable::-webkit-scrollbar-corner {
	background: rgba(255, 255, 255, 0.05);
}
