.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;
	border-radius: 0;
	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;
	left: -9999em;
}

.minicolors-swatch {
	position: relative;
	width: 20px;
	height: 20px;
	background: url(jquery.minicolors.png) -80px 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 */
.minicolors-panel {
	position: absolute;
	top: 21px;
	left: 0;
	width: 277px;
	height: 243px;
	background: white;
	display: none;
}

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

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

.minicolors-position-left.minicolors-with-opacity .minicolors-panel {
	left: -208px;
}

.minicolors-with-opacity .minicolors-panel {
	width: 388px;
}

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

.minicolors .minicolors-grid-inner {
	position: absolute;
	top: 0;
	left: 0;
	width: 240px;
	height: 240px;
	background: none;
}

.minicolors-slider-saturation .minicolors-grid {
	background-position: -672px 0;
}

.minicolors-slider-saturation .minicolors-grid-inner {
	background: url(jquery.minicolors.png) -216px 0;
}

.minicolors-slider-brightness .minicolors-grid {
	background-position: -912px 0;
}

.minicolors-slider-brightness .minicolors-grid-inner {
	background: black;
}

.minicolors-slider-wheel .minicolors-grid {
	background-position: -1152px 0;
}

.minicolors-slider,
.minicolors-opacity-slider {
	position: absolute;
	top: 1px;
	left: 250px;
	width: 32px;
	height: 240px;
	background: white url(jquery.minicolors.png) 0 0;
	cursor: crosshair;
}

.minicolors-slider-saturation .minicolors-slider {
	background-position: -120px 0;
}

.minicolors-slider-brightness .minicolors-slider {
	background-position: -40px 0;
}

.minicolors-slider-wheel .minicolors-slider {
	background-position: -40px 0;
}

.minicolors-opacity-slider {
	left: 173px;
	background-position: -80px 0;
	display: none;
}

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

/* Pickers */
.minicolors-grid .minicolors-picker {
	position: absolute;
	top: 112px;
	left: 112px;
	width: 8px;
	height: 8px;
	border: solid 1px black;
	border-radius: 10px;
	margin-top: -6px;
	margin-left: -6px;
	background: none;
}

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

.minicolors-picker {
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background: white;
	border: solid 2px black;
	margin-top: -2px;
}

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

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