.downloads-header,
.download-entry {
    display: grid;
    grid-template-columns: 40px minmax(350px, 3fr) 0.8fr 80px 120px 80px;
    gap: 20px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.downloads-header {
    font-weight: bold;
    background-color: #f5f5f5;
}

.download-entry:hover {
    background-color: #f9f9f9;
}

.col-icon {
    text-align: center;
    width: 40px;
}

.col-title {
    /* font-weight: 500; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    font-size: 0.9em;
}

.col-lang, .col-type, .col-size {
    text-align: center;
    font-size: 0.9em;
}

.col-actions {
    width: 40px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.download-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.download-button {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #888;
}

.download-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.download-button svg {
    fill: currentColor;
}

.col-actions a {
    text-decoration: none;
    color: #0073aa;
}

.col-actions a:hover {
    color: #00a0d2;
}

.filter-selection .facetwp-selections ul li {
    background: #f5f5f5;
    border: 0px solid #eee;
    padding: 1rem;
    border-radius: 0px;
    margin-bottom: 1rem;
}

.facetwp-selections ul {
    margin: 20px 0;
}

.facetwp-selections li {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 8px 10px;
    list-style-type: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.facetwp-selections .facetwp-selection-value {
    color: var(--wpex-link-color, var(--wpex-accent))
}

.facetwp-selections .facetwp-selection-value:hover {
    text-decoration: underline;
}

.facetwp-selections .facetwp-selection-label + .facetwp-selection-value {
    margin-left: 4px;
}

.facetwp-selections .facetwp-selection-value:last-child {
    margin-right: 0;
}

/* Produkte Filter Styles */
.produkte-filter-container {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.produkte-filter-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.produkte-filter {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.produkte-filter:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 2px rgba(0, 115, 170, 0.8);
}

/* FacetWP Kompatibilitätsstile */
.facetwp-facet-produkte_filter select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.facetwp-facet-produkte_filter select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 2px rgba(0, 115, 170, 0.8);
}

/* Debug-Bereich Styles */
.produkte-filter-debug {
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.produkte-filter-debug h3 {
    margin-top: 0;
    color: #333;
}

.produkte-filter-debug pre {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    overflow: auto;
    max-height: 200px;
}

.produkte-filter-debug ul {
    margin-left: 20px;
}

.produkte-filter-debug .button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.produkte-filter-debug .button:hover {
    background: #005177;
}

/* Related Products und Downloads Styles */
.related-products,
.related-downloads {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.related-products h3,
.related-downloads h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.related-products ul,
.related-downloads ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-products li,
.related-downloads li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.related-products li:before,
.related-downloads li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0073aa;
}

.related-products a,
.related-downloads a {
    color: #0073aa;
    text-decoration: none;
}

.related-products a:hover,
.related-downloads a:hover {
    text-decoration: underline;
}

/* Download Cart Styles */
.add-to-download-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--wpex-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-to-download-cart:hover {
    background-color: var(--wpex-accent-darker, #0056b3);
}

.add-to-download-cart.added {
    background-color: #28a745;
}

.add-to-download-cart.added svg {
    display: inline-block;
}

.add-to-download-cart svg {
    fill: #fff;
    display: none;
}

.add-to-download-cart.compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wpex-accent);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    margin-top: 8px;
    padding: 0;
}

.add-to-download-cart.compact:hover {
    background-color: var(--wpex-accent-darker, #0056b3);
}

.add-to-download-cart.compact.added {
    background-color: #28a745;
}

.add-to-download-cart.compact svg.plus-icon {
    display: block;
    fill: #fff;
}

.add-to-download-cart.compact svg.check-icon {
    display: none;
    fill: #fff;
}

.add-to-download-cart.compact.added svg.plus-icon {
    display: none;
}

.add-to-download-cart.compact.added svg.check-icon {
    display: block;
}

/* Download-Button in der Liste */
.download-cart-add {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #888;
}

.download-cart-add:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.download-cart-add .add-icon {
    display: flex;
}

.download-cart-add .check-icon,
.download-cart-add .remove-icon {
    display: none;
}

/* Wenn im Warenkorb, zeige Check-Icon */
.download-cart-add.in-cart .add-icon {
    display: none;
}

.download-cart-add.in-cart .check-icon {
    display: flex;
    color: var(--wpex-accent);
}

/* Bei Hover über In-Cart-Button, zeige Remove-Icon */
.download-cart-add.in-cart:hover .check-icon {
    display: none;
}

.download-cart-add.in-cart:hover .remove-icon {
    display: flex;
    color: #e30613;
}

.download-cart-add svg {
    fill: currentColor;
}

/* Toggle-Button */
#download-cart-toggle {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #888888; /* Grau als Standardfarbe */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease, right 0.3s ease;
    width: 50px;
    height: 50px;
    z-index: 10000;
}

#download-cart-toggle svg {
    fill: #ffffff; /* Weißes Icon */
    transition: fill 0.3s ease;
}

#download-cart-toggle.has-items {
    background-color: var(--wpex-accent); /* Gelb wenn Items vorhanden */
}

