.gsec-equipment-catalog-layout {
    display: grid;
    grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.gsec-equipment-filters__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.gsec-filter-panel {
    width: 100%;
}

.gsec-filter-panel__toggle {
    display: none;
}

.gsec-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gsec-filter__label {
    font-size: 0.85rem;
    font-weight: 600;
}

.gsec-filter__select,
.gsec-filter__input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;

    font: inherit;
    font-size: 1rem;
    line-height: 1.3;

    padding: 0.65rem 0.75rem;
}

.gsec-equipment-filters__field select:focus,
.gsec-equipment-filters__field input:focus {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.gsec-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.gsec-equipment-filters__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;

    padding: 0.75rem 0;
    margin-top: 1rem;

    background: var(--wp--preset--color--paper);
    border-top: 1px solid var(--wp--preset--color--border-neutral);
}

.gsec-equipment-filters__actions::before {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 100%;

    height: 2.5rem;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--wp--preset--color--paper)
    );

    pointer-events: none;
}

.gsec-hidden-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gsec-clear-filters {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;

    text-align: center;
    text-decoration: none;
    font-weight: 600;

    border: 1px solid currentColor;
    box-sizing: border-box;
}

.gsec-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.35rem 0.65rem;

    background: var(--wp--preset--color--mist);
    border: 1px solid var(--wp--preset--color--border-neutral);
    border-radius: 999px;

    color: var(--wp--preset--color--ink);
    text-decoration: none;

    font-size: 0.82rem;
    line-height: 1.2;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.gsec-filter-pill:hover {
    background: color-mix(
        in srgb,
        var(--wp--preset--color--mist) 85%,
        var(--wp--preset--color--paper)
    );

    border-color: var(--wp--preset--color--border-neutral);
}

.gsec-filter-pill:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.gsec-filter-pill__label {
    font-weight: 600;
}

.gsec-filter-pill__value {
    font-weight: 400;
}

.gsec-filter-pill__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 0.15rem;

    font-size: 1rem;
    line-height: 1;
    opacity: 0.65;
}

.gsec-filter-pill:hover .gsec-filter-pill__remove {
    opacity: 1;
}

@media (max-width: 768px) {
    .gs-equipment-catalog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .gsec-equipment-catalog-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gsec-equipment-filters__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gsec-filter-panel {
        border: 1px solid var(--wp--preset--color--border-neutral);
        border-radius: 6px;
        background: var(--wp--preset--color--paper);
    }

    .gsec-filter-panel__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0.9rem 1rem;

        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }

    .gsec-filter-panel__toggle::-webkit-details-marker {
        display: none;
    }

    .gsec-filter-panel__toggle::after {
        content: "+";
        font-size: 1.25rem;
        line-height: 1;
    }

    .gsec-filter-panel[open] .gsec-filter-panel__toggle::after {
        content: "−";
    }

    .gsec-equipment-filters {
        padding: 0 1rem 1rem;
    }

    .gsec-filter__select,
    .gsec-filter__input {
        font-size: 16px;
    }

    .gsec-filter__select option {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .gsec-equipment-filters__fields {
        grid-template-columns: 1fr;
    }
}