@import url('../icons/remixicon.css'); 

button, html [type=button], [type=reset], [type=submit] {
    -webkit-appearance: button;
    appearance: button;
}

.color_match {
    width: 60%;
    overflow: hidden;
    margin: 0 auto;
 }

.cm_wrap {
    width: 400%;
    display: flex;
    transition: all 200ms;
}

.color_match .step {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 750px;
}


.color_match[current-step="1"] .cm_wrap {
    margin-left: 0;
}

.color_match[current-step="2"] .cm_wrap {
    margin-left: -100%;
}

.color_match[current-step="3"] .cm_wrap {
    margin-left: -200%;
}

.color_match[current-step="4"] .cm_wrap {
    margin-left: -300%;
}


#image_upload {
    width: 0;
    height: 0;
    overflow: hidden;
}

.step_image {
    text-align: center;
}

.step_image img {
    height: 400px;
    width: auto;
}

.upload_button {
    width: 100%;
    margin-bottom: 50px;
}

.upload_button label {
    height: 60px;
    background: #f5f5f5;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60px;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 400ms;
}

.upload_button label:hover {
    opacity: 0.8;
}

.upload_button label i {
    margin-right: 15px;
    font-size: 20px;
}

.upload_notes {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.upload_notes li {
    margin: 0!important;
    display: flex;
    align-items: center;
    height: 35px;
}

.upload_notes li i {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    line-height: 20px;
    margin-right: 20px;
}

#image_preview {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

#image_preview .result_image {
    max-width: 100%;
    max-height: 500px;
    min-height: 300px;
    width: auto;
    height: auto;
    border-radius: 5px;
}

.action_buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.action_buttons button {
    width: 48%;
    height: 50px;
    background: #f5f5f5;
    color: #000;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 400ms;
    padding: 0;
    border: 0;
    margin: 0 1%;
}

.action_buttons button:not(.disabled):last-child {
    background-color: #000;
    color: #fff;
}

.action_buttons button.disabled {
    cursor: not-allowed;
}

.action_buttons button:hover {
    opacity: 0.8;
}

.action_buttons button i {
    margin-right: 15px;
    font-size: 20px;
}

.products_list {
    display: none;
}

#step_1 .step_content, 
#step_2 .step_content, 
#step_3 .step_content, 
#step_4 .action_buttons, 
#step_4 .error_content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 130px;
}

#step_4 .preview_image {
    width: 50%;
}

#step_4 .preview_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#step_4 .error_content {
    text-align: center;
    margin-bottom: 50px;
}

#step_4 .error_content h4 {
    font-size: 30px;
    font-weight: 700;
}

#step_4 .step_content {
    display: none;
    height: 400px;
    align-items: stretch;
    margin-bottom: 30px;
    column-gap: 15px;
}

#step_4 .result_content {
    background-color: #f5f5f5;
    width: 50%;
    height: 400px;
    display: flex;
    padding: 30px;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: center;
}

#step_4 .result_content .result_thumb {
    position: relative;
}

#step_4 .result_content .result_thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 100%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 0 15px 0 rgb(0 0 0 / 25%);
}

#step_4 .result_content p, #step_4 .result_content .select_button {
    text-align: center;
    display: block;
    width: 100%;
}

#step_4 .result_content .select_button a {
    line-height: 40px;
    padding: 0 30px;
    border-radius: 40px;
    background: #000;
    margin: 0;
    color: #fff;
    display: inline-block;
}

.similar_colors {
    width: 100%;
    display: none;
    margin-bottom: 30px;
}

.similar_item {
    width: 20%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
}

.similar_item.active {
    border: 1px solid #e2e2e2;
}

.similar_item .result_thumb {
    position: relative;
}

.similar_item .result_thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 100%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 0 15px 0 rgb(0 0 0 / 15%);
    margin-bottom: 10px;
}

span.color_point {
    position: absolute;
    top: 0;
    right: 0;
    background: #c7010a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 15px;
}

.similar_item p {
    font-size: 13px;
}

.colors_list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 50px;
}

.colors_list .color {
    display: inline-block;
    padding: 3px;
    margin: 0 3px;
    border: 2px solid transparent;
    border: 100%;
    border-radius: 100%;
    cursor: pointer;
}

.colors_list .color.active {
    border: 2px solid #ccc;
}

.colors_list .color span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 100%;
}

.categories_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    max-height: 500px;
    overflow-x: auto;
}

.category_item {
    width: 23%;
    margin: 1%;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.category_item.selected {
    box-shadow: 0 0 8px 0 rgb(0 0 0 / 25%);
}

.category_item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.category_item.selected button {
    background: #000;
    color: #fff;
}

.category_item button {
    margin: 0;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    width: 100%;
}

#step_3 h4 {
    text-align: center;
    font-size: 20px;
    font-weight: 700!important;
    margin-bottom: 30px;
}


#step_3 .colors_list {
    justify-content: center;
    margin-bottom: 50px;
}

#step_3 .colors_list strong {
    margin-right: 20px;
}

@media only screen and (max-width: 990px) {
    #step_1 .step_content, #step_2 .step_content, #step_3 .step_content, #step_4 .action_buttons, #step_4 .error_content {
        padding: 0 20px;
    }

    .color_match {
        width: 70%;
    }

    .category_item {
        width: 31.3%;
    }
}

@media only screen and (max-width: 540px) {
    .color_match {
        width: 100%;
    }

    #step_2 .colors_list, .action_buttons {
        display: block;
        text-align: center;
    }

    #step_2 .colors_list strong {
        display: inline-block;
        margin-bottom: 10px;
    }

    .action_buttons button {
        width: 100%;
        margin-bottom: 20px;
    }

    .category_item {
        width: 48%;
    }

    .step_image img {
        height: auto;
        width: 100%;
    }

    .similar_item {
        width: 25%;
        text-align: center;
    }

    .similar_item .result_thumb img {
        width: 100%;
        height: auto;
    }

    #step_4 .result_content .result_thumb img {
        width: 80px;
        height: 80px;
    }
    .category_item img {
        height: 120px;
    }

    #step_4 .result_content {
        padding: 15px;
    }

    #step_4 .step_content {
        column-gap: 0;
    }

    #step_1 .step_content, #step_2 .step_content, #step_3 .step_content, #step_4 .action_buttons, #step_4 .error_content {
        padding: 0 5px;
    }


}