.swatchbook {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: auto;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 1300px;
}

.swatchbook-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    
    justify-content: center;
}

#swatchbook-preview {
    position: relative;
    content: ' ';
    display: inline-block;
    border-radius: 24px;
    overflow: hidden;

}

#swatchbook-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#swatchbook-blank {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    max-width: calc(100vw - 40px);
}

#swatchbook-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

#swatchbook-selector {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    max-width: 680px;
}

#swatchbook-left {
    content: ' ';
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

#swatchbook-colorchart {
    border-radius: 24px;
    vertical-align: top;
    /* or middle, depending on your layout */
    padding: 14px;
    display: inline-flex;
    flex-direction: row;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    
    height: 100% !important;
    flex-wrap: wrap;
}


#swatchbook-colorchart .color {
    padding: 8px 30px;
    border-radius: 14px;
    height: 90px;
    display: flex;
    align-items: end;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 2px solid hsla(0, 0%, 0%, 0.04);
    transition: 1s ease;
    min-width: 150px;
    max-width: 169px;
}
#swatchbook-colorchart .color:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    transition: 0.5s ease;
}

#swatchbook-colorchart .label::selection {
    display: none;
}

/* MAIN */
/* =============================================== */
.rad-label {
    display: flex;
    align-items: center;

    border-radius: 100px;
    padding: 14px 16px;
    margin: 10px 0;

    cursor: pointer;
    transition: .3s;
}

.rad-label:hover,
.rad-label:focus-within {
    background: hsla(0, 0%, 80%, .14);
}

.rad-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
}

.rad-design {
    width: 22px;
    height: 22px;
    border-radius: 100px;

    background: rgb(255, 255, 255);
    background: linear-gradient(135deg, rgb(255, 226, 218) 0%, rgba(255, 127, 93, 1) 100%);
    position: relative;
}

.rad-design::before {
    content: '';

    display: inline-block;
    width: inherit;
    height: inherit;
    border-radius: inherit;

    background: hsl(0, 0%, 90%);
    transform: scale(1.1);
    transition: .3s;
}

.rad-input:checked+.rad-design::before {
    transform: scale(0);
}

.rad-text {
    color: hsl(0, 0%, 60%);
    margin-left: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 900;

    transition: .3s;
}

.rad-text::selection {
    display: none;
}

.rad-input:checked~.rad-text {
    color: hsl(0, 0%, 40%);
}

.swatchbook-images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    background-color: hsla(0, 0%, 80%, .14);
    border-radius: 24px;
    padding: 14px 9px;
}

.swatchbook-images img {
    border-radius: 12px;
    height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
}

.swatchbook-images .scroller {
    margin-left: 5px;
    margin-right: 5px;
    max-height: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

.swatchbook-images i {
    scale: 1.5;
    border-radius: 200px;
    padding: 4px;
    background: hsl(0, 0%, 90%);
}

@media (max-width: 768px) {
    .swatchbook {
        margin-left: 20px;
        margin-right: 20px;
        display: block;
    }
    .swatchbook-images img {
    border-radius: 12px;
    height: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    max-width: 80px;
}
.swatchbook-images .scroller {
    margin-left: 5px;
    margin-right: 5px;
    max-height: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2px;
}
    #swatchbook-colorchart .color {
    padding: 8px 9px;
    border-radius: 14px;
    height: 50px;
    display: flex;
    align-items: end;
    cursor: pointer;
    font-size: 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 2px solid hsla(0, 0%, 0%, 0.04);
    transition: 1s ease;
    min-width: 57px;
    max-width: 169px;
}
#swatchbook-colorchart {
    border-radius: 24px;
    vertical-align: top;
    padding: 5px;
    display: inline-flex;
    flex-direction: row;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    height: 100% !important;
    flex-wrap: wrap;
}
}

@media (max-width: 1300px) {
    #swatchbook-left {
        width: 100%;
        max-width: 100%;
    }

    #swatchbook-preview {
        margin: auto;
    }

    #swatchbook-selector {
        max-width: 100%;
    }

    .swatchbook {
        margin: unset;
    }
}