/* Shared accessible select replacement for AnticiClic public interfaces. */

.ach-select-ui {
	--ach-select-height: 44px;
	--ach-select-font-size: 16px;
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.ach-select-ui.is-open {
	z-index: 10020;
}

.ach-select-ui > select.ach-select-ui__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

button.ach-select-ui__button {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center !important;
	gap: 14px !important;
	box-sizing: border-box !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: var(--ach-select-height) !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 14px !important;
	border: 1px solid #bfd8d5 !important;
	border-radius: 11px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #073f3d !important;
	font: inherit !important;
	font-size: var(--ach-select-font-size) !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	white-space: normal !important;
	cursor: pointer !important;
	transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease !important;
}

button.ach-select-ui__button::before {
	display: none !important;
}

button.ach-select-ui__button::after {
	content: "" !important;
	display: block !important;
	box-sizing: border-box;
	width: 9px;
	height: 9px;
	margin: -4px 2px 0 0;
	border: 0 !important;
	border-right: 2px solid #087b75 !important;
	border-bottom: 2px solid #087b75 !important;
	background: transparent !important;
	transform: rotate(45deg);
	transition: transform .16s ease, margin .16s ease;
}

.ach-select-ui:not(.is-disabled) > button.ach-select-ui__button:hover {
	border-color: #79bdb7 !important;
	background: #fbfefd !important;
}

.ach-select-ui > button.ach-select-ui__button:focus,
.ach-select-ui > button.ach-select-ui__button:focus-visible,
.ach-select-ui.is-open > button.ach-select-ui__button {
	border-color: #0d8f88 !important;
	outline: 0 !important;
	box-shadow: 0 0 0 3px rgba(13, 143, 136, .15) !important;
}

.ach-select-ui.is-open:not(.is-drop-up) > button.ach-select-ui__button {
	border-radius: 11px 11px 0 0 !important;
}

.ach-select-ui.is-open.is-drop-up > button.ach-select-ui__button {
	border-radius: 0 0 11px 11px !important;
}

.ach-select-ui.is-open > button.ach-select-ui__button::after {
	margin-top: 4px;
	transform: rotate(225deg);
}

.ach-select-ui.is-disabled > button.ach-select-ui__button,
button.ach-select-ui__button:disabled {
	border-color: #d7e3e1 !important;
	background: #f1f5f4 !important;
	color: #78908e !important;
	cursor: not-allowed !important;
	opacity: 1 !important;
}

.ach-select-ui.is-disabled > button.ach-select-ui__button::after {
	border-color: #8ca09e !important;
}

.ach-select-ui__value {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ach-select-ui__list {
	position: absolute !important;
	z-index: 10021 !important;
	top: calc(100% - 1px);
	right: 0;
	left: 0;
	box-sizing: border-box !important;
	width: 100% !important;
	max-height: min(300px, 46vh);
	margin: 0 !important;
	padding: 5px !important;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid #9dcac6 !important;
	border-top: 0 !important;
	border-radius: 0 0 11px 11px !important;
	background: #fff !important;
	box-shadow: 0 16px 36px rgba(7, 63, 61, .16) !important;
	list-style: none !important;
	scrollbar-width: thin;
}

.ach-select-ui.is-drop-up > .ach-select-ui__list {
	top: auto;
	bottom: calc(100% - 1px);
	border-top: 1px solid #9dcac6 !important;
	border-bottom: 0 !important;
	border-radius: 11px 11px 0 0 !important;
	box-shadow: 0 -16px 36px rgba(7, 63, 61, .16) !important;
}

.ach-select-ui__list[hidden] {
	display: none !important;
}

.ach-select-ui__option {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 18px;
	align-items: center;
	gap: 10px;
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 9px 11px !important;
	border: 0 !important;
	border-radius: 7px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #143f3d !important;
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	list-style: none !important;
	text-align: left !important;
	white-space: normal !important;
	cursor: pointer;
}

.ach-select-ui__option::before,
.ach-select-ui__option::after {
	display: none !important;
}

.ach-select-ui__option + .ach-select-ui__option {
	border-top: 1px solid #edf3f2 !important;
}

.ach-select-ui__option:hover,
.ach-select-ui__option:focus,
.ach-select-ui__option:focus-visible {
	background: #edf8f6 !important;
	color: #075b57 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

.ach-select-ui__option[aria-selected="true"] {
	background: #dff2ef !important;
	color: #075b57 !important;
	font-weight: 750 !important;
}

.ach-select-ui__option[aria-selected="true"]::after {
	content: "✓" !important;
	display: block !important;
	grid-column: 2;
	color: #0d8f88;
	font-size: 15px;
	font-weight: 850;
	line-height: 1;
	text-align: center;
}

.ach-select-ui__option[aria-disabled="true"] {
	background: transparent !important;
	color: #8a9b99 !important;
	cursor: not-allowed;
}

.ach-select-ui__option[aria-disabled="true"]::after {
	display: none !important;
}

.ach-select-ui__button[aria-invalid="true"] {
	border-color: #c96e60 !important;
	box-shadow: 0 0 0 3px rgba(201, 110, 96, .13) !important;
}

.ach-auth-form .ach-select-ui {
	--ach-select-height: 52px;
}

.ach-service-access__member-form .ach-select-ui,
.ach-protocol-create .ach-select-ui,
.ach-protocol-workspace .ach-select-ui {
	--ach-select-height: 42px;
	--ach-select-font-size: 14px;
}

.ach-service-access__add-member .ach-select-ui {
	--ach-select-height: 44px;
}

.ach-personal-action-card .ach-select-ui {
	--ach-select-height: 45px;
	--ach-select-font-size: 14px;
}

.ach-review-request__decision .ach-select-ui {
	--ach-select-height: 40px;
	--ach-select-font-size: 14px;
}

.anticiclic-app__context > .ach-select-ui {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.anticiclic-app__context .ach-select-ui__button {
	background: #f8faf9 !important;
	font-weight: 680 !important;
}

@media (max-width: 680px) {
	.anticiclic-app__context > .ach-select-ui {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	button.ach-select-ui__button,
	button.ach-select-ui__button::after {
		transition: none !important;
	}
}
