
/* Color picker input styling */
.kolorPicker {
    position: relative;
    cursor: pointer;
    max-width: 98px;
    border-radius: var(--theme-rounded-corners);
}

/* Color picker dropdown container */
.color-picker-container {
    position: absolute;
    background: #fff;
    padding: 1.2rem;
    width: 350px;
    z-index: 99;
    margin-top: 1px;
    cursor: pointer;
    border-radius: .5rem;
    box-shadow: 0px 0px 8px 8px rgba(0,0,0,.03);
}


/* Color picker dropdown header */
.color-picker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 .5rem;
}

/* Color picker dropdown header close button */
.color-picker-close-button {
    font-size: 1.5rem;
}

/* Color picker palette nav wrapper */
.color-picker-nav-wrapper {
    margin-bottom: .6rem;
}

/* Color picker palette nav list */
.color-picker-nav {
    margin: 0;
    padding-left: 0;
    background: #edf2f7;
    overflow: hidden;
    padding: .25rem;
    border-radius: .25rem;
}

/* Color picker palette nav item */
.color-picker-nav .color-picker-nav-item {
    list-style: none;
    float: left;
    text-align: center;
    font-size: 14px;
    width: 50%;
    padding: .2rem;
    color: #353448;
    cursor: pointer;
    border-radius: .25rem;
}

/* Color picker palette nav item when hovered */
.color-picker-nav .color-picker-nav-item:hover {
    opacity: .8;
    transition: .3s;
}

/* Color picker palette nav item styling when active */
.color-picker-nav .color-picker-nav-item.color-picker-nav-item-active,
.color-picker-nav .color-picker-nav-item.color-picker-nav-item-active:hover  {
    background: #4399df;
    color: #fff;
    box-shadow: 0 0 10px 0 rgba(0,0,0,.17);
}

/* Adds border and spacing below black and white swatches */
.swatch-row-0 {
    border-bottom: 1px solid #eaeef0;
    padding-bottom: .6rem;
    margin-bottom: .2rem;
}


/* Responsive styling of color swatches */
.swatch {
    float: left;
    margin-top: 2.22%;
    margin-right: 2.22%;
    width: 8%;
    border-radius: 10rem;
    cursor: pointer;
    position: relative;
}

/* Allows color swatches to keep their aspect ratio at any screen size */
.swatch:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.swatch:hover {
    opacity: .8;
}

/* Adds border and shadow to the current picked swatch */
.swatch.current-swatch::before {
    content: '';
    border: 1px solid #80bdff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, .25);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: -3px;
    border-radius: 10rem;
}


/* Adds a gray border to lighter colored swatches so they're more visible */
#ffffff, #f7fafc, #fff5f5, #fffaf0, #f0fff4,
#e6fffa, #ebf8ff, #ebf4ff,#faf5ff, #fff5f7, #fffff0{
    border: 1px solid #ccd5df;
}

/* Hides colors which are too light to be used in certain areas. */

.js-no-white #ffffff,
/* Lightest line */
.js-no-white #f7fafc, .js-no-white #fff5f5, .js-no-white #fffaf0, .js-no-white #f0fff4, .js-no-white #e6fffa,
.js-no-white #ebf8ff, .js-no-white #ebf4ff, .js-no-white #faf5ff, .js-no-white #fff5f7, .js-no-white #fffff0,
/* Second lightest line */
.js-no-white #edf2f7, .js-no-white #fed7d7, .js-no-white #fdebc9, .js-no-white #fdfbc0, .js-no-white #c7f5d5,
.js-no-white #b3f4e9, .js-no-white #bfe3f7, .js-no-white #c4dafd, .js-no-white #e9d8fd, .js-no-white #fed7e2{
    display: none;
}


/* Removes margin from the 10th swatch in each row in the color picker container so they're perfectly centred in the wrapper  */
.color-picker-container .swatch:nth-of-type(10n+2) {
    margin-right: 0;
}


/* Color picker sizing and positioning on mobile */
@media only screen and (max-width: 768px) {
    .color-picker-wrapper {
        right: 20px;
        width: 82%;
    }
}

@media only screen and (max-width: 576px) {
    .color-picker-container {
        width: 100%;
    }
}

/* Color picker helper code */
.kolorPicker[data-helper="true"] {
    max-width: 120px;
}

.kolorPicker[data-swatches="true"] {
    max-width: 289px;
}

.kolorPicker.kp-has-helper {
    padding-bottom: 22px;
    height: 55px;
}

.kp-helper {
    cursor: pointer;
    font-weight: 300;
    position: absolute;
    z-index: 2;
    color: #000;
    font-size: 11px;
    margin-top: -24px;
    margin-left: 14px;
}

.kolorPicker-wrapper + .kp-helper {
    z-index: 320;
}

.open-swatches {
max-width: 320px;
}
