.minicolors {
	position: relative;
	display: inline-block;
	z-index: 1;
}

.minicolors-focus {
	z-index: 2;
}

.minicolors INPUT {
	margin-right: 3px;
	border: solid 1px #CCC;
	font: 14px sans-serif;
	width: 65px;
	height: 16px;
	vertical-align: middle;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, .04);
	outline: none;
	padding: 2px;
	margin-right: -1px;
}

.minicolors-swatch-left INPUT {
	margin-left: -1px;
	margin-right: auto;
}

.minicolors-focus INPUT,
.minicolors-focus .minicolors-swatch {
	border-color: #999;
}

.minicolors-hidden {
	position: absolute;
	top: -9999em;
	left: -9999em;
}

.minicolors-swatch {
	position: relative;
	width: 20px;
	height: 20px;
	background: url(jquery.minicolors.png) -360px 0;
	border: solid 1px #CCC;
	display: inline-block;
	vertical-align: middle;
}

.minicolors-swatch SPAN {
	position: absolute;
	width: 100%;
	height: 100%;
	background: none;
	box-shadow: inset 0 9px 0 rgba(255, 255, 255, .1);
	display: inline-block;
}

/* Panel (standard) */
.minicolors-panel {
	position: absolute;
	top: 26px;
	left: 0;
	width: 173px;
	height: 152px;
	background: white;
	border: solid 1px #CCC;
	box-shadow: 0 0 20px rgba(0, 0, 0, .1);
	display: none;
}

.minicolors-position-top .minicolors-panel {
	top: -156px;
}

.minicolors-position-left .minicolors-panel {
	left: -83px;
}

.minicolors-color {
	position: absolute;
	top: 1px;
	left: 1px;
	width: 150px;
	height: 150px;
	background: url(jquery.minicolors.png) -60px 0;
	cursor: crosshair;
}

.minicolors-hue {
	position: absolute;
	top: 1px;
	left: 152px;
	width: 20px;
	height: 150px;
	background: white url(jquery.minicolors.png) 0 0;
	cursor: crosshair;
}

/* Panel (color wheel) */
.minicolors-wheel .minicolors-color {
	background-position: -210px 0;
}

.minicolors-brightness {
	position: absolute;
	top: 1px;
	left: 152px;
	width: 20px;
	height: 150px;
	background: white url(jquery.minicolors.png) -20px 0;
	cursor: crosshair;
}

/* with opacity */
.minicolors-with-opacity .minicolors-panel {
	width: 194px;
}

.minicolors-opacity {
	position: absolute;
	top: 1px;
	left: 173px;
	width: 20px;
	height: 150px;
	background: white url(jquery.minicolors.png) -40px 0;
	display: none;
	cursor: crosshair;
}

.minicolors-with-opacity .minicolors-opacity {
	display: block;
}

/* Pickers */
.minicolors-color-picker {
	position: absolute;
	top: 70px;
	left: 70px;
	width: 10px;
	height: 10px;
	border: solid 1px black;
	border-radius: 10px;
	margin-top: -6px;
	margin-left: -6px;
}

.minicolors-color-picker SPAN {
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 6px;
	border: solid 2px white;
}

.minicolors-hue-picker,
.minicolors-opacity-picker,
.minicolors-brightness-picker {
	position: absolute;
	top: 0;
	left: 0;
	width: 18px;
	height: 2px;
	background: white;
	border: solid 1px black;
	margin-top: -2px;
}

/* Inline */
.minicolors-inline INPUT,
.minicolors-inline .minicolors-swatch {
	display: none;
}

.minicolors-inline .minicolors-panel {
	position: relative;
	top: auto;
	left: auto;
	display: inline-block;
}