/* Color dropdown for pa_couleurs, aligned on the Hello Elementor select reset */

.bd-cs {
	position: relative;
	width: 100%;
}

.bd-cs__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;
	border: 0 !important;
}

.bd-cs .bd-cs__button {
	display: flex;
	align-items: center;
	gap: .6em;
	width: 100%;
	margin: 0;
	padding: .5rem 2.5rem .5rem 1rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	color: inherit;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1rem center;
	border: 1px solid #666;
	border-radius: 3px;
	cursor: pointer;
	transition: border-color .3s;
}

.bd-cs .bd-cs__button:hover,
.bd-cs .bd-cs__button:focus {
	color: inherit;
	background-color: #fff;
	border-color: #333;
}

.bd-cs .bd-cs__button:focus-visible,
.bd-cs__list:focus-visible {
	outline: 2px solid #333;
	outline-offset: 2px;
}

.bd-cs__text {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.bd-cs__list {
	position: absolute;
	z-index: 100;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 18rem;
	margin: 0;
	padding: .25rem 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #666;
	border-radius: 3px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.bd-cs__list[hidden] {
	display: none;
}

.bd-cs__option {
	display: flex;
	align-items: center;
	gap: .6em;
	margin: 0;
	padding: .45rem 1rem;
	line-height: 1.4;
	cursor: pointer;
}

.bd-cs__option.is-active {
	background: #f2f2f2;
}

.bd-cs__option[aria-selected="true"] {
	font-weight: 600;
}

.bd-cs__option--placeholder {
	color: #767676;
}

.bd-cs__option[aria-disabled="true"] {
	color: #999;
	cursor: not-allowed;
}

.bd-cs__option[aria-disabled="true"] .bd-cs__dot {
	opacity: .35;
}

.bd-cs__dot {
	flex: none;
	width: 1.1em;
	height: 1.1em;
	border-radius: 50%;
	/* Inner ring keeps light colors (white, pale pink) visible on white */
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.bd-cs__dot--empty {
	background: repeating-linear-gradient(45deg, #ddd 0 2px, #fff 2px 4px);
}
