.custom-select-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	font-family: sans-serif;
}

.custom-select-wrapper.open {
	z-index: 1000000;
}

.custom-select-display {
	background-color: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 4px;
	padding: 10px 15px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: border-color 0.2s;
	font-weight:bold;
}

.custom-select-display:hover {
	border-color: #888888;
}

.custom-select-display::after {
	content: '';
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #333;
	transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-display::after {
	transform: rotate(180deg);
}

.custom-select-options {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #ffffff;
	border: 1px solid #cccccc;
	border-top: none;
	border-radius: 0 0 4px 4px;
	overflow-y: auto;
	z-index: 9999;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom-option {
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.2s;
	background-color: #ffffff;
}

.custom-option:hover {
	background-color: #f0f0f0;
}

.custom-option.selected {
	background-color: #e0eaf6;
}

/* Stile per le opzioni custom disabilitate */
.custom-option.disabled {
    color: #aaaaaa; /* Testo grigio chiaro */
    background-color: #f5f5f5; /* Sfondo leggermente diverso */
    cursor: not-allowed; /* Cursore "non permesso" */
}

/* Impedisce il cambio di colore al passaggio del mouse su un'opzione disabilitata */
.custom-option.disabled:hover {
    background-color: #f5f5f5;
}