#download-cart-toggle.has-items svg {
    fill: #ffffff; /* Weißes Icon wenn Items vorhanden */
}

#download-cart-toggle .sticky-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e30613; /* Hensel Rot für das Sticky-Icon */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    z-index: 10;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wenn der Warenkorb Items enthält, zeige das Sticky-Icon an */
#download-cart-toggle.has-items .sticky-icon {
    display: flex !important;
}

#download-cart-count {
    position: relative;
    font-size: 12px;
    font-weight: bold;
}

/* Warenkorb-Container */
#download-cart-container {
    position: fixed;
    top: 50%;
    right: -450px;
    width: 450px;
    max-height: 90vh;
    transform: translateY(-50%);
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    border-radius: 8px 0 0 8px;
    display: flex;
    flex-direction: column;
}

#download-cart-container.active {
    right: 0;
}

#download-cart-container.active ~ #download-cart-toggle {
    right: 455px;
}

#download-cart-content {
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#download-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    flex: 0 0 auto;
}

#download-cart-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.03), rgba(0,0,0,0.1), rgba(0,0,0,0.03));
}

#download-cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

#download-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

#download-cart-items {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#download-cart-list {
    overflow-y: auto;
    flex: 1 1 auto;
}

#download-cart-actions {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    position: relative;
    flex: 0 0 auto;
}

#download-cart-actions:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.03), rgba(0,0,0,0.1), rgba(0,0,0,0.03));
}

#download-cart-select-all-container {
    margin-bottom: 15px;
}

#download-cart-select-all-container label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-left: 24px;
    font-weight: 600;
}

#download-cart-select-all-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    left: 0;
}

/* Unchecked state */
#download-cart-select-all-container label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* Hover state */
#download-cart-select-all-container label:hover:before {
    border-color: rgb(244, 158, 0);
}

/* Checked (active) state - background */
#download-cart-select-all-container input:checked ~ label:before,
#download-cart-select-all-container input:checked + span:before,
#download-cart-select-all-container input:checked + label:before {
    background-color: rgb(244, 158, 0);
    border-color: rgb(244, 158, 0);
}

/* Checked (active) state - checkmark */
#download-cart-select-all-container input:checked ~ label:after,
#download-cart-select-all-container input:checked + span:after,
#download-cart-select-all-container input:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-65%) rotate(45deg);
    display: block;
}

/* Focus state */
#download-cart-select-all-container input:focus ~ label:before,
#download-cart-select-all-container input:focus + label:before {
    box-shadow: 0 0 0 3px rgba(244, 158, 0, 0.3);
}

/* Active (being clicked) state */
#download-cart-select-all-container label:active:before,
#download-cart-select-all-container input:active ~ label:before,
#download-cart-select-all-container input:active + label:before {
    background-color: rgba(244, 158, 0, 0.6);
}

#download-cart-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
    flex: 0 0 auto;
}

#download-cart-buttons .primary-button {
    grid-column: span 2;
}

#download-cart-button, 
#download-selected-button, 
#copy-cart-link-button, 
#send-cart-email-button, 
#clear-cart-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

#download-cart-button {
    grid-column: span 2;
}

.primary-button {
    background-color: var(--wpex-accent);
    color: #fff;
}

