.loading-screen {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #646464;
    color: #fff;
    display: flex;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.slab-config {
    width: 90%;
    margin: 50px auto;
    background: #fff;
    border-radius: 15px;
    position: relative;
    padding: 10px;
}
.folds .mdf-doorstyle-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin: 15px auto;
    margin-top: 2.5em;
}
.folds .mdf-doorstyle-header.with-toggler {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 15px auto;
    margin-top: 2.5em;
}
.folds .mdf-doorstyle-header.with-toggler .style-toggler-container {
    width: unset;
}
.folds .style-toggler {
    width: fit-content;
    float: none;
    margin: 15px auto;
}
.shapes-wrapper,
.review-wrapper,
.edge-taping,
.assembly-wrapper {
    width: 90%;
    margin: 0px auto;
    padding: 15px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.add-btn-wrapper {
    width: 90%;
    margin: 15px auto;
}
.add-btn-wrapper button {
    max-width: max-content;
}
.edge-taping-wrapper {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#create-set {
    width: 100%;
    margin-top: 35px;
}
#add-another-fold {
    display: none;
}
.shape-item,
.edge-taping-item {
    display: flex;
    flex-direction: column;
    width: 145px;
    height: 250px;
    margin: 0px 10px;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 0 3px 1px rgb(31 117 138 / 20%);
    border: 1px solid transparent;
    transition: 0.25s linear;
    padding: 5px;
    text-align: center;
}
.shape-item input{
    opacity: 0;
}
.edit-fold-set,
.delete-from-set {
    margin: 0 5px;
}
.delete-from-set {
    color: var(--text-color-red);
}
.shape-item.active,
.edge-taping-item.active {
    /* background-color: var(--bg-color); */
    background-color: var(--text-color-red);
    color: #fff;
    border: 1px solid var(--text-color-red);
}
.shape-item:hover,
.edge-taping-item:hover {
    border: 1px solid rgba(0, 0, 0, 0.26);
    background-color: rgba(255, 255, 255, 0.425);
    box-shadow: 0 0 15px 1px rgba(31, 117, 138, 0.199);
}
.shape-item p,
.edge-taping-item p {
    font-size: 14px;
    margin: auto 5px;
}
.shape-item img,
.edge-taping-item img {
    transition: 0.3s ease;
    /* filter: grayscale(100%) contrast(200%); */
}
.shape-item:hover img,
.edge-taping-item:hover img {
    transform: scale(1.5) translateY(20%);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.322);
    z-index: 5;
}
.shape-configurator-outer .slab-step2-body.grain {
    margin: 0;
    margin-top: 35px;
    margin-left: 5%;
}
.shape-configurator-outer .slab-step2-body {
    background-color: transparent;
}
.shape-configurator-inner {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 2fr;
    padding: 15px 0;
}
.shape-image-wrapper {
    position: relative;
    transition: 0.4s ease;
    cursor: pointer;
}
.img-hover-zoom {
    opacity: 0;
}
.shape-image-wrapper p {
    margin-top: 10px;
    text-align: center;
}
.shape-image-wrapper:hover .img-hover-zoom {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #646464;
    transition: 0.3s ease;
    opacity: 0.5;
    background-image: url(/images/configurator/zoom-in.svg);
    background-size: 80px 80px;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 0 25px -10px black;
}
.shape-image-dimensions {
    width: 100%;
    max-width: 350px;
    min-width: 150px;
}
.shape-inputs {
    margin-bottom: 20px;
}
.props-inputs-prices {
    flex-wrap: wrap;
}
.shape-prices {
    min-width: 250px;
    padding: 15px;
}
.shape-configurator-outer .shape-configurator-header {
    display: flex;
    flex-direction: column;
}
.shape-configurator-header h2 {
    white-space: nowrap;
}
.shape-configurator-header .style-toggler-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: max-content;
}
.shape-configurator-header .style-toggler-container .style-toggler {
    display: flex;
    flex-direction: row;
}
.shape-config-row {
    margin: 10px 0;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.set-editor {
    display: none;
}
.shape-inputs {
    padding-left: 25px;
    display: flex;
    flex-direction: column;
}
.shape-inputs .shape-input-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 15px;
}
.shape-inputs .shape-input-item b {
    width: 40px;
}
.shape-inputs .shape-input-item.imperial > div {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.shape-inputs .shape-input-item.imperial > div input[type='text']:first-child {
    max-width: 80px;
}
.shape-inputs .shape-input-item.imperial > div input[type='text']:not(:first-child) {
    margin: 0 10px;
    max-width: 50px;
}
.shape-inputs .shape-input-item.metric > div input[type='text'] {
    max-width: 100px;
}
.shape-inputs [name='qty'] {
    max-width: 100px;
}
.props-inputs-prices {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.shape-configurator-outer .grain-container {
    box-shadow: 0 0 15px -10px black;
}
.shape-configurator-outer .grain-container h4 {
    top: -20px;
    color: #000000;
}
/* .shape-configurator-inner label {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
} */

/* CHECKBOXES */
.control {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    padding-top: 3px;
    cursor: pointer;
    margin: 10px;
    /* font-size: 16px; */
}
.control input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.control_indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #e6e6e6;
    border: 0px solid #000000;
    border-radius: 0px;
}
.control:hover input ~ .control_indicator,
.control input:focus ~ .control_indicator {
    background: #cccccc;
}

.control input:checked ~ .control_indicator {
    background: #7a1118;
}
.control:hover input:not([disabled]):checked ~ .control_indicator,
.control input:checked:focus ~ .control_indicator {
    background: #7a1118;
}
.control input:disabled ~ .control_indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}
.control_indicator:after {
    box-sizing: unset;
    content: '';
    position: absolute;
    display: none;
}
.control input:checked ~ .control_indicator:after {
    display: block;
}
.control-checkbox .control_indicator:after {
    left: 8px;
    top: 4px;
    width: 3px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.control-checkbox input:disabled ~ .control_indicator:after {
    border-color: #7b7b7b;
}
.control-checkbox .control_indicator::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    margin-left: -0.883rem;
    margin-top: -0.883rem;
    background: #7a1118;
    border-radius: 0rem;
    opacity: 0.4;
    z-index: 99999;
    transform: scale(0);
}
@keyframes s-ripple {
    0% {
        transform: scale(0);
    }
    20% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}
