
/* threat chart */

button.action.threat-level-chart-toggle, button.action.threat-level-chart-toggle:hover, button.action.threat-level-chart-toggle:active, button.action.threat-level-chart-toggle:focus {
    /* add specific button styles here */
    margin-bottom: 20px;
    background: #c5420e;
    padding: 15px 30px;
    border: 0;
    border-radius: 7px;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, .9);
}

.threat-level-chart-content, .threat-level-chart-content-mobile, .threat-level-chart-content-desktop {
    display: none;

}

.threat-level-chart-content {
    width: 100%;
    margin-bottom: 30px;
}

@media screen and (max-width: 767px), print {
    .threat-level-chart-content-desktop {
        display: none !important;
    }
}
@media screen and (min-width: 768px) {
    .threat-level-chart-content-mobile {
        display: none !important;
    }
}

/* category page */
.category-description button.action.threat-level-chart-toggle {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 20px auto;
    max-width: 768px;
}

@media screen and (min-width: 1024px) {
    .category-description button.action.threat-level-chart-toggle {
        display: inline-block;
        margin-top: 0;
        width: auto;
        z-index: 20;
    }

    .category-description .threat-level-chart-content-desktop {
        margin-top: 85px;
    }
}


@media screen and (max-width: 767px), print {
    .threat-level-chart-product .threat-level-chart-content-desktop {
        display: none !important;
    }
    .threat-level-chart-product .threat-level-chart-content-mobile {
        display: block !important;
    }
}
@media screen and (min-width: 768px) {
    .threat-level-chart-product .threat-level-chart-content-desktop {
        display: block !important;
    }
    .threat-level-chart-product .threat-level-chart-content-mobile {
        display: none !important;
    }
}


/* matrix chart */

button.action.matrix-chart-toggle, button.action.matrix-chart-toggle:hover, button.action.matrix-chart-toggle:active, button.action.matrix-chart-toggle:focus {
    /* add specific button styles here */
    background: #c5420e;
    padding: 10px 30px;
    border: 0;
    border-radius: 7px;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, .9);
}

.matrix-container {
    position: relative;
    display: block;
    box-sizing: border-box;
}

.matrix-chart-content {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    height: 180px;
    min-height: 180px;
    overflow: hidden;
}

.matrix-chart-content .matrix-img-mobile img, .matrix-chart-content .matrix-img-desktop img {
    /* changing to just change the display on the image (make the html easier for content people) */
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
    /*
    object-fit: cover;
    object-position: top left;
    */
}

.matrix-fade {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    height: 100%;

    /*
    background:
        linear-gradient(0, rgba(255,255,255,1) 0%, rgba(255,255,255,.2) 4%, rgba(255,255,255,0) 10%),
        linear-gradient(335deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.5) 15%, rgba(0,0,0,0) 30%),
        linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.5) 10%, rgba(255,255,255,0) 30%),
        linear-gradient(225deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,0) 60%)
        ;
    */
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 30%);
}

@media screen and (max-width: 767px), print {
    .matrix-img-desktop {
        display: none !important;
    }
}
@media screen and (min-width: 768px) {
    .matrix-img-mobile {
        display: none !important;
    }
}

/* category page */
button.action.matrix-chart-toggle {
    position: absolute;
    margin: 0px auto;
    right: 0;
    left: 0;
    bottom: 15px;
    z-index: 50;
    box-sizing: border-box;
    width: 100%;

    max-width: 768px;
}

.matrix-container.matrix-open {
    margin-bottom: 50px;
}

.matrix-container.matrix-open button.action.matrix-chart-toggle {
    bottom: -45px;
    padding: 6px 30px;
}

@media screen and (min-width: 1024px) {

    .filter-collapse-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    button.action.matrix-chart-toggle {
        margin-top: 0;
        width: 100%;
        z-index: 20;
    }

    .category-description .matrix-chart-content-desktop {
        margin-top: 85px;
    }
}

.matrix-chart-product .matrix-chart-content {
    display: none;
}

.matrix-chart-product .matrix-chart-content-mobile, .matrix-chart-product .matrix-chart-content-desktop {
    height: auto !important;
}
.matrix-chart-product .matrix-fade {
    display: none;
}

.matrix-chart-close-x {
    position: absolute;
    z-index: -1;
    top: 20px;
    right: 20px;

    box-sizing: border-box;
    background-color: #C15602;
    border-radius: 50%;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .3) ;
    box-shadow: 3px 3px 6px 2px rgba(0, 0, 0, .8) ;
    opacity: .01;
    padding: 7px;

    width: 36px;
    height: 36px;

    transition: all .5s ease-in;

    cursor: pointer;
}

.matrix-chart-close-x span {
    box-sizing: border-box;
    display: block;
    width: 80%;
    height: 5px;
    border-radius: 5px;
    background: #000;

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;

    transition: all .5s ease-in;
}

.matrix-container.matrix-open .matrix-chart-close-x {
    background-color: #fff;
    opacity: 1;
    z-index: 1;
}

.matrix-chart-close-x span {
    background-color: #C15602;
}
.matrix-chart-close-x span:first-child {
    background-color: #000;
}

.matrix-container.matrix-open .matrix-chart-close-x span {
    background-color: #484848;
    transform: rotate(405deg);
}
.matrix-container.matrix-open .matrix-chart-close-x span:first-child {
    background-color: #484848;
    transform: rotate(-405deg);
}

@media screen and (min-width: 768px) {
    .matrix-chart-close-x {
        display: none !important;
    }
}
