#setColor{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    z-index: 1000;
    padding: 15px 15px 0 15px;
    border: 1px solid #ccc;
    overflow: auto;
    color: #333;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
    max-height: 90vh;
    width: 400px;
}

@media (max-width: 768px) { 
    #setColor:not(.hide){
        position: relative;
        top: 0;
        left: 0;
        bottom: auto;
        right: auto;
        border-radius: 0;
        width: 100%;
        max-height: 100%;
    }
}


#setColor h2{
    font-weight: bold;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 16px;
}

#setColor h2:first-child{ margin-top: 0; border-top: none; padding-top: 0; }

#setColor div{ clear: both; }

#setColor label{
    padding-right: 20px;
}

#setColor em,
#setColor input{
    float: right;
    margin-left: 10px;
    margin-bottom: 10px;
}

#setColor em{ color: #999; }

#setColor input{
    width: 80px;
    border: 1px solid #ccc;
}

#setColor em.prev{
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    border: 1px solid #cecece;
}

#setColor div.button{
    position: relative;
    border-top: 1px solid #ccc;
    margin-top: 20px;
    padding: 10px 0 20px 0;
}

#setColor div.button button{
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 13px;
    padding: 6px 12px;
    margin: 10px 10px 0 0;
}

#setColor div.button a{
    position: absolute;
    right: 0;
    bottom: 15px;
    padding: 10px;
}

#setColor div.button a.desc{ display: block; }
#setColor div.button a.asc{ display: none; }

#setColor.hide{
    height: 55px;
    width: 55px;
    padding: 0;
}

#setColor.hide h2,
#setColor.hide button,
#setColor.hide div{ display: none; }

#setColor.hide div.button{ display: block; height: 0; }

#setColor.hide div.button a.desc{ display: none; }
#setColor.hide div.button a.asc{ display: block; }

#setColor.hide div.button{
    border-top: none;
    margin-top: 0;
    padding: 0;
}

#setColor.hide div.button a{
    right: 10px;
    top: 8px;
    bottom: auto;
    padding: 10px;
    overflow: hidden;
}
