/* CS Brand Carousel v1.1.0 — codesmiths.gr */

.cs-bc-wrapper {
    width: 100%;
    font-family: inherit;
    padding: 32px 0;
    box-sizing: border-box;
}

/* ── Header ── */
.cs-bc-header {
    text-align: center;
    margin-bottom: 24px;
}

.cs-bc-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
    line-height: 1.2;
}

.cs-bc-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ── Slider shell ── */
.cs-bc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* ── Arrows — ultra-high specificity to beat site-wide button resets ── */
html body .cs-bc-wrapper .cs-bc-slider-wrap button.cs-bc-arrow,
html body .cs-bc-wrapper button.cs-bc-arrow {
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border: 1.5px solid #b8bec7 !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6b7280 !important;
    padding: 0 !important;
    z-index: 2 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    text-transform: none !important;
    font-size: inherit !important;
    letter-spacing: 0 !important;
    transform: none !important;
    transition: border-color 0.2s, color 0.2s !important;
}

html body .cs-bc-wrapper .cs-bc-slider-wrap button.cs-bc-arrow:hover,
html body .cs-bc-wrapper button.cs-bc-arrow:hover {
    border-color: #4b5563 !important;
    color: #1f2937 !important;
    background: rgba(0,0,0,.04) !important;
    background-color: rgba(0,0,0,.04) !important;
    background-image: none !important;
    transform: none !important;
    box-shadow: none !important;
}

html body .cs-bc-wrapper button.cs-bc-arrow[style],
html body .cs-bc-wrapper button.cs-bc-arrow:focus {
    outline: none !important;
    box-shadow: none !important;
}

html body .cs-bc-wrapper button.cs-bc-arrow svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    stroke-width: 1.8 !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* Custom image arrows */
html body .cs-bc-wrapper button.cs-bc-arrow.cs-bc-arrow--img {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

html body .cs-bc-wrapper button.cs-bc-arrow.cs-bc-arrow--img:hover {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}

html body .cs-bc-wrapper button.cs-bc-arrow.cs-bc-arrow--img img {
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
}

/* ── Track ── */
.cs-bc-track-outer {
    flex: 1 1 0;
    overflow: hidden;
}

.cs-bc-track {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Slides / Cards ── */
.cs-bc-slide {
    flex: 0 0 var(--cs-bc-slide-width, 23%);
}

.cs-bc-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    padding: 20px 16px;
    min-height: 90px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    text-decoration: none;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.cs-bc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
    border-color: #c8c8c8;
}

.cs-bc-card img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.cs-bc-name-fallback {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ── Error ── */
.cs-bc-error {
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .cs-bc-slide { flex: 0 0 var(--cs-bc-slide-width-tablet, 30%); }
}
@media (max-width: 768px) {
    .cs-bc-slide { flex: 0 0 46%; }
}
@media (max-width: 480px) {
    .cs-bc-slide { flex: 0 0 70%; }
    html body .cs-bc-wrapper button.cs-bc-arrow {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }
    html body .cs-bc-wrapper button.cs-bc-arrow svg {
        width: 14px !important;
        height: 14px !important;
    }
}
