.algf-widget {
	--algf-loader-color: #0f172a;
	--algf-loader-overlay-bg: rgba(255, 255, 255, 0.72);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.algf-widget--loading {
	opacity: 0.72;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.algf-group {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.algf-group__label {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
}

.algf-group__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.algf-group__dropdown {
	width: 100%;
}

.algf-select-wrap {
	position: relative;
	width: 100%;
}

.algf-select {
	-webkit-appearance: none;
	appearance: none;
	background: #ffffff;
	background-image: none;
	border: 1px solid #d5d9e2;
	border-radius: 14px;
	color: #1f2937;
	font: inherit;
	line-height: 1.4;
	max-width: 100%;
	min-height: 46px;
	padding: 0.7rem 2.9rem 0.7rem 0.95rem;
	width: 100%;
}

.algf-select::-ms-expand {
	display: none;
}

.algf-select:focus {
	border-color: #111827;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
	outline: none;
}

.algf-select-wrap--multiple .algf-select {
	padding-right: 0.95rem;
}

.algf-select[multiple] {
	border-radius: 16px;
	min-height: 150px;
	padding: 0.6rem;
}

.algf-select-icon {
	align-items: center;
	color: #64748b;
	display: flex;
	height: 1em;
	justify-content: center;
	pointer-events: none;
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1em;
	z-index: 1;
}

.algf-select-icon svg {
	display: block;
	fill: currentColor;
	height: 1em;
	width: 1em;
}

.algf-select-wrap--multiple .algf-select-icon {
	display: none;
}

.algf-option {
	appearance: none;
	background: #ffffff;
	border: 1px solid #d5d9e2;
	border-radius: 999px;
	color: #1f2937;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	margin: 0;
	padding: 0.65rem 1rem;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.algf-option:hover {
	border-color: #111827;
}

.algf-option[aria-pressed="true"] {
	background: #111827;
	border-color: #111827;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
	color: #ffffff;
}

.algf-empty {
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #64748b;
	padding: 1rem;
}

.algf-loop-widget--loading {
	position: relative;
}

.algf-loop-widget--loading > .elementor-widget-container {
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

.algf-loading-overlay {
	align-items: center;
	background: var(--algf-loader-overlay-bg, rgba(255, 255, 255, 0.72));
	display: flex;
	inset: 0;
	justify-content: center;
	position: absolute;
	z-index: 20;
}

.algf-loading-spinner {
	animation: algf-spin 0.8s linear infinite;
	border: 3px solid rgba(15, 23, 42, 0.14);
	border-radius: 999px;
	border-top-color: var(--algf-loader-color, #0f172a);
	display: block;
	height: 42px;
	width: 42px;
}

@keyframes algf-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 767px) {
	.algf-group__options {
		gap: 0.5rem;
	}

	.algf-option {
		padding: 0.55rem 0.85rem;
	}
}
