/**
 * QuickFilter filter-panel styles (colors, die-cuts, layout).
 * Extracted from filter_selection.php to shrink PLP HTML (WEB-133045).
 * Collapsible vs static header chrome uses [data-collapsible] on .container-filter-selections.
 */

    /*---- Start of Color Selections ----*/
    #Section6 input[type=checkbox]:checked ~ label:before,
    #filterColorPanel input[type=checkbox]:checked ~ label:before {
        box-shadow: 0 0 0 2px var(--bg-color-info), 0 0 0 4px var(--color-primary);
    }

    /** white */
    #Section6 label.white.checkbox:before,
    #filterColorPanel label.white.checkbox:before {
        background-color: #FFFFFF;
        border: solid .1rem var(--border-color-base);
        box-sizing: border-box;
    }

    /** black */
    #Section6 label.black.checkbox:before,
    #filterColorPanel label.black.checkbox:before {
        background-color: #000000;
    }

    /** gray */
    #Section6 label.gray.checkbox:before,
    #filterColorPanel label.gray.checkbox:before {
        background-color: #616161;
    }

    /** brown */
    #Section6 label.brown.checkbox:before,
    #filterColorPanel label.brown.checkbox:before {
        background-color: #653e22;
    }

    /** beige */
    #Section6 label.beige.checkbox:before,
    #filterColorPanel label.beige.checkbox:before {
        background-color: #ecddca;
    }

    /** green */
    #Section6 label.green.checkbox:before,
    #filterColorPanel label.green.checkbox:before {
        background-color: #8cc987;
    }

    /** yellow */
    #Section6 label.yellow.checkbox:before,
    #filterColorPanel label.yellow.checkbox:before {
        background-color: #ffe67e;
    }

    /** orange */
    #Section6 label.orange.checkbox:before,
    #filterColorPanel label.orange.checkbox:before {
        background-color: #f98451;
    }

    /** red */
    #Section6 label.red.checkbox:before,
    #filterColorPanel label.red.checkbox:before {
        background-color: #cc3333;
    }

    /** pink */
    #Section6 label.pink.checkbox:before,
    #filterColorPanel label.pink.checkbox:before {
        background-color: #ffa8bb;
    }

    /** teal */
    #Section6 label.teal.checkbox:before,
    #filterColorPanel label.teal.checkbox:before {
        background-color: #62d8d9;
    }

    /** blue */
    #Section6 label.blue.checkbox:before,
    #filterColorPanel label.blue.checkbox:before {
        background-color: #4992d0;
    }

    /** purple */
    #Section6 label.purple.checkbox:before,
    #filterColorPanel label.purple.checkbox:before {
        background-color: #c089c2;
    }

    /** gold */
    #Section6 label.gold.checkbox:before,
    #filterColorPanel label.gold.checkbox:before {
        background-color: #c09b53;
    }

    /** silver */
    #Section6 label.silver.checkbox:before,
    #filterColorPanel label.silver.checkbox:before {
        background-color: #AEAEAE;
    }

    /** MULTI-COLOR */
    #Section6 label.multi-color.checkbox:before,
    #filterColorPanel label.multi-color.checkbox:before {
        background: linear-gradient(135deg, #fb76d3 0%, #fc8f72 24%, #f8e480 50%, #9ef5d6 76%, #7fcff3 100%) !important;
    }

    /** CUSTOM-COLOR */
    #Section6 label.custom-color.checkbox:before,
    #filterColorPanel label.custom-color.checkbox:before {
        background: url(https://cdn.planetart.com/images/rectangle_customcolor.png) 0% 0% / 102% 102% no-repeat !important;
    }
    /*---- End of Color Selections ----*/

    /*#SortBy {*/
    /*    display: flex;*/
    /*    justify-content: space-around;*/
    /*    align-items: center;*/
    /*    border-top: 0.1rem solid var(--border-color-base);*/
    /*    padding: 2rem 0;*/
    /*}*/
    /*#SortBy #SortByHeader {*/
    /*    font-size: var(--font-size-base);*/
    /*    font-weight: 300;*/
    /*}*/
    /*#SortBySelector {*/
    /*    height: 4rem;*/
    /*}*/


    .container-filter-selections {
        width: 100%;
    }

    .filtermenu .container-sort-by,
    .filtermenu .container-filters {
        margin: .8rem 1.5rem .5rem;
    }
    .filtermenu .container-sort-by img,
    .filtermenu .container-filters img {
        width: 2rem;
        height: auto;
    }
    .filtermenu .container-sort-by span,
    .filtermenu .container-filters span {
        font-size: 1rem;
    }

    .container-filter-selections .sort_menu {
        box-shadow: rgba(149, 157, 165, 0.2) 0px 15.8rem 22.4rem;
        position: absolute;
        left: -80%;
        top: 4.4rem;
        z-index: 8;
        background: var(--bg-color-lighten);
        width: 80%;
        height: calc( 100% - 4.4rem );
        transition: left .6s;
    }
    .container-filter-selections .sort_menu.show {
        left: 0;
        overflow: hidden auto;
    }

    .container-filter-selections .sort_menu .filter-header {
        padding: 1rem 2rem;
        border-bottom: 0.1rem solid var(--border-color-base);
        position: sticky;
        top: 0;
        background: var(--bg-color-lighten);
        z-index: 1;
    }
    .container-filter-selections .sort_menu .filter-header h3 {
        font: normal 2.4rem var(--font-family-heading);
        color: var(--text-color-primary);
    }

    .container-filter-selections .tooltip {
        margin-left: .2rem;
        font-size: 1.4rem;
        transition: opacity 0.2s ease;
        opacity: 0;
    }
    .container-filter-selections .tooltip:before {
        content: '(';
    }
    .container-filter-selections .tooltip:after {
        content: ')';
    }
    .container-filter-selections .tooltip.complete {
        opacity: 1;
    }

    .container-filter-selections .headerbar a {
        display: none;
    }

    .container-filter-selections .headerbar .collapse {
        text-transform: capitalize;
        display: flex;
        padding: 2rem 2.9rem;
        border-bottom: 0.1rem solid var(--border-color-base);
        font-size: var(--font-size-base);
    }
    .container-filter-selections .headerbar .collapse.open .g-icon-arrow-right {
        transform: rotate(0deg);
    }

    .container-filter-selections .sort_menu .list {
        padding: 2rem 3.4rem;
        border-bottom: 0.1rem solid var(--border-color-base);
        display: none;
    }

    .container-filter-selections .sort_menu .list ul li {
        padding: 1rem 0;
        display: flex;
        align-items: center;
    }
    .container-filter-selections .sort_menu .list ul li input[type=checkbox] {
        width: 1.8rem;
        height: 1.8rem;
    }

    .container-filter-selections .sort_menu .list ul li label {
        font-size: var(--font-size-base);
    }

    .container-filter-selections .sort_menu .list ul li input[type=checkbox]:disabled + label {
        opacity: .5;
    }
    .container-filter-selections .sort_menu .filtration_checkbox[data-filter-estimate="0"] ~ div.tooltip {
        opacity: .5;
    }

    /** PRICE **/
    #Section33 {
        padding: 3.5rem 3.4rem 2.7rem;
    }
    #Section33 .filtration_range_input .price {
        padding: 1rem 0;
        border-radius: 0;
        -moz-appearance:textfield;/**firefox**/
    }
    #Section33 .price-slider {
        margin: 2rem .7rem 1rem;
    }

    /** COLOR **/
    #Section6 ul li {
        width: 16.6%;
        justify-content: center;
        position: relative;
    }
    #Section6 ul li input {
        display: none;
    }
    #Section6 label {
        position: relative;
        margin: 0;
        padding: 0;
    }
    #Section6 label:before {
        content: "";
        display: inline-block;
        width: 2.9rem;
        height: 2.9rem;
        position: relative;
        border-radius: 2rem;
    }
    #Section6 input[type=checkbox]:disabled + label {
        opacity: .3;
    }
    #Section6 input[type=checkbox]:disabled+label:after {
        content: "";
        display: inline-block;
        width: 2.8rem;
        height: 1px;
        position: absolute;
        border-top: 1px solid var(--btn-border-color);
        left: 0;
        top: 1.4rem;
        transform: rotate(45deg);
        box-sizing: border-box;
    }
    #Section6 input[type=checkbox]:disabled:hover ~ .g-tooltip-content {
        display: block;
    }
    #Section6 .g-tooltip-content {
        top: -4rem;
        left: 1.7rem;
    }
    #Section6 .g-tooltip-content:before {
        left: 0;
        top: 2.7rem;
    }
    #Section6 li:nth-child(6n+5) .g-tooltip-content {
        left: -1rem;
    }
    #Section6 li:nth-child(6n+5) .g-tooltip-content:before {
        left: 2.7rem;
    }
    #Section6 li:nth-child(6n+6) .g-tooltip-content {
        left: -5rem;
    }
    #Section6 li:nth-child(6n+6) .g-tooltip-content:before {
        left: 6.7rem;
    }

    /** Card Orientation **/

    #Section5 ul {
        padding-left: 0;
        overflow: hidden;
    }
    #Section5 ul:not(.blanket_size_filter) li{
        float: left;
        width: 50px;
        text-align: center;
        margin: 0 7px 0 0 !important;
    }
    #Section5 ul:not(.blanket_size_filter) li:nth-child(2) {
        width: 75px;
    }
    #Section5 label {
        padding-left:0;
        padding-right: 0;
        margin-left: 0;
    }
    #Section5 label.checkbox:before, #filterOrientationPanel label.checkbox:before {
        background-image: var(--qf-die-cut-sprite);
        background-size: var(--qf-die-cut-sprite-size);
        background-repeat: no-repeat;
        background-position: 0 0;
        content: "";
        border: none;
        display: inline-block;
        width: 30px;
        height: 38px;
        margin-right: 7px;
        top: 1px;
        position: relative;
        transform: translateY(0.125rem);
    }
    #Section5 label.checkbox.landscape:before, #filterOrientationPanel label.checkbox.landscape:before {
        transform: rotate(90deg) translate(0, -3px);
        -ms-transform: rotate(90deg) translate(0, -3px);
        -webkit-transform: rotate(90deg) translate(0, -3px);
        -o-transform: rotate(90deg) translate(0, -3px);
        -moz-transform: rotate(90deg) translate(0, -3px);
    }
    #Section5 label.checkbox.square:before, #filterOrientationPanel label.checkbox.square:before {
        background-position-x: -210px;
        margin-right: 0;
    }
    #Section5 input[type=checkbox]:checked ~ label.portrait:before,
    #Section5 input[type=checkbox]:checked ~ label.landscape:before,
    #Section5 input[type=checkbox]:checked ~ label.square:before,
    #filterOrientationPanel input[type=checkbox]:checked ~ label.portrait:before,
    #filterOrientationPanel input[type=checkbox]:checked ~ label.landscape:before,
    #filterOrientationPanel input[type=checkbox]:checked ~ label.square:before {
        background-position-y: -37.5px;
    }

    /** Card Orientation end **/

    /** Card shape (die cut) **/
    #Section4 ul {
        display: flex;
        flex-wrap: wrap;
        width: auto;
    }
    #Section4 ul li, #filterShapePanel ul li {
        width: 20%;
        height: 46px;
        justify-content: center;
        padding: 0;
    }

    #Section4 label, #filterShapePanel label {
        line-height: 20px;
        margin-top: 0;
        font-size: 0;
        padding: 0;
        display: block;
        height: 100%;
    }
    #Section4 label.checkbox:before,
    #filterShapePanel label.checkbox:before {
        background-image: var(--qf-die-cut-sprite);
        background-size: var(--qf-die-cut-sprite-size);
        background-repeat: no-repeat;
        content: "";
        border: none;
        display: inline-block;
        width: 30px;
        height: 38px;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
    #Section4 input[type=checkbox]:checked ~ label:before,
    #filterShapePanel input[type=checkbox]:checked ~ label:before {
        background-position-y: -37.5px;
    }
    #Section4 label.checkbox.rectangle:before,
    #filterShapePanel label.checkbox.rectangle:before {
        background-position-x: 0;
    }

    #Section4 label.checkbox.rounded-rectangle:before,
    #filterShapePanel label.checkbox.rounded-rectangle:before,
    #Section4 label.checkbox.rounded-corners:before,
    #filterShapePanel label.checkbox.rounded-corners:before {
        background-position-x: -30px;
    }

    Section4 label.checkbox.tall_braces:before, #filterShapePanel label.checkbox.tall_braces:before,
    #Section4 label.checkbox.tall-braces:before, #filterShapePanel label.checkbox.tall-braces:before {
        background-position-x: -60px;
    }

    #Section4 label.checkbox.scallop-rectangle:before,
    #filterShapePanel label.checkbox.scallop-rectangle:before,
    #Section4 label.checkbox.scallop:before,
    #filterShapePanel label.checkbox.scallop:before {
        background-position-x: -90px;
    }

    #Section4 label.checkbox.geo:before, #filterShapePanel label.checkbox.geo:before {
        background-position-x: -150px;
    }

    #Section4 label.checkbox.petal:before, #filterShapePanel label.checkbox.petal:before {
        background-position-x: -180px;
    }

    #Section4 label.checkbox.square:before, #filterShapePanel label.checkbox.square:before {
        background-position-x: -210px;
    }

    #Section4 label.checkbox.rounded-square:before, #filterShapePanel label.checkbox.rounded-square:before,
    #Section4 label.checkbox.rounded-corners-square:before, #filterShapePanel label.checkbox.rounded-corners-square:before {
        background-position-x: -240px;
    }

    #Section4 label.checkbox.braces-square:before, #filterShapePanel label.checkbox.braces-square:before,
    #Section4 label.checkbox.square-braces:before, #filterShapePanel label.checkbox.square-braces:before {
        background-position: -270px 0;
    }

    #Section4 label.checkbox.circle:before, #filterShapePanel label.checkbox.circle:before {
        background-position-x: -300px;
    }

    #Section4 label.checkbox.tall_deco:before, #filterShapePanel label.checkbox.tall_deco:before,
    #Section4 label.checkbox.deco:before, #filterShapePanel label.checkbox.deco:before {
        background-position-x: -330px;
    }

    #Section4 label.checkbox.deckle:before, #filterShapePanel label.checkbox.deckle:before {
        background-position-x: -360px;
    }

    #Section4 label.checkbox.arch:before,
    #filterShapePanel label.checkbox.arch:before {
        background-position-x: -420px;
    }

    #Section4 label.checkbox.wavy-rectangle:before,
    #filterShapePanel label.checkbox.wavy-rectangle:before,
    #Section4 label.checkbox.wavy:before,
    #filterShapePanel label.checkbox.wavy:before {
        background-position-x: -450px;
    }

    /** Card shape (die cut) **/

    /* Rubber stamps */
    #Section4 .rubber_stamp label.checkbox.rectangle:before, #filterShapePanel label.checkbox.rectangle:before {
        transform: rotate(90deg);
    }


    #sort_container .menu-overlay {
        display: none;
        z-index: 7;
        width: 100%;
        height: calc(100% - 4.4rem);
        position: absolute;
        top: 4.4rem;
        background: var(--color-black);
        opacity: .35;
    }

    @media (min-width: 576px) {
        .container-filter-selections {
            width: 24rem;
            padding-right: 2rem;
        }

        .container-filter-selections .filtermenu {
            display: none;
        }

        .container-filter-selections .sort_menu {
            position: relative;
            box-shadow: none;
            top: 0;
            left: 0;
            width: 100%;
            height: auto;
        }

        .container-filter-selections .sort_menu .filter-header {
            padding: 0;
        }
        .container-filter-selections .sort_menu .filter-header h3,
        .container-filter-selections .sort_menu .filter-header .container-close {
            display: none;
        }
        .container-filter-selections .headerbar a {
            font-family: var(--font-family-heading);
            font-size: 2rem;
            font-weight: 500;
            padding: 1.5rem 0;
            display: block;
            color: var(--text-color-secondary);
            text-transform: capitalize;
            pointer-events: none;
            cursor: default;
        }
        .col-auto.container-arrow-icon{
            padding-top: 2px;
        }
        /* Desktop: filter option bodies stay visible (collapsible chrome is data-collapsible only). */
        .container-filter-selections .sort_menu .list {
            padding: 0 1.5rem 2rem 0;
            display: block;
        }

        .container-filter-selections .sort_menu .list ul li {
            padding: .5rem 0;
        }

        .container-filter-selections .sort_menu .list ul li label {
            font-size: var(--font-size-sm);
        }

        .container-filter-selections .sort_menu .list ul li input[type=checkbox] {
            width: 1.3rem;
            height: 1.3rem;
        }

        #Section33 {
            padding: 0 2rem 2rem 0.9rem
        }
        #Section33 .filtration_range_input {
            margin-left: .5rem;
        }
        #Section33 .filtration_range_input .price {
            padding: .5rem 0;
        }

        #Section5 .tooltip {
            display: none;
        }
        #Section5 li:hover div.tooltip {
            z-index: 1000;
            display: block;
            font-size: 13px;
            line-height: 13px;
            box-shadow: 1px 1px 1px #ccc;
            position: absolute;
            margin-left: 15px;
            margin-top: 45px;
            background-color: var(--color-primary);
            color: var(--color-white);
            text-align: center;
            padding: 2px 6px 3px 6px;
            pointer-events: none;
            -webkit-animation: fadein .3s;
            -moz-animation: fadein .3s;
            -ms-animation: fadein .3s;
            -o-animation: fadein .3s;
            animation: fadein .3s;
        }
        #Section5 .filtration_checkbox.portrait[data-filter-estimate] ~ div.tooltip:before {
            content: "Portrait (";
        }
        #Section5 .filtration_checkbox.landscape[data-filter-estimate] ~ div.tooltip:before {
            content: "Landscape (";
        }
        #Section5 .filtration_checkbox.square[data-filter-estimate] ~ div.tooltip:before {
            content: "Square (";
        }
        #Section5 div.tooltip:after {
            content: ")";
        }


        #Section6 label:before {
            width: 2.4rem;
            height: 2.4rem;
        }
        #Section6 input[type=checkbox]:disabled+label:after {
            width: 2.3rem;
            height: 1px;
            top: 1.2rem;
        }

        .paginator.bottom {
            display: block;
        }
        #sort_container .menu-overlay {
            display: none !important;
        }

        /*
         * Collapsible vs static header chrome (desktop only).
         * Must stay inside min-width:576px — on mobile the base rules hide
         * .headerbar a and show .collapse as the accordion row. Applying the
         * non-collapsible "hide .collapse" rule at root hid every filter
         * section on PCR classic mobile PLPs (WEB-133045).
         */
        .container-filter-selections[data-collapsible] .headerbar a {
            display: none;
        }
        .container-filter-selections[data-collapsible] .sort_menu .list {
            border: none;
        }
        .container-filter-selections[data-collapsible] .headerbar .collapse {
            padding: 0;
            padding-bottom: 1rem;
            font-family: var(--font-family-bold);
            font-weight: 500;
            border-bottom: none;
        }
        .container-filter-selections:not([data-collapsible]) .headerbar .collapse {
            display: none;
        }
    }

    @media (max-width: 575px) {
        #Section5 ul {
            display: flex;
            flex-direction: column;
        }
        #Section5 li,
        #Section5 li label {
            display: flex;
            align-items: center;
        }
        #Section5 li label::before {
            margin-right: 2rem !important;
        }
    }
