.etdf-dropdown {
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
}

.etdf-direction-vertical {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.etdf-direction-horizontal {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.etdf-align-start {
	align-items: flex-start;
}

.etdf-align-center {
	align-items: center;
}

.etdf-align-end {
	align-items: flex-end;
}

.etdf-align-stretch {
	align-items: stretch;
}

.etdf-direction-horizontal.etdf-align-start {
	justify-content: flex-start;
}

.etdf-direction-horizontal.etdf-align-center {
	justify-content: center;
}

.etdf-direction-horizontal.etdf-align-end {
	justify-content: flex-end;
}

.etdf-direction-horizontal.etdf-align-stretch {
	justify-content: flex-start;
}

.etdf-label {
	flex: 0 0 auto;
}

.etdf-direction-horizontal .etdf-select {
	flex: 1 1 auto;
	min-width: 0;
}

.etdf-select {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 2.25rem 0.625rem 0.75rem;
	background: #fff;
	color: inherit;
	border: 1px solid #767676;
	border-radius: 0;
	font: inherit;
	line-height: 1.4;
	cursor: pointer;
}

.etdf-select[multiple] {
	min-height: 8rem;
	padding-right: 0.75rem;
	cursor: pointer;
}

.etdf-select:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.etdf-is-loading::after {
	content: '';
	position: absolute;
	right: 0.875rem;
	bottom: 0.875rem;
	width: 0.875rem;
	height: 0.875rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: etdf-spin 0.75s linear infinite;
}

.etdf-is-loading .etdf-select {
	cursor: progress;
	opacity: 0.7;
}

.elementor-widget-loop-grid.etdf-grid-is-loading .elementor-widget-container {
	animation: etdf-grid-pulse 1.8s ease-in-out infinite;
	pointer-events: none;
}

.etdf-reset {
	box-sizing: border-box;
	flex: 0 0 auto;
	align-self: flex-end;
	min-height: 2rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid currentColor;
	border-radius: 0.2rem;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.875em;
	line-height: 1.2;
	cursor: pointer;
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.etdf-direction-horizontal .etdf-reset {
	align-self: auto;
}

.etdf-reset:hover:not(:disabled),
.etdf-reset:focus-visible {
	background: currentColor;
	color: #fff;
}

.etdf-reset:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.etdf-reset:disabled {
	cursor: not-allowed;
	opacity: 0.45;
	pointer-events: none;
	color: var(--etdf-reset-normal-text-color, inherit) !important;
	background-color: var(--etdf-reset-normal-background-color, transparent) !important;
}

.etdf-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.etdf-editor-notice,
.etdf-no-terms {
	padding: 0.75rem 1rem;
	background: #f4f4f4;
	border-left: 3px solid #555;
}

.etdf-client-hidden {
	display: none !important;
}

.etdf-empty-results {
	margin: 1rem 0;
}

@keyframes etdf-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes etdf-grid-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

@media (prefers-reduced-motion: reduce) {
	.etdf-is-loading::after,
	.elementor-widget-loop-grid.etdf-grid-is-loading .elementor-widget-container {
		animation: none;
	}
}

@media (max-width: 767px) {
	.etdf-direction-horizontal {
		align-items: stretch;
		flex-direction: column;
		gap: 0.5rem;
	}
}
