/* Selecteur (bouton) */

.palette-selecteur {
	width: 14em;
	box-sizing: content-box;
	text-align: left;
}
.palette-couleur {
	display: inline-block;
	width: 4em;
	height: 1em;
	border: 1px solid black;
	vertical-align: middle;
}
.palette-texte {
	display: inline-block;
	padding: 0 1em;
}

/* Selecteur (popup) */

.palette-popup {
	width: 14em;
	height: 11.8em;
	box-sizing: content-box;
	padding: .4em 1em;
	z-index: 105;
}

.palette-popup-liste {
	display: block;
	overflow: auto;
	position: absolute;
	left: 0.7em;
	width: 14.8em;
	top: 1em;
	height: 8.5em;
}

.palette-popup-switch {
	position: absolute;
	left: 1em;
	width: 14em;
	top: 10em;
}

.palette-popup-liste-couleur {
	height: 1em;
	width: 1.5em;
	display: inline-block;
	border: 1px solid #000;
	margin: .1em .1em;
	cursor: pointer;
}

.palette-popup-plan {
	display: inline-block;
	position: absolute;
	top: 1em;
	left: 1em;
	width: 11em;
	height: 11em;
	background-color: hsl(180,100%,25%);
	background-image: 
		linear-gradient( 180deg,
			hsla(0,0%,0%,0),
			hsla(0,0%,0%,1)
		) , linear-gradient( 270deg,
			hsla(0,0%,100%,0),
			hsla(0,0%,100%,1)
		);
	cursor: crosshair;
	/*overflow: hidden;*/
}

.palette-popup-barre {
	display: inline-block;
	position: absolute;
	top: 1em;
	left: 13em;
	width: 2em;
	height: 11em;
	background: linear-gradient( 180deg,
			hsl(0, 100%, 50% ), 
			hsl(45, 100%,50%) ,
			hsl(90, 100%,50%) ,
			hsl(135, 100%,50%) ,
			hsl(180, 100%,50%) ,
			hsl(225, 100%,50%) ,
			hsl(270, 100%,50%) ,
			hsl(315, 100%,50%) ,
			hsl(360, 100%, 50% )
	);
	cursor: crosshair;
	/*overflow: hidden;*/
}

.palette-popup-plan .palette-curseur {
	display: block;
	position: absolute;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	border: 1px solid black;
	box-shadow: inset 0px 0px 2px 2px white;
	margin-top: -9px;
	margin-left: -9px;
}

.palette-popup-barre .palette-curseur {
	position: absolute;
	border-color: transparent black;
	border-width: 8px;
	border-style: solid; 
	margin-top: -8px;
	left: 0px;
	width: 100%;
	box-sizing: border-box;
}