.primary-button:hover {
    background-color: var(--wpex-accent-darker, #0056b3);
}

.primary-button svg {
    fill: #fff;
}

.secondary-button {
    background-color: #e9ecef;
    color: #333;
}

.secondary-button:hover {
    background-color: #dae0e5;
}

.secondary-button svg {
    fill: #333;
}

.danger-button {
    background-color: #dc3545;
    color: #fff;
}

.danger-button:hover {
    background-color: #c82333;
}

.danger-button svg {
    fill: #fff;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#download-cart-empty-message {
    text-align: center;
    color: #666;
    padding: 20px 0;
}

.download-cart-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.download-cart-item-checkbox-container {
    margin-right: 10px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling für Checkboxen im Mini-Cart */
.download-cart-item-checkbox,
#download-cart-select-all {
    position: absolute;
    opacity: 0;
}

.download-cart-item-checkbox + label {
    position: relative;
    cursor: pointer;
    padding: 0;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.download-cart-item-checkbox + label:before,
.select-all-label .checkbox-custom:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 3px;
}

.download-cart-item-checkbox:checked + label:before,
#download-cart-select-all:checked ~ .checkbox-custom:before {
    background-color: rgb(244 158 0);
    border-color: transparent;
}

.download-cart-item-checkbox:checked + label:after,
#download-cart-select-all:checked ~ .checkbox-custom:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-65%) rotate(45deg);
    display: block;
}

.download-cart-item-info {
    flex: 1;
    min-width: 0; /* Verhindert Überlauf bei langen Titeln */
}

.download-cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-word; /* Bricht lange Wörter um */
}

.download-cart-item-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Styling für die "Alle auswählen" Checkbox */
.select-all-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
}

.select-all-label .checkbox-custom {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.download-cart-item-meta span {
    display: inline-flex;
    align-items: center;
}

.download-cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.download-cart-item-remove svg {
    fill: #dc3545;
}

.download-cart-item:last-child {
    margin-bottom: 10px;
}

.col-type {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-size {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-type {
    font-weight: 500;
}

.file-size {
    color: #666;
    font-size: 0.9em;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    #download-cart-container {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }
    
    #download-cart-container.active ~ #download-cart-toggle {
        right: 20px;
    }
    
    #download-cart-buttons {
        grid-template-columns: 1fr;
    }
    
    #download-cart-buttons .primary-button {
        grid-column: span 1;
    }
    
    .downloads-header,
    .download-entry {
        grid-template-columns: 40px minmax(250px, 1fr) 80px 80px;
        gap: 10px;
    }
    
    .col-desc {
        display: none;
    }
    
    .col-type {
        display: none;
    }
}

@media (max-width: 480px) {
    .downloads-header,
    .download-entry {
        grid-template-columns: 40px 1fr 80px;
    }
    
    .col-lang {
        display: none;
    }
}

/* Filter-Bereich Styling */
.vcex-heading-plain .vcex-heading-inner {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.vcex-heading-plain .vcex-heading-inner:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #f7a600; /* Primärfarbe anpassen */
}
.fs-wrap {
    width: 100% !important;
    border-radius: 6px !important;
}
.fs-wrap .fs-label-wrap { 
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: default;
    padding: .5rem !important;
    border-radius: 5px !important;

}

/* Neues Arrow Icon */
.fs-arrow {
    display: block !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-30%) !important;
    width: auto !important;
    height: auto !important;
    content: none !important;
    transition: transform 0.3s ease !important;
    filter: brightness(1) !important;
    opacity: 1 !important;
    border: none !important;
    background: none !important;
}

.fs-arrow:before {
    content: "\f078" !important; /* Font-Awesome chevron-down code */
    font-family: "ticons" !important;
    color: #999999 !important;
    font-size: 10px !important;
    display: block !important;
}

.fs-open .fs-arrow:before {
    transform: rotate(180deg) !important;
    display: block !important;
}

.facetwp-facet {
    margin-bottom: 10px !important;
}
.facetwp-facet input.facetwp-search, .facetwp-facet input.facetwp-location {
    margin: 0;
    padding-right: 30px;
    min-width: 278px !important;
 }
 
/* Neues Suchicon - Radikaler Ansatz */
.facetwp-icon {
    display: none !important;
}

