.wtype-native-select {
	position: absolute;
	left: -9999px;
	top: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.wtype-picker-host,
.predmet-picker-host {
	position: relative;
}

.wtype-picker-trigger {
	position: relative;
	width: 100%;
	min-height: 60px;
	border-radius: 14px;
	border: 1px solid var(--order-border, rgba(45, 110, 132, 0.22));
	background: #ffffff;
	padding: 18px 38px 10px 14px;
	text-align: left;
	font-size: 0.96rem;
	color: var(--order-ink, #274251);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wtype-picker-trigger .wtype-picker-trigger-text {
	display: block;
	margin-top: 7px;
	line-height: 1.25;
	color: #314d5c;
}

.wtype-picker-trigger.has-value .wtype-picker-trigger-text {
	margin-top: 8px;
}

.wtype-picker-trigger::after {
	content: '';
	position: absolute;
	right: 15px;
	top: 26px;
	width: 14px;
	height: 9px;
	background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='11' viewBox='0 0 17 11' fill='none'%3E%3Cpath d='M1.5 1.5L8.5 9L15.5 1.5' stroke='%230f6f8f' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
	transition: transform 0.18s ease;
}

.wtype-picker-host.is-open .wtype-picker-trigger,
.predmet-picker-host.is-open .wtype-picker-trigger {
	border-color: rgba(15, 111, 143, 0.62);
	box-shadow: 0 0 0 4px rgba(15, 111, 143, 0.11), 0 14px 26px rgba(8, 31, 44, 0.11);
	transform: translateY(-1px);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.wtype-picker-host.is-open .wtype-picker-trigger::after,
.predmet-picker-host.is-open .wtype-picker-trigger::after {
	transform: rotate(180deg);
}

.wtype-picker-panel {
	position: fixed;
	z-index: 2147483640 !important;
	border: 1px solid rgba(35, 88, 106, 0.28);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 48px rgba(9, 34, 46, 0.28);
	overflow: hidden;
	animation: wtypePanelIn 0.24s ease;
}

.wtype-picker-panel.is-attached {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.wtype-picker-head {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(15, 111, 143, 0.18);
	background: linear-gradient(180deg, #f8fcff 0%, #eff7fb 100%);
}

.wtype-picker-search {
	width: 100%;
	min-height: 44px;
	height: auto;
	border: 1px solid rgba(45, 110, 132, 0.26);
	border-radius: 12px;
	padding: 10px 14px 8px;
	font-size: 0.94rem;
	line-height: 1.22;
}

.wtype-picker-search::placeholder {
	color: rgba(66, 100, 116, 0.52);
}

.wtype-picker-search:focus {
	outline: none;
	border-color: rgba(15, 111, 143, 0.56);
	box-shadow: 0 0 0 3px rgba(15, 111, 143, 0.1);
}

.wtype-picker-scroll {
	padding: 10px 12px;
	max-height: calc(69vh - 76px);
	overflow-y: auto;
	overflow-x: hidden;
	display: block;
	position: relative;
}

.wtype-picker-group {
	display: block;
	width: auto;
	margin: 0;
	padding: 4px 8px 6px;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	position: absolute;
	left: 0;
	top: 0;
}

.wtype-picker-masonry-sizer {
	display: block;
	width: 100%;
	height: 0;
}

.wtype-picker-category {
	margin-bottom: 5px;
	font-size: 0.69rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(55, 86, 100, 0.62);
}

.wtype-picker-items {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.wtype-picker-item {
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 8px;
	background: #f5fafc;
	padding: 6px 9px;
	text-align: left;
	font-size: 0.86rem;
	line-height: 1.22;
	color: #1f3d4b;
	cursor: pointer;
	transition: background 0.16s ease, transform 0.16s ease;
	white-space: normal;
	overflow-wrap: anywhere;
}

.wtype-picker-item:hover {
	background: #e6f4fb;
	transform: translateX(2px);
}

.wtype-picker-item mark {
	background: #ffe7a3;
	color: inherit;
	padding: 0 1px;
	border-radius: 3px;
}

#miniorder_main .wtype-picker-trigger {
	min-height: 56px;
	background: #ffffff;
	border-color: rgba(45, 110, 132, 0.22);
}

#miniorder_main .wtype-picker-host .wtype-picker-trigger,
#miniorder_main .predmet-picker-host .wtype-picker-trigger {
	padding-top: 26px;
}

#miniorder_main .wtype-picker-trigger .wtype-picker-trigger-text {
	display: block;
	margin-top: 9px;
	color: rgba(57, 85, 98, 0.40);
	font-size: 0.88rem;
}

#miniorder_main .wtype-picker-trigger.has-value .wtype-picker-trigger-text {
	margin-top: 2px;
	color: #274251;
	font-size: 0.92rem;
}

@keyframes wtypePanelIn {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.99);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
