

/* FuersBaby Suche: Ergebnisaktion rechts, unabhängig vom ausgeblendeten Anwenden-Button. */
.fb-search-toolbar:has(.fb-search-filters[open]) > .fb-search-filter-actions:has([data-fb-apply][hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
}
.fb-search-filter-actions > a.fb-search-total-footer {
    display: inline-flex;
    grid-column: -2 / -1;
    justify-self: end;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 260px;
    max-width: 100%;
    min-height: 52px;
    padding: 13px 24px;
    margin: 0;
    border: 1px solid #df9fbc;
    border-radius: 999px;
    background: linear-gradient(115deg, #f8ccde, #cdeafa);
    box-shadow: 0 5px 16px #ba789b33;
    color: #83304f;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.fb-search-filter-actions > a.fb-search-total-footer:hover {
    border-color: #be5b89;
    box-shadow: 0 5px 18px #ba789b55;
}
.fb-search-filter-actions > a.fb-search-total-footer:focus-visible {
    outline: 3px solid #17628a;
    outline-offset: 3px;
}
.fb-search-toolbar:has(.fb-search-filters[open]) > .fb-search-filter-actions:has([data-fb-apply][hidden]) > [data-fb-reset] {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}
@media (min-width: 761px) and (max-width: 1050px) {
    .fb-search-filter-actions > a.fb-search-total-footer {
        min-width: 200px;
    }
}
@media (max-width: 760px) {
    .fb-search-toolbar:has(.fb-search-filters[open]) > .fb-search-filter-actions:has([data-fb-apply][hidden]) {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .fb-search-filter-actions > a.fb-search-total-footer {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        width: 100%;
        padding: 13px 16px;
        font-size: 1rem;
    }
    .fb-search-toolbar:has(.fb-search-filters[open]) > .fb-search-filter-actions:has([data-fb-apply][hidden]) > [data-fb-reset] {
        grid-row: 2;
    }
}


/* Suchfilter: Fokusrahmen innerhalb der Felder, ohne Abschneiden am Scrollbereich. */
#fb-product-search .fb-search-filter-grid select:focus,
#fb-product-search .fb-search-filter-grid input:not([type="range"]):focus {
    outline: 3px solid #173654 !important;
    outline-offset: -3px !important;
    box-shadow: none !important;
}

/* Einmal Sortieren öffnen: alle Optionen direkt als zugängliche Schaltflächen. */
#fb-product-search .fb-search-sort-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    min-width: 260px;
    max-width: calc(100vw - 40px);
    max-height: min(360px, calc(100dvh - var(--fb-search-sticky-top, 100px) - 100px));
    overflow-y: auto;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #edcad9;
    border-radius: 14px;
    background: #fff9fc;
    box-shadow: 0 6px 18px #17365620;
}
#fb-product-search .fb-search-sort-options > button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #173654;
    font: inherit;
    text-align: left;
    line-height: 1.35;
    cursor: pointer;
}
#fb-product-search .fb-search-sort-options > button::before {
    content: '';
    flex: 0 0 1em;
}
#fb-product-search .fb-search-sort-options > button[aria-pressed="true"] {
    background: #f9dce9;
    color: #83304f;
    font-weight: 800;
}
#fb-product-search .fb-search-sort-options > button[aria-pressed="true"]::before { content: '\2713'; }
#fb-product-search .fb-search-sort-options > button:hover { background: #e6f3fc; }
#fb-product-search .fb-search-sort-options > button:focus-visible {
    outline: 3px solid #173654 !important;
    outline-offset: -3px !important;
    box-shadow: none !important;
}


/* Verfügbare Treffer ohne Einschränkungen, oberhalb der Produktkarten. */
#fb-product-search .fb-search-filter-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
    padding: 18px 20px;
    border: 1px solid #9bc9a6;
    border-radius: 18px;
    background: #eaf6ed;
    color: #254d34;
}
#fb-product-search .fb-search-filter-info[hidden] { display: none !important; }
#fb-product-search .fb-search-filter-info strong {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
}
#fb-product-search .fb-search-filter-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    border: 1px solid #6c9d78;
    border-radius: 50%;
    background: #fff;
    color: #315d3e;
    font: 800 16px/1 Georgia, serif;
}
#fb-product-search .fb-search-filter-info p { margin: 6px 0 0; line-height: 1.5; }
#fb-product-search .fb-search-filter-info-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #dc98b7;
    border-radius: 999px;
    background: #fce3ee;
    color: #83304f;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
@media(max-width:760px) {
    #fb-product-search .fb-search-filter-info { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px; }
    #fb-product-search .fb-search-filter-info-all { width: 100%; }
}