.facetwp-facet-suche .facetwp-input-wrap:after {
    content: "\f002" !important; /* ticon-search */
    font-family: "ticons" !important;
    color: #999999 !important;
    font-size: 14px !important;
}

/* Styles für die Erfolgsmeldung */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    font-size: 14px;
    max-width: 300px;
    text-align: center;
}

/* Styles für Download-Cart Benachrichtigungen */
.download-cart-notification {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.5s ease, transform 0.5s ease;
    background-color: white;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Benachrichtigungsbereich außerhalb des Warenkorbs */
#download-cart-notification-area {
    position: fixed;
    right: 80px; /* Platz für Toggle-Button + Abstand */
    bottom: 20px;
    z-index: 1000;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Erlaubt Klicks auf darunter liegende Elemente */
}

#download-cart-notification-area > * {
    pointer-events: auto; /* Erlaubt Interaktionen mit den Benachrichtigungen selbst */
}

#download-cart-notification-area:empty {
    display: none;
}

/* Optimierung des Layouts im Warenkorb */
#download-cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#download-cart-items {
    flex: 1 1 auto;
    overflow-y: auto;
}

#download-cart-actions {
    flex-shrink: 0;
}

.download-cart-notification.success {
    border-left-color: #4CAF50;
}

.download-cart-notification.error {
    border-left-color: #F44336;
}

.download-cart-notification.info {
    border-left-color: #2196F3;
}

.download-cart-notification.warning {
    border-left-color: #FF9800;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-icon.success {
    background-color: #4CAF50;
    color: white;
}

.notification-icon.error {
    background-color: #F44336;
    color: white;
}

.notification-icon.info {
    background-color: #2196F3;
    color: white;
}

.notification-icon.warning {
    background-color: #FF9800;
    color: white;
}

.notification-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.download-cart-notification.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Styles für das Modal */
.download-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.download-cart-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

.download-cart-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.download-cart-modal p {
    margin-bottom: 20px;
    color: #666;
}

.download-cart-modal .link-container {
    margin-bottom: 20px;
}

.download-cart-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.download-cart-modal .modal-buttons {
    display: flex;
    justify-content: flex-end;
}

.download-cart-modal .close-modal {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-cart-modal .close-modal:hover {
    background-color: #005d8c;
}

.facetwp-facet-suche .facetwp-input-wrap:after {
    display: block !important;
    line-height: 1 !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.facetwp-facet-suche .facetwp-input-wrap {
    position: relative !important;
}

.fs-wrap.multiple .fs-option.selected .fs-checkbox i {
    background-color: rgb(244 158 0) !important;
    border-color: transparent;
}

.fs-wrap.multiple .fs-option.selected .fs-checkbox i:before {
    content: "\f00c" !important; /* ticon-check */
    font-family: "ticons" !important;
    color: white !important;
    font-size: 8px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
    line-height: 1 !important;
}
.facetwp-facet-loadmore {
   text-align: center !important; 
}
.facetwp-load-more {
    margin: 3rem auto !important;
    display: inline-block;
    padding: 10px 20px !important;
    background-color: #f7a600 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 5px !important;
}

.downloads-container .no-downloads, .facet-instructions {
    text-align: center;
    padding: 20px;
    color: var(--wpex-accent);
}
.fs-wrap .fs-label-wrap {font-weight:600;}
.facetwp-facet input.facetwp-search, .facetwp-facet input.facetwp-location {padding-left: 11px; font-weight: 600; }

.facetwp-template { 
    display: none;
  }
  .facetwp-template.facets-selected { 
    display: block; 
  }
  .facet-instructions {
    padding: 20px;
    font-weight: bold;
    text-align: center;
  }
  
  /* Pager-Elemente standardmäßig ausblenden und nur bei aktiver Filterung anzeigen */
  .facetwp-type-pager.hidden-pager {
    display: none !important;
  }
  .facetwp-facet-count {
    background: #f5f5f5;
    padding: 10px 15px 10px 15px;
  }

.facetwp-facet-suche .facetwp-input-wrap {
    width: 100%;
}
.facetwp-facet input.facetwp-search, .facetwp-facet input.facetwp-location {
    width: 100%;
}
@media screen and (min-width: 768px) {
    .sticky_filter {
        position: sticky;
        top: 240px;
    }
}   
