#cik-partners-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 80px; /* miejsce na filtr */
}

#cik-partners-carousel .cik-partners-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: hidden;
    align-items: center;
    justify-content: flex-start;
    min-height: 60px;
}

#cik-partners-carousel .cik-partners-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

#cik-partners-carousel .cik-partners-wrapper a img, #cik-partners-carousel .cik-partners-wrapper picture {
    max-height: 50px;
    width: auto;
    filter: grayscale(1) invert(1) contrast(0);
    transition: transform 0.3s ease, filter 0.3s ease;
}

#cik-partners-carousel .cik-partners-wrapper a:hover img, #cik-partners-carousel .cik-partners-wrapper a:hover picture {
    filter: grayscale(0) invert(0) contrast(1);
    transform: scale(1.1);
}

#cik-partners-carousel #cik-partner-filter {
    display: block;
    width: 200px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* pokaż filtr przy hover lub gdy brak partnerów */
#cik-partners-carousel:hover #cik-partner-filter,
#cik-partners-carousel.has-no-partners #cik-partner-filter {
    opacity: 0.8;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    #cik-partners-carousel .cik-partners-wrapper a { flex: 0 0 calc(33.33% - 20px); }
}
@media (max-width: 768px) {
    #cik-partners-carousel .cik-partners-wrapper a { flex: 0 0 calc(50% - 20px); }
}
@media (min-width: 1025px) {
    #cik-partners-carousel .cik-partners-wrapper a { flex: 0 0 calc(16.66% - 20px); }
}

/* komunikat brak partnerów */
#cik-partners-carousel .cik-no-partners {
    text-align: center;
    width: 100%;
    font-size: 16px;
    color: #666;
    margin-top: 40px;
    font-family: sans-serif;
    display: none; /* ukryte dopóki nie wykryje braku partnerów */
}