.hapf-footer-fallback {
    clear: both;
    width: 100%;
}
.hapf-filter-form {
    border: 1px solid #d9dee5;
    background: #fff;
    padding: 20px;
    margin: 0 0 28px;
    clear: both;
}
.hapf-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.hapf-filter-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}
.hapf-reset-link {
    font-size: 14px;
    text-decoration: underline;
}
.hapf-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.hapf-filter-group {
    border: 1px solid #d9dee5;
    background: #f8f9fb;
    padding: 0;
}
.hapf-filter-group summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 14px;
    background: #f1f3f5;
    list-style-position: inside;
}
.hapf-filter-options {
    padding: 10px 14px 14px;
    max-height: 230px;
    overflow: auto;
}
.hapf-option {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 8px;
    align-items: start;
    margin: 0 0 9px;
    font-size: 14px;
    line-height: 1.35;
}
.hapf-option input {
    margin-top: 2px;
}
.hapf-option-label {
    overflow-wrap: anywhere;
}
.hapf-count {
    min-width: 24px;
    text-align: center;
    border-radius: 999px;
    background: #e6ebf2;
    padding: 1px 7px;
    font-size: 12px;
}
.hapf-empty {
    margin: 0;
    color: #667085;
    font-size: 14px;
}
.hapf-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
.hapf-apply-button,
.hapf-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 4px;
    border: 1px solid #052b4f;
    text-decoration: none;
    font-weight: 700;
}
.hapf-apply-button {
    background: #052b4f;
    color: #fff;
}
.hapf-reset-button {
    background: #fff;
    color: #052b4f;
}
@media (max-width: 1100px) {
    .hapf-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 800px) {
    .hapf-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .hapf-filter-form {
        padding: 15px;
    }
    .hapf-filter-header,
    .hapf-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .hapf-filter-grid {
        grid-template-columns: 1fr;
    }
}
