/************************************ PAGE CONTENT *******************************/

.page-content {
    margin: 16px auto 0 auto;
    max-width: 1584px;
    width: 100%;
}

/************************************ PRODUCTS (MAIN) *******************************/

.products {
    display: flex;
    flex-direction: row;
    padding: 0 16px;
}

/************************************ FILTERS *******************************/

.filters-wrapper {
    width: 248px;
    margin-right: 32px;
    margin-bottom: 64px;
}


/* title for mobile, filter-button => hidden on desktop */

.show-mobile {
    display: none;
}


/*************** parent, subcategories heading ***************/

.block-heading {
    display: flex;
    flex-direction: column;
    border-top: 3px solid #0092d2;
    background: #f6f9fc;
    position: relative;
}

.block-heading.parent-heading {
    padding: 4px 8px 8px 60px;
    margin-bottom: 24px;
}

.block-heading.subcategories-heading {
    font-size: 16px;
    color: #003247;
    letter-spacing: -0.45px;
    line-height: 24px;
    font-weight: 600;
    padding: 12px 12px 12px 60px;
}

.block-heading.parent-heading span {
    font-size: 12px;
    color: #0092D2;
    letter-spacing: -0.15px;
    line-height: 16px;
    font-weight: 400;
}

.block-heading.parent-heading h4 {
    font-size: 15px;
    color: #003247;
    letter-spacing: -0.3px;
    line-height: 20px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.block-heading:before {
    content: '';
    display: block;
    width: 48px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #0092d2;
    background-image: url(/assets/icons/icon-arrowsubcat-white-20.svg);
    background-repeat: no-repeat;
    background-position: center center;
}

.block-heading.parent-heading:before {
    background-image: url(/assets/icons/icon-arrowparentcat-white-20.svg);
}



/*************** subcategories ***************/

.subcategories {
    margin-bottom: 24px;
}

.subcategories ul {
    margin: 0;
    padding: 0;
}

.subcategories ul.subcategories-list {
    margin-top: 8px;
}

.subcategories ul li {
    list-style: none;
}

.subcategories ul li label {
    font-size: 14px;
    color: #0092D2;
    line-height: 24px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    cursor: pointer;
}

.subcategories ul li label:hover {
    color: #007BB8;
}

/* subcategories tree when searching */

.subcategories ul.subcategories-tree.level1 {
    margin-top: 4px;
}

.subcategories ul.subcategories-tree.level1>li {
    border-bottom: 1px solid #c7d2d9;
}

.subcategories ul.subcategories-tree.level2>li {
    border-top: 1px solid #c7d2d9;
    margin-left: 16px;
}

.subcategories ul.subcategories-tree.level3>li {
    margin-left: 16px;
}

.subcategories ul.subcategories-tree li {
    position: relative;
}

.subcategories ul.subcategories-tree li label {
    font-size: 14px;
    color: #0092d2;
    line-height: 24px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 28px 12px 8px;
}

.subcategories ul.subcategories-tree.level3 li a {
    padding: 8px 8px 8px 8px;
}

.subcategories ul.subcategories-tree li a span.subcategory-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategories ul.subcategories-tree li span.tree-arrow {
    display: block;
    width: 28px;
    height: 48px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

.subcategories ul.subcategories-tree li span.tree-arrow:after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    position: absolute;
    right: 8px;
    top: 18px;
    background: transparent url(/assets/icons/icon-arrowdown-blue-12.svg) center center no-repeat;
    transition: all .35s ease;
}

.subcategories ul.subcategories-tree li span.tree-arrow-collapse:after {
    transform: rotate(180deg);
}

.subcategories ul.subcategories-tree li ul {
    display: none;
}

.subcategories ul.subcategories-tree li ul.visible {
    display: block;
}

.subcategories ul.subcategories-tree li a.selected {
    background: #f6f9fc;
    color: #003247;
}

.subcategories ul.subcategories-tree li a.selected+span.tree-arrow:after {
    background-image: url(/assets/icons/icon-arrowdown-darkgrey-12.svg);
}

/*************** filter count ***************/

span.filter-count {
    color: #74838A;
    line-height: 24px;
    font-weight: 600;
    margin-left: 8px;
}


/*************** filter-button for mobile ***************/

#filter-button {
    border: 3px solid #0092D2;
    border-radius: 4px;
    padding: 12px 12px 12px 44px;
    font-size: 16px;
    color: #003247;
    letter-spacing: -0.45px;
    line-height: 24px;
    font-weight: 600;
    background: #fff url(/assets/icons/icon-filter-darkgrey-16.svg) 12px center no-repeat;
}


