/* SK Chained Fields for Elementor Form — combobox */

.sk-combo {
	position: relative;
	width: 100%;
}

/* select ตัวจริงยังอยู่ในฟอร์มเพื่อส่งค่า แต่ไม่ต้องแสดง */
.sk-combo .sk-combo__native {
	display: none !important;
}

.sk-combo__input {
	width: 100%;
}

.sk-combo.is-empty .sk-combo__input {
	cursor: not-allowed;
	opacity: 0.6;
}

.sk-combo__list {
	position: absolute;
	z-index: 999;
	top: calc(100% + 2px);
	left: 0;
	right: 0;
	max-height: 260px;
	margin: 0;
	padding: 4px 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 3px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	-webkit-overflow-scrolling: touch;
}

.sk-combo__item {
	margin: 0;
	padding: 8px 12px;
	font-size: inherit;
	line-height: 1.5;
	color: inherit;
	cursor: pointer;
}

.sk-combo__item:hover,
.sk-combo__item.is-active {
	background: rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
	.sk-combo__list {
		background: #1f1f1f;
		border-color: rgba(255, 255, 255, 0.18);
		color: #f1f1f1;
	}

	.sk-combo__item:hover,
	.sk-combo__item.is-active {
		background: rgba(255, 255, 255, 0.1);
	}
}
