.fcolorpicker-curbox{
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.fcolorpicker{
    width: 264px;
    background: #fff;
    border:1px solid #ccc;
    position: fixed;
    top: 100px;
    padding: 6px 10px;
    box-sizing: border-box;
    z-index: 999999;
    /*display: none;*/
    user-select: none;
}
.fcolorpicker.canmove{
    cursor: move;
}
.fcolorpicker>*{
    cursor: auto;
}
.fcolorpicker .fcolor-list{
    display: flex;
    flex-flow: row wrap;
    align-content: flex-start;
    border-bottom: 1px solid #ddd;
    margin-left: 2px;
    padding: 4px 0;
    padding-bottom: 0;
}
.fcolorpicker .color-item{
    flex:0 0 10%;
    cursor: pointer;
    width:10%;
    height:18px;
    background:rgba(239,83,79,1);
    position: relative;
    transition: transform 0.3s; 
    -webkit-transition: transform 0.3s;}
.fcolorpicker .color-item:hover{ 
    transform: scale(1.2); 
    -webkit-transform: scale(1.2);
    z-index: 2;
}
.fcolorpicker .color-item span{
    position: absolute;
    display: block;
    pointer-events: none;
    width: 100%;
    height: 100%;
}
.fcolorpicker .color-item:before{
    content:'';
    display: block;
    background:url(opacity.png);
    -webkit-background-size: contain;
    background-size: 8px;
    position: absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
}
.fcolorpicker .color-latest .color-item{
    width:26px;
    height:18px;
    background:rgba(255,255,255,1);
    border-radius:2px;
    /*border:1px solid rgba(224,224,224,1);*/
    flex:0 0 26px;
    margin-right: 4px;
    margin-bottom: 4px;
    transition:none;
    -webkit-transition:none;
}
.fcolorpicker .color-latest .color-item:hover{
    transform: none;
    -webkit-transform: none;
}
.fcolorpicker .color-btns{
    /*display: flex;*/
    /*justify-content: space-between;*/
    padding-top: 10px;
    /*align-items: center;*/
}
.fcolorpicker .color-btns .color-preview{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom:6px;
}
.fcolorpicker .color-palette{
    display: flex;
    height: 131px;
    /*padding: 8px;*/
    margin-top:12px;
}
.fcolorpicker .color-palette .lightness{
    flex:0 0 212px;
    height: 129px;
    margin-right: 8px;
    /*border:1px solid #ccc;*/
    position: relative;
    overflow: visible;
}
.fcolorpicker .color-palette .lightness canvas{
    width:100%;
    height: 100%;
    cursor: pointer;
}
.fcolorpicker .color-palette .hue{
    flex:0 0 6px;
    margin-right: 8px;
    /*border:1px solid #ccc;*/
    position: relative;
}
.fcolorpicker .color-palette .hue canvas,.color-palette .opacity canvas{
    height: 100%;
    width: 100%;
    cursor: pointer;
}
.fcolorpicker .color-palette .opacity{
    flex:0 0 6px;
    /*border:1px solid #ccc;*/
    position: relative;
}
.fcolorpicker .color-palette .opacity canvas{
    background:url(opacity.png);
    -webkit-background-size: contain;
    background-size: contain;
}
.fcolorpicker .color-palette .lightbar{
    position: absolute;
    border-radius: 50%;
    left: 0px;
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 1px inset;
    pointer-events: none;
    width: 12px; 
    height: 12px;  
    transform: translate(-6px, -6px);
    background: none;
    /* border: 1px solid #e0e0e0; */
    box-sizing: border-box;
}
.fcolorpicker .color-palette .huebar,.color-palette .opacitybar{
    position: absolute;
    border-radius: 50%;
    left: -4px;
    box-shadow: 0 2px 7px -1px rgb(81 81 78);
    pointer-events: none;
    margin-top: -7px;
    width: 14px;
    height: 14px;
    background: #fff;
    box-sizing: border-box;
    z-index:9;
}
.fcolorpicker .current-colorBox{
    border-radius: 2px;
    flex: 0 0 26px;
    height: 26px;
    position: relative;
    background: url(opacity.png);
    background-size: 10px;
    /*border: 1px solid #f3f3f3;*/
}
.fcolorpicker .current-color{ position: absolute; left: 0; top: 0; right: 0; bottom: 0;}
.current-color-value{
    border: 1px solid #ccc;
    line-height: 24px;
    height: 24px;
    margin-left: 2px;
    flex:auto;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 2px;
    color: #666;
    background: #fff;

}
.current-color-value input{
    width: 100%;
    border: 0;
    outline: none;
    color: #666;
}
.fcolorpicker .color-btn-group{
    align-items: center;
    display: flex;
    justify-content: flex-end;
    flex: 0 0 82px;
}
.fcolorpicker .color-btn-group>a{
    display: inline-block;
    font-size: 12px;
    text-align: center;
    background: red;
    color: #fff;
    cursor: pointer;
    height: 27px;
    border-radius: 2px;
    line-height: 26px;
    padding: 0 10px;
    margin-left: 6px;
}
.fcolorpicker .color-btn-group .cancel-color{
    background: #d9e5f4;
    color: #333;
}
.fcolorpicker .color-btn-group .confirm-color{
    background: #57a4ff;
}


.fcolorpicker .color-gradient{
    width: calc(100% - 18px);
    margin-left: 9px;
}
.fcolorpicker .gradient-bar-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-top:34px;
}


