/**
* 2007-2022 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2022 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.category-collection__title {
    margin: 0.75rem 0;
}
.category-collection__criterions {
    display: flex;
    flex-wrap: wrap;
}
.category-collection__criterion {
    font-size: .565rem;
    line-height: 1;
    border-radius: 1rem;
    border: 1px solid #eee;
    padding: .375rem .5rem;
    margin: 0 .25rem .25rem 0;
}
.collections-criterions {
    display:block;
    margin-bottom: 1.5rem;
}
.collections-criterions__button {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    padding: 0.825rem 2rem;
    font-size: .75rem;
    line-height: 1;
    border-radius: 0.125rem;
    position: relative;
    width: max-content !important;
    border: 1px solid #efefef;
}
.collections-criterions__button:not(.clear){
    background-color: transparent;
    color: #333;
}
.btn.collections-criterions__button:not(.clear):hover {
    background-color: #efefef;
}
.btn.collections-criterions__button--selected {
    color: #58a13a;
    border-color: #58a13a;
    order: -1;
}
.btn.collections-criterions__button--selected:hover {
    color: #58a13a;
    background: rgb(88 161 58 / 10%);
}
.btn.collections-criterions__button--selected::before {
    display:inline-block;
    transform: translateX(-.75rem);
    content: '\2715';
}

.category-collection__new::before {
    content:'Neu!';
    position: absolute;
    top:0;
    z-index: 1;
    color: #fff;
    background-color: #e50000;
    border-color: #e50000;
    box-shadow: 0 0.125rem 0.5rem rgb(229 0 0 / 20%);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.33333rem;
    border-radius: 0.125rem;
}

.criterions.container.visible--mobile > .collections-criterions__group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.criterions.container.visible--desktop > .collections-criterions__group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    /*max-height: 41px;*/
    max-height: 100vh; 
    overflow: hidden;
    transition: max-height .4s ease-in-out;
}

/*.criterions.container.visible--desktop > .collections-criterions__group.expanded {
    max-height: 100vh; 
}*/

.criterions.container.visible--mobile > .collections-criterion {
    font-size: .925rem;
}

.criterions.container.visible--desktop > .toggle-btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.toggle-btn:not(.toggle-hidden) {
    cursor: pointer;
}

.toggle-btn > svg {
    transition: transform .4s ease-in-out;
}

.toggle-btn.expanded >svg {
    transform: rotate(180deg);
}

.toggle-btn.toggle-hidden > svg,
.criterions.container.visible--mobile > .toggle-btn > svg{
    display: none;
}

.collections-criterions__button.js-criterion.clear {
    order: -2;
}

.criterions.container.visible--desktop {
    padding-bottom: .5rem;
}

.criterions.container.visible--mobile {
    padding: unset;
    margin: unset;
}

.colection-cover > .category-collection__thumbnail:not(:first-child) {
    display: none;
}

button.btn.category-collection__criterion {
    text-transform: none;
    font-weight: 500;
}

button.btn.category-collection__criterion:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #e50000;
    border-color: #e50000;
    box-shadow: 0 .125rem .5rem rgba(229, 0, 0, .25);
}

button.btn.category-collection__criterion:not(:disabled):not(.disabled).active:hover, button.btn.category-collection__criterion:not(:disabled):not(.disabled).active:focus {
    background-color: #c00;
    border-color: #c00;
    box-shadow: 0 .25rem 1rem rgba(229, 0, 0, .3);
}
