/* UD Awards — shop filters (English shop page) */

.udsf {
	--udsf-purple: #9560b8;
	--udsf-text: #17131d;
	--udsf-muted: #8a8590;
	--udsf-line: #e7e3ea;

	font-family: "UD Montserrat", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--udsf-text);
	padding-bottom: 40px;
}

/* Keep the column visible while scrolling long product lists (desktop) */
@media (min-width: 1024px) {
	.shop_sidebar .udsf {
		position: sticky;
		top: 24px;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		padding-right: 8px;
		scrollbar-width: thin;
	}
}

.udsf ul,
.udsf li,
.udsf p {
	margin: 0;
	padding: 0;
	list-style: none;
}

.udsf-group {
	margin: 0 0 34px;
}

.udsf .udsf-title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--udsf-purple);
	font-size: 14px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--udsf-text);
}

.udsf .udsf-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
	color: var(--udsf-text);
	text-decoration: none !important;
	transition: color .15s ease;
}

.udsf .udsf-option:hover {
	color: var(--udsf-purple);
}

.udsf .udsf-option:focus-visible {
	outline: 2px solid var(--udsf-purple);
	outline-offset: 3px;
	border-radius: 3px;
}

.udsf-mark {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	border: 1px solid #aaa;
	box-sizing: border-box;
	background: #fff;
	position: relative;
	transition: border-color .15s ease, background-color .15s ease;
}

.udsf-mark--radio {
	border-radius: 50%;
}

.udsf-mark--check {
	border-radius: 3px;
}

.udsf .udsf-option:hover .udsf-mark {
	border-color: var(--udsf-purple);
}

/* active */
.udsf .udsf-option.is-active {
	color: var(--udsf-purple);
	font-weight: 600;
}

.udsf .udsf-option.is-active .udsf-mark--radio {
	border: 4px solid var(--udsf-purple);
}

.udsf .udsf-option.is-active .udsf-mark--check {
	border-color: var(--udsf-purple);
	background: var(--udsf-purple);
}

.udsf .udsf-option.is-active .udsf-mark--check::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* "Show all" */
.udsf-more summary {
	display: inline-block;
	margin: 2px 0 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--udsf-purple);
	cursor: pointer;
	list-style: none;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.udsf-more summary::-webkit-details-marker {
	display: none;
}

.udsf-more .udsf-more__close,
.udsf-more[open] .udsf-more__open {
	display: none;
}

.udsf-more[open] .udsf-more__close {
	display: inline;
}

.udsf-more[open] summary {
	order: 2;
}

.udsf-more[open] {
	display: flex;
	flex-direction: column;
}

/* Clear filters */
.udsf .udsf-clear {
	display: inline-block;
	margin: 0 0 24px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--udsf-purple);
	color: var(--udsf-purple) !important;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-decoration: none !important;
}

.udsf .udsf-clear:hover {
	opacity: .7;
}

/* Mobile drawer: a bit more room for touch */
.off-canvas .udsf {
	padding: 10px 4px 40px;
}

.off-canvas .udsf .udsf-option {
	margin-bottom: 14px;
	font-size: 15px;
}

/* ---------- AJAX loading state ---------- */
#content.udsf-loading .products,
#content.udsf-loading .woocommerce-pagination {
	opacity: .45;
	pointer-events: none;
	transition: opacity .2s ease;
}

.udsf.udsf-loading {
	pointer-events: none;
}

.udsf.udsf-loading::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 99999;
	background: linear-gradient(90deg, transparent, #9560b8, transparent);
	background-size: 50% 100%;
	animation: udsf-bar 1s linear infinite;
}

@keyframes udsf-bar {
	from { background-position: -50% 0; }
	to   { background-position: 150% 0; }
}

/* ---------- Mobile drawer "Show results" button ---------- */
.udsf .udsf-done {
	display: block;
	width: 100%;
	height: 46px;
	margin-top: 8px;
	border: 0;
	border-radius: 7px;
	background: #9560b8;
	color: #fff;
	font: 500 15px/1 "UD Montserrat", "Montserrat", sans-serif;
	cursor: pointer;
	position: sticky;
	bottom: 12px;
}

.udsf .udsf-done:hover {
	background: #7d4a9f;
}

#udsf-live.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.udsf.udsf-loading::before { animation: none; background: #9560b8; }
}