.fcolorpicker .gradient-colors{
    position: absolute;
    width: calc(100% - 22px);
    left: 0;
    top: 6px;
}
.fcolorpicker .gradient-colors .gradient-item{
    width:16px;
    height:16px;
    position: absolute;
    top:0;
    border:1px solid #d9d7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -9px;
    cursor: pointer;
    background: #fff;
}
.fcolorpicker .gradient-colors .gradient-item.on{
    border:1px solid #57a4ff;
    /*background: #57a4ff;*/
}
.fcolorpicker .gradient-colors .gradient-item.deleting-item:after{
    content:'';
    display: block;
    position: absolute;
    width:100%;
    height:100%;
    background: rgba(0,0,0,.5);
}
.fcolorpicker .gradient-colors .gradient-item:before{
    content: '';
    position: absolute;
    top: 19px;
    color: #928f8f;
    border-width: 4px 4px 0;
    border-style: solid;
    border-color:#666 transparent transparent transparent
}
.fcolorpicker .gradient-colors .gradient-item .color{
    background:blue;
    width:12px;
    height:12px;
}
.fcolorpicker .gradient-bar{
    flex:auto;
    height:14px;

    margin-right:6px;
    position: relative;
}
.fcolorpicker .gradient-bar span{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display: block;
}
.fcolorpicker .gradient-bar:before{
    content:'';
    display: block;
    position: absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background: url(opacity.png);
    background-size: 10px;
}
.fcolorpicker .add-gradient{
    flex:0 0 16px;
    height:16px;
    width:16px;
    border:1px solid #999;
    cursor:pointer;
    position: relative;
}
.fcolorpicker .add-gradient:before{ content: ''; position: absolute; left: 4px; top: 8px; width: 9px; height: 1px; background: #999;}
.fcolorpicker .add-gradient:after{ content: ''; position: absolute; left: 8px; top: 4px; width: 1px; height: 9px; background: #999;}
.fcolorpicker .gradient-angle{
    padding-top: 10px;
    margin-bottom:22px;
}
.fcolorpicker .gradient-angle .current-angle{
    width:100%;
    height:4px;
    background:#d5d3d3;
    position: relative;
}
.fcolorpicker .gradient-angle .current-angle div{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#57A4FF;
    position: absolute;
    top: -6px;
    margin-left:-7px;
    cursor: pointer;
}
.fcolorpicker .gradient-angle .current-angle span{
    font-size: 12px;
    position: absolute;
    top: 8px;
}
.fcolorpicker .color-slidedown{
    position: relative;
    display: inline-block;
    padding-right:14px;
    cursor: pointer;
    font-size: 12px;
    margin-right:2px;
}
.fcolorpicker .color-slidedown:before{
    position: absolute;
    right: 0px;
    top: 3px;
    font-size: 12px;
    color: #666;
}
.fcolorpicker .color-slidedown p{
    margin:0;
    cursor: pointer;
}
.fcolorpicker .color-slidedown ul{
    display: block;
    position: absolute;
    background: #000;
    z-index: 9;
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 26px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.3);
    border-radius: 2px;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    display: none;
}
.fcolorpicker .color-slidedown.down ul{
    display: block;
}
.fcolorpicker .color-slidedown ul li{
    cursor: pointer;
}

.fcolorpicker .color-slidedown.color-format-type ul{
    bottom:20px;
}
.fcolorpicker .color-type{ display: block; padding-right: 0; margin-right: 0; border-bottom: 2px solid #e0e0e0; margin-bottom: 10px;}
.fcolorpicker .color-type > p{ display: none;}
.fcolorpicker .color-type > ul{ display: block; text-align:center; position: relative; background: none; border-radius: 0; padding: 0; display: flex;flex-flow: wrap; box-shadow: none; color: #333; font-size: 14px; line-height: 30px;}
.fcolorpicker .color-type > ul li{ width: 33.333%; float: left;}
.fcolorpicker .color-type li.on{
    color: #57a4ff;
    font-weight: BOLD;
    position: relative;
}
.fcolorpicker .color-type li.on:before{content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background:#57a4ff;}
.fcolorpicker .color-type span{
    cursor: pointer;
}
