.archive {
  .post-filter-search-input {
    display: none;
  }
}

.post-filter-controls {
    width: 100%;
    margin-bottom: 40px;
}

.post-filter-search {
    width: 100%;
    margin-bottom: 16px;
}

.post-filter-search-input {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 18px;

    border: 1px solid var(--wp--preset--color--accent-5);
    border-radius: 8px;

    background: transparent;
    color: var(--wp--preset--color--accent-2);

    font: inherit;
    box-sizing: border-box;

    font-style: italic;
    font-weight: 300;
}

.post-filter-search-input::placeholder {
    color: var(--wp--preset--color--accent-2);
    opacity: 1;
}

.post-filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.post-filter-field {
    position: relative;
}

.post-filter-select {
    display: block;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0 40px 0 18px;

    border: 1px solid var(--wp--preset--color--accent-5);
    border-radius: 8px;

    background-color: transparent;
    color: var(--wp--preset--color--accent-2);

    font: inherit;
    box-sizing: border-box;
    cursor: pointer;

    font-style: italic;
    font-weight: 300;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.post-filter-select::placeholder {
    color: var(--wp--preset--color--accent-2) !important;
}


/*
 * ARROW
 */

.post-filter-field::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 18px;

    width: 0;
    height: 0;

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--wp--preset--color--accent-5);

    transform: translateY(-50%);

    pointer-events: none;
    z-index: 2;
}

/*
 * Button category
 */

 .post-filter-category-buttons {
    grid-column: 1 / -1;

    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    width: 100%;
    cursor: pointer;
}

 .post-filter-category-buttons {
     display: flex;
     flex-wrap: wrap;
     width: 100%;
     gap: 16px;
 }

 .post-filter-category-buttons .post-filter-button {
     flex: 0 0 auto;
 }

/*
 * RESET
 */

.post-filter-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 16px;
}

.post-filter-reset {
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    color: var(--wp--preset--color--contrast);
    border: 0;
    background: transparent;
}


/*
 * RESPONSIVE
 */

@media (max-width: 768px) {

    .post-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 480px) {

    .post-filter-row {
        grid-template-columns: 1fr;
    }

}
