.osbs-slider {
  position: relative;
  width: 100%;
}

.osbs-viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
}

.osbs-viewport:active {
  cursor: grabbing;
}

.osbs-track {
  display: flex;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.osbs-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.osbs-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.osbs-link {
  display: block;
  width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
}

/* Anti drag/selection */
.osbs-slider, .osbs-slider * {
  -webkit-user-select: none;
  user-select: none;
}

.osbs-slide img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.osbs-slider,
.osbs-dots .osbs-dot,
.osbs-nav {
  -webkit-tap-highlight-color: transparent;
}

/* Setas */
.osbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,0.35);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 1;
  font-size: 26px;
}

.osbs-nav span {
  display: block;
  transform: translateY(-1px);
}

.osbs-prev { left: 12px; }
.osbs-next { right: 12px; }

@media (max-width: 767px) {
  .osbs-nav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}

/* Barrinhas */
.osbs-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;

  width: min(120px, calc(100% - 48px));
}

/* Barrinhas + progresso */
.osbs-dot {
  flex: 1 1 0;
  height: 4px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;

  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.28) !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.osbs-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95) !important;

  transform: scaleX(0);
  transform-origin: left;
}

.osbs-dot.is-active::after {
  transform: scaleX(1);
}

.osbs-dot.is-active.is-anim::after {
  transform: scaleX(0);
  animation: osbsFill var(--osbs-progress-ms, 4000ms) linear forwards;
}

.osbs-slider.osbs-paused .osbs-dot.is-active.is-anim::after {
  animation-play-state: paused;
}

.osbs-dot:focus,
.osbs-dot:focus-visible,
.osbs-dot:active {
  outline: none !important;
  box-shadow: none !important;
}

@keyframes osbsFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 767px) {
  .osbs-dots {
    bottom: 10px;
    width: min(120px, calc(100% - 32px));
  }
  .osbs-dot { height: 5px; }
}
