.color-palettes {
    display: grid;
    grid-template-columns: repeat(6, 18px);
    gap: 10px;
    width: 100%;
}

.color-palettes__item,
.color-palettes__add-button
{
    display: flex;
    width: 18px;
    height: 18px;
    overflow: hidden;
    border-radius: 50%;
}

.color-palettes__add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #CFD1D6;
}

.color-palettes__add-button::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #3F4150;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 8px 8px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 8px 8px;
    mask-image: url('../../img/svg/ic_cmm_plus-bold.svg');
    -webkit-mask-image: url('../../img/svg/ic_cmm_plus-bold.svg');
}

.color-palettes__item-label {
    position: relative;
    flex-shrink: 0;
    align-items: center;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.color-palettes__item-checkmark {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    background-color: transparent;
}

.color-palettes__item-label > input[type='radio']:checked + .color-palettes__item-checkmark {
    border: none;

}

.color-palettes__item-label > input[type='radio']:checked + .color-palettes__item-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background-color: #FFFFFF;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 10px 9px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 10px 9px;
    mask-image: url('../../img/svg/ic_cmm_check.svg');
    -webkit-mask-image: url('../../img/svg/ic_cmm_check.svg');
}

.color-palettes__item-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 1;
    opacity: 0;
}

.color-picker__dialog-wrapper {
    display: flex;
    flex-direction: column;
    width: 480px;
}

.color-picker__dialog-body {
    width: 100%;
    padding: 16px  24px 8px 24px;
}

.color-picker__dialog-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 16px;
    padding-bottom: 24px;
}