/* ── Wrapper ─────────────────────────────────────────────── */
.ccwc-carousel-wrap {
    position: relative;
    width: 100%;
}

/* ── Swiper override — match Elementor defaults ──────────── */
.ccwc-carousel-wrap .swiper {
    width: 100%;
    overflow: hidden;
}

.ccwc-carousel-wrap .swiper-wrapper {
    align-items: stretch;
}

.ccwc-carousel-wrap .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

/* ── Slide inner ─────────────────────────────────────────── */
.ccwc-slide-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 0;
}

.ccwc-slide-inner a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

/* ── Image ───────────────────────────────────────────────── */
.ccwc-slide-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    line-height: 0;
}

/* ── Title bar — sits at the very bottom of the image ───── */
.ccwc-slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    padding: 10px 16px;
    text-align: center;
    margin: 0;
    word-break: break-word;
    transition: background 0.2s ease;
}

/* ── Arrows ──────────────────────────────────────────────── */
.ccwc-prev,
.ccwc-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.ccwc-prev { left: 10px; }
.ccwc-next { right: 10px; }

.ccwc-prev:hover,
.ccwc-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.ccwc-prev svg,
.ccwc-next svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    display: block;
    flex-shrink: 0;
}

/* ── Pagination dots ─────────────────────────────────────── */
.ccwc-pagination {
    position: relative !important;
    margin-top: 12px;
    text-align: center;
    line-height: 1;
}

.ccwc-pagination.swiper-pagination-bullets {
    bottom: auto;
}

.ccwc-pagination .swiper-pagination-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin: 0 4px;
    opacity: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ccwc-pagination .swiper-pagination-bullet-active {
    background: #000000;
}

/* ── RTL support ─────────────────────────────────────────── */
.ccwc-carousel-wrap[dir="rtl"] .ccwc-prev { left: auto; right: 10px; }
.ccwc-carousel-wrap[dir="rtl"] .ccwc-next { right: auto; left: 10px; }

/* ── Elementor editor — remove pointer-events block ─────── */
.elementor-editor-active .ccwc-prev,
.elementor-editor-active .ccwc-next {
    pointer-events: none;
}
