/* Tooto Simple Splide Widget Styles */

.tooto-simple-splide-widget {
    visibility: hidden;
    position: relative; /* Context for absolute arrows */
    overflow: visible; /* Ensure pagination below is visible */
}

.tooto-simple-splide-widget.is-active,
.tooto-simple-splide-widget.is-initialized {
    visibility: visible;
}

.tooto-simple-splide-widget__image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tooto-simple-splide-widget__image {
        border-radius: 8px;
    }
}

.tooto-simple-splide-widget__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Custom Pagination */
.tooto-simple-splide-widget .splide__pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    transform: none;
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    gap: 6px;
    margin-top: 20px; /* Default spacing */
    z-index: 10;
    pointer-events: auto;
}

.tooto-simple-splide-widget .splide__pagination__page {
    width: 8px;
    height: 8px;
    background: #D9D9D9;
    border-radius: 4px;
    border: none;
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
    padding: 0; /* Reset padding */
}

.tooto-simple-splide-widget .splide__pagination__page.is-active {
    width: 24px !important;
    background: #C1272D;
    border-radius: 4px !important;
    transform: none;
    opacity: 1;
}

/* Arrows Customization */
.tooto-simple-splide-widget .splide__arrow {
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
}
.tooto-simple-splide-widget .splide__arrow:hover{
    background-color: #C1272D !important;
}

.tooto-simple-splide-widget .splide__arrow svg {
    fill: #000;
    width: 20px;
    height: 24px;
    transform: none; /* Prevent Splide from rotating the icon (fixes issue where prev arrow points right) */
}

.tooto-simple-splide-widget .splide__arrow--prev svg {
    transform: none !important; /* Force reset for prev arrow specifically */
}


@media (max-width: 768px) {
    .tooto-simple-splide-widget .splide__pagination__page.is-active {
        width: 12px !important;
    }
    .tooto-simple-splide-widget .splide__arrow {
        display: none;
    }
    .tooto-simple-splide-widget .splide__pagination {
        gap: 2px;
    }
}