.closed {
    display: none;
}
.open {
    display: block;
}
.point-down > svg{
    transform: rotate(180deg);
}
.filter-button{
    display: flex;
    background-color: #D9D9D9;
    border-radius: 5px;
    padding: 0.8rem;
    border: none;
    align-items: center;
}
.no-bottom-border-radius{
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.filter-icon{
    margin-right: 0.8rem;
}
.category-counter{
    padding: 0.25rem 0.4rem;
    background-color: #2E3030;
    color: white;
    margin-left: 0.8rem;
    border-radius: 5px;
}
.arrow-icon{
    margin-left: 0.8rem;
}
.category-fieldset{
    padding: 0;
}
.category-fieldset>legend{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.anchor{
    position: relative;
    margin-bottom: 1.5rem;
    word-break: break-word;
}
#button-content{
    position: absolute;
    top:0;
    background-color: white;
    z-index: 1;
}
#category-list{
    max-height: 400px;
    overflow-y: scroll;
    margin: 0;
    border: solid 3px #D9D9D9;
}
#category-list>li{
    display: flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
}
#category-list>li>label{
    margin-bottom: 0;
    width: 100%;
    margin-top: 2px;
}
#category-list>li:has(label:hover, input:hover){
   background-color: #e1e1e1;
}
.category-checkbox{
    height: 24px;
    width: 24px;
    margin-right: 0.8rem;
    accent-color: #FEB003;
}
.buttons-container{
    border: solid 3px #D9D9D9;
    display: flex;
    justify-content: space-evenly;
    padding: 0.5rem;
    gap: 0.5rem;
    border-top: none;
}
.buttons-container>button{
    width: 50%;
    border-radius: 4px;
    padding: 0.5rem;
}
.uncheck-button{
    background-color: white;
    border: 1px solid black;
    margin-right: 0;
}
.save-button{
    border: none;
}
.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.inputField{
    position: relative;
    display: flex;
    border-radius: 0.2rem;
    color: black;
    border: 2px solid #e1e1e1;
    box-sizing: border-box;
    height: fit-content;
}
.inputField input[type="text"]{
    border: none;
    height: calc(100% - 4px);
}

.flex{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex>label{
    height: fit-content;
    align-self: center;
    margin-bottom: 0;
    margin-right: 0.3rem;
}

  .clearFieldButton {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #d9d9d9;
    border-radius: 50%;
    padding: 0.7rem;
    width: 1rem;
    height: 1rem;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
}

.inputField:has(input:not(.has-value)) .clearFieldButton {
    display: none;
}

.inputField:has(.clearFieldButton) input.has-value {
    padding-right: 2rem;
}

.clearFieldButton:before, .clearFieldButton:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 0.7rem;
    background-color: #000000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.clearFieldButton:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}