.ppro-y26-c-filters {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.ppro-y26-c-filters__panel {
    display: flex;
    flex: 3 1 0;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .ppro-y26-c-filters--stacked {
        flex-wrap: wrap;
    }

    .ppro-y26-c-filters--stacked .ppro-y26-c-filters__field--search {
        order: -1;
        flex-basis: 100%;
    }
}

.ppro-y26-c-filters__panel-header,
.ppro-y26-c-filters__results,
.ppro-y26-c-filters__toggle {
    display: none;
}

.ppro-y26-c-filters__field {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.ppro-y26-c-filters__panel-header {
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ppro-y26-c-filters__panel-title {
    font-family: var(--ppro-font-display);
    font-weight: var(--ppro-font-weight-display);
    font-size: 1.5rem;
    line-height: 2rem;
}

.ppro-y26-c-filters__reset {
    margin-right: auto;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    font-family: var(--ppro-font-body);
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: underline;
}

.ppro-y26-c-filters__close {
    display: inline-flex;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
}

.ppro-y26-c-filters__close-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.ppro-y26-c-filters__results-button {
    width: 100%;
}

.ppro-y26-c-filters__toggle {
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    background: var(--ppro-color-lime);
    border: 1px solid var(--ppro-foreground);
    border-radius: 0.125rem;
}

.ppro-y26-c-filters__toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ppro-foreground);
}

.ppro-y26-c-filters__toggle--active::after {
    content: "";
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--ppro-foreground);
    border-radius: 50%;
}

.ppro-y26-c-filters__info {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.ppro-y26-c-filters__info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--ppro-foreground);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.ppro-y26-c-filters__info-toggle:hover {
    opacity: 1;
}

.ppro-y26-c-filters__info-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.ppro-y26-c-filters__info-popup {
    position: absolute;
    z-index: 60;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: 22rem;
    max-width: calc(100vw - 2rem);
    padding: 1.5rem;
    background: var(--ppro-color-white);
    border: 1px solid var(--ppro-foreground);
    border-radius: 0;
    color: var(--ppro-foreground);
    text-align: left;
}

.ppro-y26-c-filters__info-popup::before {
    content: "";
    position: absolute;
    inset: calc(-0.5px - 0.15625rem);
    pointer-events: none;
    background-image:
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem),
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem),
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem),
        radial-gradient(circle at center, currentColor 0.15625rem, transparent 0.15625rem);
    background-position:
        top left,
        top right,
        bottom left,
        bottom right;
    background-size: 0.3125rem 0.3125rem;
    background-repeat: no-repeat;
}

.ppro-y26-c-filters__info-popup--below {
    top: calc(100% + 0.75rem);
    bottom: auto;
}

.ppro-y26-c-filters__info-dismiss {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    padding: 0;
    background: none;
    border: none;
    color: var(--ppro-foreground);
    opacity: 0.6;
}

.ppro-y26-c-filters__info-dismiss:hover {
    opacity: 1;
}

.ppro-y26-c-filters__info-dismiss-icon {
    width: 1rem;
    height: 1rem;
}

.ppro-y26-c-filters__info-title {
    margin: 0 1.5rem 0 0;
    font-family: var(--ppro-font-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
}

.ppro-y26-c-filters__info-text {
    margin: 0.5rem 0 0;
    font-family: var(--ppro-font-body);
    font-weight: var(--ppro-font-weight-body);
    font-size: 0.875rem;
    line-height: 1.375rem;
    opacity: 0.8;
}

.ppro-y26-c-filters__info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.ppro-y26-c-filters__info-link-icon {
    width: 0.75rem;
    height: 0.75rem;
}

@media (max-width: 1023px) {
    .ppro-y26-c-filters__panel {
        position: fixed;
        z-index: 100;
        right: 0;
        bottom: 0;
        left: 0;
        flex-direction: column;
        gap: 1rem;
        max-height: 85vh;
        padding: 1.5rem;
        overflow: auto;
        background: var(--ppro-color-white);
        border-top: 1px solid var(--ppro-foreground);
        transform: translateY(100%);
        visibility: hidden;
        transition:
            transform 0.4s ease,
            visibility 0.4s ease;
    }

    .ppro-y26-c-filters__panel--open {
        transform: translateY(0);
        visibility: visible;
    }

    .ppro-y26-c-filters__panel-header,
    .ppro-y26-c-filters__results,
    .ppro-y26-c-filters__toggle {
        display: flex;
    }

    .ppro-y26-c-filters__field--select {
        flex: 0 0 auto;
    }

    .ppro-y26-c-filters__results {
        margin-top: auto;
    }

    .ppro-y26-c-filters__info {
        order: 1;
    }

    .ppro-y26-c-filters__info-popup {
        top: calc(100% + 0.75rem);
        bottom: auto;
    }
}
