﻿.post-sidebar-ad .ad-slider {
    padding: .65rem;
}

.post-sidebar-ad .ad-slider:not(.is-initialized) {
    visibility: visible;
}

.post-sidebar-ad .ad-slider:not(.is-initialized) .splide__list {
    display: block;
}

.post-sidebar-ad .ad-slider:not(.is-initialized) .splide__slide:not(:first-child) {
    display: none;
}

.post-sidebar-ad .ad-slider .post-sidebar-ad-link {
    padding: 0;
}

.post-sidebar-ad .ad-slider .splide__track {
    border-radius: 8px;
    transition: height var(--ad-slider-height-duration, 400ms) ease;
}

@media (prefers-reduced-motion: reduce) {
    .post-sidebar-ad .ad-slider .splide__track {
        transition: none;
    }
}

.post-sidebar-ad .ad-slider .splide__arrow {
    width: 46px;
    height: 46px;
    background: #fff;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
}

.post-sidebar-ad .ad-slider .splide__arrow svg {
    width: 18px;
    height: 18px;
    fill: #131e49;
}

.post-sidebar-ad .ad-slider .splide__arrow--prev { left: 24px; }
.post-sidebar-ad .ad-slider .splide__arrow--next { right: 24px; }

.post-sidebar-ad .ad-slider .splide__pagination {
    position: absolute;
    right: auto;
    bottom: 16px;
    left: 50%;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
    max-width: calc(100% - 44px);
    padding: 6px 12px;
    margin: 0;
    border-radius: 999px;
    background: #fff;
    transform: translateX(-50%);
}

.post-sidebar-ad .ad-slider .splide__pagination__page {
    display: grid;
    place-items: center;
    width: 22px;
    height: 18px;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #c3c8d3;
    opacity: 1;
    transform: none;
}

.post-sidebar-ad .ad-slider .splide__pagination__page::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    opacity: 1;
}

.post-sidebar-ad .ad-slider .splide__pagination__page.is-active::before { opacity: 1; }
.post-sidebar-ad .ad-slider .splide__pagination__page.is-active { color: var(--frontend-primary, #0d6efd); }

.post-sidebar-ad .ad-slider .splide__arrow:focus-visible,
.post-sidebar-ad .ad-slider .splide__pagination__page:focus-visible {
    outline: 2px solid var(--frontend-primary, #0d6efd);
    outline-offset: 2px;
}
