.pis-swipe {
    position: relative;
}

.pis-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pis-track::-webkit-scrollbar {
    display: none;
}

.pis-track.pis-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

.pis-track img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    display: block;
    /* A desktop mouse drag must scroll the track, never select the image or start the
       browser's native image/link drag ghost. */
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.pis-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    /* The pill itself must not swallow clicks meant for the product link; the dots
       themselves re-enable pointer events below. */
    pointer-events: none;
    z-index: 2;
}

.pis-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: auto;
    cursor: pointer;
}

.pis-dot.active {
    background: #fff;
}

.pis-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}

.pis-badge:hover,
.pis-badge:focus {
    text-decoration: none;
    opacity: 0.85;
}

.pis-badge--pill {
    border-radius: 999px;
}

.pis-badge--square {
    border-radius: 2px;
}
