.color-palette {
    padding: 14px 31px 33px 31px;
	width: 50%;
}

.color-palette.-gray {
    background:#F3F3F3;
}

.color-palette.-active {
    background:#FAFAFA;
}

.color-palette.-disable {
	pointer-events: none;
    opacity: 0.5;
}

.color-palette__header {
    display: flex;
    justify-content: space-between;

}

.color-palette__title {
    font-weight: 500;
    font-size: 11px;
    line-height: 18px;
    color: #636363;
}

.color-palette__palette {
    display: flex;
    margin-top: 20px;
	justify-content: center;
}

.color-palette__colors{
	display: flex;
	gap: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
}
.color-palette__colors::-webkit-scrollbar{ display: none; }
.color-palette__colors{ -ms-overflow-style: none; scrollbar-width: none; }

.color-palette__button { cursor: pointer; user-select: none; }

.color-palette__button.-left {
    transform: rotate(180deg);
    margin-right: 10px;
}

.color-palette__button.-right {
    margin-left: 10px;
}

.color-palette__color {
    height: 28px;
    width: 28px;
    border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: 0 0 28px;
}

.color-palette__color.active::before {
	content: '✓';
	color: white;
}


.color-palette__switcher {
    display: inline-block;    
	height: 25px;    
	line-height: 28px;  
	margin-right: 10px;      
	position: relative;
	vertical-align: middle;
	font-size: 14px;
	user-select: none;	
    left: 25px;
}

.color-palette__switcher .color-palette__switch {
	position: relative;	
	display: inline-block;
	box-sizing: border-box;			
	width: 41px;	
	height: 25px;
	border: 1px solid #A7A7A7;
	border-radius: 39px;	
	vertical-align: top;
	transition: .2s;
}
.color-palette__switcher .color-palette__switch:before {
	content: '';
	position: absolute;
	top: calc(50% - 6.5px);
	left: 6px;	
	display: inline-block;
	width: 13px;	
	height: 13px;
	border-radius: 50%;
	background: #636363;
	transition: .15s;
}
.color-palette__switcher input[type=checkbox] {
	display: block;	
	width: 0;
	height: 0;	
	position: absolute;
	z-index: -1;
	opacity: 0;
}
.color-palette__switcher input[type=checkbox]:not(:disabled):active + .color-palette__switch:before {
	box-shadow: inset 0 0 2px rgba(0, 0, 0, .3);
}

.color-palette__switcher input[type=checkbox]:checked + .color-palette__switch:before {
	transform:translateX(100%);
}

/* Active (checked) state colorization */
.color-palette__switcher input[type=checkbox]:checked + .color-palette__switch{
    border-color: #7A0E30 !important;
}
.color-palette__switcher input[type=checkbox]:checked + .color-palette__switch:before{
    background: #7A0E30;
}
 
/* Hover */
.color-palette__switcher input[type="checkbox"]:not(:disabled) + .color-palette__switch {
	cursor: pointer;
	border-color: rgba(0, 0, 0, .3);
}
 
/* Disabled */
.color-palette__switcher input[type=checkbox]:disabled + .color-palette__switch {
	filter: grayscale(70%);
	border-color: rgba(0, 0, 0, .1);
}
.color-palette__switcher input[type=checkbox]:disabled + .color-palette__switch:before {
	background: #eee;
}
 
/* Focus */
.color-palette__switcher.focused .color-palette__switch:before {
	box-shadow: inset 0px 0px 4px #ff5623;
}

@media (max-width: 1381px) {
	.color-palette {
    padding: 14px 5px 33px 5px;
    width: 50%;
	}

	.color-palette__switcher{
		left: 0;
	}
}


@media (max-width: 709px) {
	.color-palette {
    width: 100%;
	}
}
