/* Catalog ordering: custom dropdown (shop / category headers). */

.unistore-orderby-form {
	position: relative;
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.unistore-orderby-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	clip-path: inset(50%) !important;
}

.unistore-orderby-dropdown {
	position: relative;
	text-align: right;
}

.unistore-orderby-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: inherit;
}

.unistore-orderby-trigger-text {
	white-space: nowrap;
}

.unistore-orderby-prefix {
	font-weight: 500;
}

.unistore-orderby-current {
	font-weight: 500;
}

.unistore-orderby-chevron {
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.15em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-0.1em);
	opacity: 0.75;
	flex-shrink: 0;
}

.unistore-orderby-dropdown.is-open .unistore-orderby-chevron {
	transform: rotate(225deg) translateY(-0.05em);
}

.unistore-orderby-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 240px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
	z-index: 40;
	text-align: center;
}

.unistore-orderby-panel li {
	margin: 0;
	padding: 0;
}

.unistore-orderby-option {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.65rem 1.25rem;
	background: transparent;
	border: 0;
	font: inherit;
	font-weight: 400;
	color: #111;
	cursor: pointer;
	text-align: center;
	font-size: 14px;;
}

.unistore-orderby-option:hover,
.unistore-orderby-option:focus-visible {
	background: rgba(0, 0, 0, 0.06);
	outline: none;
}

.unistore-orderby-option.is-selected {
	background: rgba(0, 0, 0, 0.06);
	font-weight: 500;
}


.unistore-orderby-panel li:last-child .unistore-orderby-option {
	border-radius: 0 0 14px 14px;
}

.unistore-orderby-panel li:only-child .unistore-orderby-option.is-selected {
	border-radius: 14px;
}
