.tab-carousel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    min-height: 0;
    width: 100%;
}

.tab-carousel__stack {
    display: grid;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.tab-carousel__panel {
    grid-area: 1 / 1;
    min-width: 0;
    min-height: 0;
}

.tab-carousel__panel:not(.is-active) {
    visibility: hidden;
    pointer-events: none;
}

.tab-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    align-self: center;
    padding: 11px 18px;
    background: var(--white-fixed);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: 0 4px 14px -6px var(--shadow-inset), 0 1px 0 color-mix(in srgb, var(--white-fixed) 88%, transparent) inset;
}

.tab-carousel__dot {
    position: relative;
    box-sizing: border-box;
    display: block;
    height: 10px;
    width: 10px;
    padding: 0;
    margin: 0;
    background: var(--gray-400);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.tab-carousel__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
}

.tab-carousel__dot:hover:not(.is-active) {
    background: var(--accent);
}

.tab-carousel__dot.is-active {
    width: 34px;
    background: var(--gray-400);
}

.tab-carousel__dot.is-active::after {
    opacity: 1;
    -webkit-animation: tab-carousel-progress-fill var(--tab-carousel-autoplay-duration, 6s) linear forwards;
            animation: tab-carousel-progress-fill var(--tab-carousel-autoplay-duration, 6s) linear forwards;
}

.tab-carousel__dots:hover .tab-carousel__dot.is-active::after {
    -webkit-animation-play-state: paused;
            animation-play-state: paused;
}

.tab-carousel__dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@-webkit-keyframes tab-carousel-progress-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes tab-carousel-progress-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

