.side-modal-active {
    overflow: hidden;
}

.side-modal-active .side-modal {
    opacity: 1;
    visibility: visible;
    transition: opacity 250ms ease-in, visibility 0ms ease-in 0ms;
}

div.side-modal {
    position: fixed;
    z-index: 2035;
    right: 0;
    top: 0;
    height: 100%;
    max-width: 480px;
    background-color: white;
    border-radius: 1em 0 0 1em;
    border: 1px solid black;
    overscroll-behavior-y: contain;
    overflow: hidden;
    display: flex;
    justify-content: center;
    transition: opacity 250ms ease-in, visibility 0ms ease-in 250ms;
}

div.side-modal-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

div.side-modal-header {
    display: flex;
    height: 45px;
    padding: 5px 0 0 20px;
    align-items: center;
}

div.side-modal-header .side-modal-title {
    font-weight: 700;
    font-size: 20px;
    color: #333;
}

div.side-modal-content {
    overflow: hidden auto;
    position: relative;
    height: 100%;
    padding: 0 5% 5% 5%;
}

div.side-modal-content .color-collections {
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

div.side-modal-content .collection-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

div.side-modal-content .collection-header--left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

div.side-modal-content .collection-header--right .close-details {
    margin: 0 10px 0 0;
}

div.side-modal-content .collection-header .collection-name {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

div.side-modal-content .collection-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-size: 12px;
    color: #515151;
}

div.side-modal-content .collection-info .collection-details-divider {
    margin: 0 5px 0 5px;
}

div.side-modal-content .collection {
    margin-bottom: 20px;
}

div.side-modal-content .collection-colors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    grid-auto-flow: dense;
    font-size: 13px;
    justify-content: center;
}

div.side-modal-content .collection-color {
    cursor: pointer;
    padding: 3px;
}

div.side-modal-content .collection-color:not(.selected):hover {
    border: 2px solid rgba(250, 163, 34, 0.5);
    padding: 1px;
}

div.side-modal-content .collection-color.selected {
    border: 2px solid #faa322;
    padding: 1px;
}

.slide-in {
    right: 0 !important;
}

.slide-out {
    right: -605px !important;
}

div.side-modal-footer {
    display: flex;
    justify-content: center;
    position: absolute;
    height: 60px;
    width: 100%;
    bottom: 0;
    background-color: white;
    box-shadow: rgba(20, 20, 20, 0.08) 0px -2px 10px;
}

div.side-modal-footer button {
    margin: 5px;
    width: 80%;
    background: #faa322;
    height: 50px;
    line-height: 45px;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    overflow: hidden;
    font-weight: 700;
    border-radius: 45px;
    z-index: 5
}

button.open-filters {
    display: block;
    margin: 5px 5px 15px 5px;
    width: 35%;
    background: #00afbe;
    height: 40px;
    line-height: 35px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    overflow: hidden;
    font-weight: 700;
    border-radius: 45px;
}

button.open-filters:hover {
    background: #faa322;
    color: #333;
}

div.color-filters-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div.color-filters-wrapper.hidden {
    display: none;
}

div.color-filters {
    width: 80%;
}

div.color-filter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

div.color-filter label {
    margin-right: 5px;
}

div.color-filter .jcf-select {
    width: 200px;
}

div.collection-color-details {
    grid-column: 1 / -1;
    position: relative;
}

div.collection-color-details--name {
    font-size: 15px;
}

div.collection-color-details .owl-nav {
    bottom: 145px;
    position: relative;
    left: 5px;
    right: 5px;
}

.close-details {
    height: 30px;
    width: 30px;
    right: 0;
    background: #ffffff;
    border-radius: 50%;
    margin: 5px;
    /*margin: 5px 10px 0 0;*/
    line-height: 20px;
    color: #333;
    position: absolute;
    z-index: 4;
    cursor: pointer;
    -o-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
.close-details:hover {
    color: #f66f79;
}

div.collection-details .collection-description {
    margin: 10px;
}

.close-details:before, .close-details:after {
    content: "";
    background: #333;
    width: 1px;
    height: 21px;
    position: absolute;
    top: 5px;
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    -o-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
.close-details:after {
    -moz-transform:    rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -o-transform:      rotate(-45deg);
    -ms-transform:     rotate(-45deg);
    transform:         rotate(-45deg);
}

.close-details:hover:before, .close-details:hover:after {
    background: #f66f79;
}

@media only screen and (max-width: 480px) and (min-width: 400px) {
    div.collection-color-details .close-details {
        right: calc(5%);

    }
}

@media screen and (max-width: 480px) {
    div.side-modal {
        width: 100%;
        border: 0;
        border-radius: 0;
    }

    div.side-modal-content .collection-colors {
        margin: 0 40px 0 40px;
        gap: 5px;
        grid-template-columns: repeat(2, 1fr);
    }

    div.collection-color-details--images {
        margin: 0 -20px 0 -20px;
    }
}