/*************** filters ***************/

.filter {
    border-top: 3px solid #0092D2;
}

.filter-heading {
    font-size: 16px;
    color: #003247;
    letter-spacing: -0.45px;
    line-height: 24px;
    font-weight: 600;
    padding: 12px 16px 12px 0;
    position: relative;
    cursor: pointer;
}

.filter-heading:after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 0;
    top: 16px;
    background: transparent url(/assets/icons/icon-arrowup-darkgrey-16.svg) center center no-repeat;
    transition: all 0.35s ease;
}

.filter-heading.closed:after {
    transform: rotate(180deg);
}

.filter-panel {
    max-height: 348px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.filter.closed .filter-panel {
    max-height: 0;
}

.filter ul.facets-list {
    padding: 0;
    margin: 0 0 20px 0;
    overflow: auto;
    max-height: 280px;
    padding-right: 4px;
}

.filter ul.facets-list li {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    cursor: pointer;
}

.filter ul.facets-list li input {
    margin: 4px 8px 0 0;
    padding: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter ul.facets-list li label {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #003247;
    letter-spacing: -0.1px;
    line-height: 24px;
    font-weight: 400;
    cursor: pointer;
    word-break: break-word;
}

.filter ul.facets-list li.facet-item:nth-child(5)~li.facet-item {
    display: none;
}

.filter ul.facets-list.open li.facet-item {
    display: flex !important;
}

.filter ul.facets-list.open .facet-toggle-closed,
.filter ul.facets-list .facet-toggle-open {
    display: block;
}

.filter ul.facets-list.open .facet-toggle-open,
.filter ul.facets-list .facet-toggle-closed {
    display: none;
}

.filter ul.facets-list .facet-toggle-closed a,
.filter ul.facets-list .facet-toggle-open a {
    display: block;
}



/*************** filter search ***************/

.filter-search {
    position: relative;
    margin-bottom: 8px;
}

.filter-search input {
    border-radius: 4px;
    width: 100%;
    min-width: 100%;
    height: 40px;
    padding: 0 24px 0 48px;
    background: #fff url(/assets/icons/icon-search-darkgrey-24.svg) 12px center no-repeat;
    border: 2px solid #c7d2d9;
    transition: 150ms ease all;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 14px;
}

.filter-search input::-webkit-input-placeholder,
.filter-search input:-ms-input-placeholder {
    color: #9aabb3;
}

.filter-search input::-moz-placeholder,
.filter-search input:-moz-placeholder {
    opacity: 1;
    color: #9aabb3;
}


.filter-search input:hover {
    border-color: #9aabb3;
    box-shadow: 0 6px 12px 0 rgba(22, 60, 92, 0.1);
}

.filter-search input:focus,
.filter-search input:active,
.filter-search input:focus-visible {
    color: #003247;
    border-color: #0092d2 !important;
    outline: none;
    background-image: url(/assets/icons/icon-search-blue-24.svg);
    box-shadow: 0 6px 18px 0 rgba(22, 60, 92, 0.14);
}

/* custom clear 'X' button */
.filter-search button.clear-icon {
    visibility: hidden;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent url(/assets/icons/icon-cancel-blue-16.svg) center center no-repeat;
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
}

.filter-search input:not(:placeholder-shown)~button.clear-icon {
    visibility: visible;
}




/*************** active filter pills ***************/

.active-facets {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.active-facets.show-mobile {
    display: none;
}

.active-facets .active-facet {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-right: 8px;
}

.active-facet-title {
    font-size: 14px;
    color: #003247;
    letter-spacing: -0.1px;
    line-height: 18px;
    font-weight: 700;
    margin: 4px 4px 4px 0;
}

.active-facet-item {
    margin: 4px 4px 4px 0;
    padding: 7px 32px 7px 12px;
    background: #0092D2;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: #FFFFFF;
    letter-spacing: -0.1px;
    line-height: 18px;
    text-align: left;
    font-weight: 700;
    position: relative;
    cursor: pointer;
}

.active-facet-item:after {
    display: block;
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    right: 12px;
    top: 50%;
    margin-top: -6px;
    background: transparent url(/assets/icons/icon-cancel-white-12.svg) center center no-repeat;
}

.active-facet-item:hover {
    background-color: #007BB8;
}

a.clear-all-active-facets {
    display: inline-block;
    font-size: 12px;
    letter-spacing: -0.15px;
    line-height: 24px;
    cursor: pointer;
}


/************************************ PRODUCTS *******************************/

.products-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}