/*
/* Minicolors
*/

.minicolors-opacity-wrapper input {
    background: #2b2d3c;
    border: none;
    border-radius: 3px;
    box-sizing: border-box;
    color: var(--cp-main-color) !important;
    font: 500 14px/14px 'Roboto';
    height: 39px;
    margin-left: 20px;
    margin: 0;
    padding: 5px;
    position: relative;
    vertical-align: middle;
    width: 55px;
}

.minicolors.minicolors-theme-bootstrap input.minicolors-input[type="text"][data-type="color"],
.minicolors.minicolors-theme-bootstrap .minicolors-input {
    background:  #2b2d3c;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    color: #fff;
    font: 500 14px/14px 'Roboto';
    height: 39px;
    margin-right: 3px;
    outline: none;
    padding-left: 45px;
    vertical-align: sub;
    width: 110px;
    min-width: 110px;
}

.minicolors.minicolors-theme-bootstrap input.minicolors-input[type="text"][data-type="color"],
.modal:not(.ba-modal-picker) .minicolors.minicolors-theme-bootstrap .minicolors-input {
    background: var(--input-background);
    padding-right: 5px;
}

.minicolors .minicolors-swatch {
    border-radius: 3px !important;
    border: none;
    height: 33px;
    left: 3px!important;
    top: 3px!important;
    width: 33px !important;
}

.minicolors-swatch span {
    box-shadow: none !important;
}

.minicolors-swatch-color {
    width: 100%!important;
}

#color-picker-cell .minicolors-panel {
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: block !important;
    height: 275px;
    left: -20px;
    padding: 0;
    top: -230px;
    width: 255px;
    z-index: -1;
}

#color-picker-cell .minicolors-theme-bootstrap .minicolors-slider,
#color-picker-cell .minicolors-theme-bootstrap .minicolors-opacity-slider {
    background-size: auto 196px;
    height: 196px;
    margin-left: 64px;
    top: 20px;
}

#color-picker-cell .minicolors-opacity-slider.minicolors-sprite {
    background-position-x: -53px;
    margin-left: 63px !important;
}

#color-picker-cell .minicolors-theme-bootstrap .minicolors-grid {
    background-position: -158px 0;
    background-size: auto 197px;
    height: 196px;
    left: 20px;
    top: 20px;
    width: 196px;
}

#color-picker-cell .minicolors {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 65%;
}

#color-picker-cell .minicolors:before {
    border-radius: 8px;
    border: 3px solid #2b2d3c;
    box-sizing: border-box;
    content: "";
    height: 39px;
    left: 1px;
    position: absolute;
    top: 0px;
    width: 39px;
    z-index: 100;
}

#color-picker-cell .variables-color-picker.minicolors-input {
    background: #2b2d3c !important;
    border: none;
    color: #fff !important;
    margin: 0;
    margin-bottom: 6px;
    padding-left: 50px;
    width: 90% !important;
}

#color-picker-cell .minicolors .minicolors-swatch {
    left: 4px!important;
    top: 3px !important;
    overflow: visible;
}

#color-picker-cell .minicolors .minicolors-swatch span {
    border-radius: 3px;
    box-sizing: content-box;
    margin: -1px;
    padding: 1px;
}

#color-picker-cell .minicolors-opacity-wrapper {
    bottom: 20px;
    height: 45px;
    position: absolute;
    right: 20px;
    width: 65px;
    z-index: 15;
}

#color-picker-cell .minicolors-opacity-wrapper input {
    background: #2b2d3c;
    color: var(--cp-main-color);
    width: 65px !important;
}

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

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

.minicolors.minicolors-theme-default .minicolors-input {
    margin: 0px;
    margin-right: 3px;
    border: solid 1px #CCC;
    font: 14px sans-serif;
    width: 65px;
    height: 16px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, .04);
    -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, .04);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .04);
    padding: 2px;
    margin-right: -1px;
}

.minicolors-theme-default.minicolors .minicolors-input {
    vertical-align: middle;
    outline: none;
}

.minicolors-theme-default.minicolors-swatch-left .minicolors-input {
    margin-left: -1px;
    margin-right: auto;
}

.minicolors-theme-default.minicolors-focus .minicolors-input,
.minicolors-theme-default.minicolors-focus .minicolors-swatch {
    border-color: #999;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.minicolors-slider,
.minicolors-opacity-slider {
    position: absolute;
    top: 1px;
    left: 152px;
    width: 20px;
    height: 150px;
    background: #ffffff url(../images/jquery.minicolors.png) 0 0;
    cursor: crosshair;
}

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

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

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

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

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

/* Pickers */
.minicolors-grid .minicolors-picker {
    position: absolute;
    top: 70px;
    left: 70px;
    width: 10px;
    height: 10px;
    border: solid 1px black;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    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;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    border: solid 2px white;
}

.minicolors-picker {
    position: absolute;
    box-sizing: content-box;
    top: 0;
    left: 0;
    width: 18px;
    height: 2px;
    background: white;
    border: solid 1px black;
    margin-top: -2px;
}

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

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

/*
 * Bootstrap Theme (theme: 'bootstrap')
 *
 */

/* Input styles */
.minicolors-theme-bootstrap .minicolors-input {
    padding: 4px 6px;
    padding-left: 30px;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 14px;
    height: 19px;
    width: 65px;
    margin: 0px;
}

/* Input width depending on format */
.minicolors-theme-bootstrap .hex {
    width: 65px;
}
.minicolors-theme-bootstrap .keywords {
    width: 100px;
}
.minicolors-theme-bootstrap .rgb {
    width: 160px;
}
.minicolors-theme-bootstrap .rgba {
    width: 220px;
}

/* When the input is disabled */
.minicolors-theme-bootstrap .minicolors-input[disabled] {
    background-color: #eee;
}

/* Swatch styles */
.minicolors-theme-bootstrap .minicolors-swatch {
    cursor: pointer;
    position: absolute;
    left: 4px;
    top: 4px;
    z-index: 12;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
}

/* Handle swatch position (left = default / right) */
.minicolors-theme-bootstrap.minicolors-swatch-position-right .minicolors-input {
    padding-left: 6px;
    padding-right: 30px;
}

.minicolors-theme-bootstrap.minicolors-swatch-position-right .minicolors-swatch {
    left: auto;
    right: 4px;
}

/* Panel styles */
.minicolors-theme-bootstrap .minicolors-panel {
    top: -68px;
    left: 100%;
    z-index: 13;
    padding: 5px;
    border: 1px solid #dddddd;
    *border-right-width: 2px;
    *border-bottom-width: 2px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
}

.minicolors-theme-bootstrap .minicolors-slider,
.minicolors-theme-bootstrap .minicolors-opacity-slider {
    top: 6px;
    margin-left: 5px;
}

.minicolors-theme-bootstrap .minicolors-grid {
    top: 6px;
    left: 6px;
}

.minicolors-theme-bootstrap.minicolors-position-left .minicolors-panel {
    right: 100%;
    left: auto;
}
.minicolors-theme-bootstrap.minicolors-position-top .minicolors-panel {
    top: -164px;
    left: -6px;
}
.minicolors-theme-bootstrap.minicolors-position-bottom .minicolors-panel {
    left: -6px;
    top: 30px;
}