@keyframes s-ripple-dup {
    0% {
        transform: scale(0);
    }
    30% {
        transform: scale(1);
    }
    60% {
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}
.control-checkbox input + .control_indicator::before {
    animation: s-ripple 250ms ease-out;
}
.control-checkbox input:checked + .control_indicator::before {
    animation-name: s-ripple-dup;
}

/* CHECKBOXES END */

/* LOADING ANIMATION */
.cssload-preloader {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cssload-preloader > .cssload-preloader-box {
    /* position: absolute;
    height: 21px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -105px; */
    perspective: 140px;
    -o-perspective: 140px;
    -ms-perspective: 140px;
    -webkit-perspective: 140px;
    -moz-perspective: 140px;
}

.cssload-preloader .cssload-preloader-box > div {
    position: relative;
    width: 21px;
    height: 21px;
    background: rgb(204, 204, 204);
    float: left;
    text-align: center;
    line-height: 21px;
    font-family: Verdana;
    font-size: 14px;
    color: rgb(255, 255, 255);
}
.cssload-preloader .cssload-preloader-box > div:nth-child(1) {
    background: rgba(122, 17, 24, 0.95);
    margin-right: 10px;
    animation: cssload-movement 600ms ease 0ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 0ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 0ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 0ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 0ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(2) {
    background: rgb(122, 17, 24);
    margin-right: 10px;
    animation: cssload-movement 600ms ease 75ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 75ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 75ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 75ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 75ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(3) {
    background: rgb(122, 17, 24);
    margin-right: 10px;
    animation: cssload-movement 600ms ease 150ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 150ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 150ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 150ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 150ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(4) {
    background: rgb(122, 17, 24);
    margin-right: 10px;
    animation: cssload-movement 600ms ease 225ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 225ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 225ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 225ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 225ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(5) {
    background: rgb(122, 17, 24);
    margin-right: 10px;
    animation: cssload-movement 600ms ease 300ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 300ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 300ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 300ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 300ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(6) {
    background: rgb(122, 17, 24);
    margin-right: 10px;
    animation: cssload-movement 600ms ease 375ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 375ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 375ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 375ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 375ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(7) {
    background: rgb(122, 17, 24);
    margin-right: 10px;
    animation: cssload-movement 600ms ease 450ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 450ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 450ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 450ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 450ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(8) {
    background: #ccb582;
    margin-right: 10px;
    animation: cssload-movement 600ms ease 525ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 525ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 525ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 525ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 525ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(9) {
    background: #ccb582;
    margin-right: 10px;
    animation: cssload-movement 600ms ease 600ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 600ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 600ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 600ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 600ms infinite alternate;
}
.cssload-preloader .cssload-preloader-box > div:nth-child(10) {
    background: #ccb582;
    margin-right: 10px;
    animation: cssload-movement 600ms ease 675ms infinite alternate;
    -o-animation: cssload-movement 600ms ease 675ms infinite alternate;
    -ms-animation: cssload-movement 600ms ease 675ms infinite alternate;
    -webkit-animation: cssload-movement 600ms ease 675ms infinite alternate;
    -moz-animation: cssload-movement 600ms ease 675ms infinite alternate;
}

@keyframes cssload-movement {
    from {
        transform: scale(1) translateY(0px) rotateX(0deg);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        transform: scale(1.5) translateY(-17px) rotateX(45deg);
        box-shadow: 0 17px 28px rgba(122, 17, 24, 0.4);
        background: rgb(122, 17, 24);
    }
}

@-o-keyframes cssload-movement {
    from {
        -o-transform: scale(1) translateY(0px) rotateX(0deg);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        -o-transform: scale(1.5) translateY(-17px) rotateX(45deg);
        box-shadow: 0 17px 28px rgba(122, 17, 24, 0.4);
        background: rgb(122, 17, 24);
    }
}

@-ms-keyframes cssload-movement {
    from {
        -ms-transform: scale(1) translateY(0px) rotateX(0deg);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        -ms-transform: scale(1.5) translateY(-17px) rotateX(45deg);
        box-shadow: 0 17px 28px rgba(122, 17, 24, 0.4);
        background: rgb(122, 17, 24);
    }
}

@-webkit-keyframes cssload-movement {
    from {
        -webkit-transform: scale(1) translateY(0px) rotateX(0deg);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        -webkit-transform: scale(1.5) translateY(-17px) rotateX(45deg);
        box-shadow: 0 17px 28px rgba(122, 17, 24, 0.4);
        background: rgb(122, 17, 24);
    }
}

@-moz-keyframes cssload-movement {
    from {
        -moz-transform: scale(1) translateY(0px) rotateX(0deg);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    to {
        -moz-transform: scale(1.5) translateY(-17px) rotateX(45deg);
        box-shadow: 0 17px 28px rgba(122, 17, 24, 0.4);
        background: rgb(122, 17, 24);
    }
}

/* MEDIA */
@media only screen and (max-width: 1400px) {
    .shape-configurator-outer .slab-step2-body.grain {
        width: 100%;
    }
}

@media only screen and (max-width: 1080px) {
    .folds .style-toggler > div {
        width: fit-content;
        margin: 0 15px;
    }
}
@media only screen and (max-width: 1080px) {
    .folds .mdf-doorstyle-header.door {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 768px) {
    .shape-configurator-inner {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 660px) {
    .folds .mdf-doorstyle-header.with-toggler {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .edit-set-row td {
        display: initial;
    }
}

@media only screen and (max-width: 480px) {
    .shapes-wrapper {
        width: 100%;
        margin: 0;
    }
    .folds .style-toggler-container > div {
        flex-direction: column;
        justify-content: center;
    }
    .folds .style-toggler-container {
        width: 100%;
    }
    .folds .style-toggler > div {
        width: fit-content;
        margin: 5px 15px;
    }
    .review-wrapper {
        width: 100%;
    }
    .shapes-wrapper {
        justify-content: center;
    }
}
