/* v8 — compact carousel, combined preview/stop badge and final interaction polish. */
.npt-ypp .npt-ypp__carousel-shell { position: relative; min-width: 0; }
.npt-ypp:not(.npt-ypp--carousel) .npt-ypp__carousel-arrow,
.npt-ypp:not(.npt-ypp--carousel) .npt-ypp__carousel-dots { display: none !important; }
.npt-ypp:not(.npt-ypp--carousel) .npt-ypp__carousel-viewport { overflow: visible; }

.npt-ypp--carousel .npt-ypp__carousel-shell {
  padding: 0 0 25px;
}
.npt-ypp--carousel .npt-ypp__carousel-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding-top: 18px;
  box-sizing: border-box;
}
.npt-ypp--carousel .npt-ypp__carousel-viewport::-webkit-scrollbar { display: none; }
.npt-ypp--carousel,
.npt-ypp--carousel .npt-ypp__carousel-viewport,
.npt-ypp--carousel .npt-ypp__tracks,
.npt-ypp--carousel .npt-ypp__carousel-column { overflow-anchor: none; }
.npt-ypp--carousel.npt-ypp--horizontal-scroll .npt-ypp__carousel-viewport { scroll-snap-type: x proximity; }
.npt-ypp--carousel .npt-ypp__tracks {
  display: flex !important;
  grid-template: none !important;
  grid-auto-flow: unset !important;
  gap: var(--npt-ypp-carousel-gap, 16px) !important;
  width: 100%;
  background: none !important;
  background-image: none !important;
}
.npt-ypp--carousel .npt-ypp__carousel-column {
  position: relative;
  z-index: 1;
  flex: 0 0 calc((100% - (var(--npt-ypp-slides-desktop, 3) - 1) * var(--npt-ypp-carousel-gap, 16px)) / var(--npt-ypp-slides-desktop, 3));
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--npt-ypp-row-gap, 8px);
  scroll-snap-align: start;
}
.npt-ypp--carousel .npt-ypp__carousel-column:has(.npt-ypp__track.is-active),
.npt-ypp--carousel .npt-ypp__carousel-column.has-active-track { z-index: 5; }
.npt-ypp--carousel .npt-ypp__carousel-column + .npt-ypp__carousel-column {
  position: relative;
}
.npt-ypp--carousel .npt-ypp__carousel-column + .npt-ypp__carousel-column::before {
  content: "";
  position: absolute;
  left: calc(var(--npt-ypp-carousel-gap, 16px) / -2);
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--npt-ypp-divider, rgba(255,255,255,.08));
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.npt-ypp--carousel .npt-ypp__carousel-column.is-page-start::before { display: none !important; }
.npt-ypp--carousel .npt-ypp__track { width: 100%; min-width: 0; }
.npt-ypp--carousel .npt-ypp__carousel-column.is-page-end .npt-ypp__track {
  width: calc(100% - 18px);
}
.npt-ypp .npt-ypp__carousel-arrow {
  position: absolute;
  z-index: 30;
  top: 50%;
  width: var(--npt-ypp-carousel-arrow-size, 42px);
  height: var(--npt-ypp-carousel-arrow-size, 42px);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--npt-ypp-carousel-arrow-color, #fff);
  background: var(--npt-ypp-carousel-arrow-bg, #171717);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transform: translateY(calc(-50% - 12px));
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, opacity .18s ease, transform .18s ease;
}
.npt-ypp--carousel .npt-ypp__carousel-arrow { display: none !important; }
.npt-ypp .npt-ypp__carousel-arrow::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.npt-ypp .npt-ypp__carousel-arrow--prev { left: 0; }
.npt-ypp .npt-ypp__carousel-arrow--next { right: 0; }
.npt-ypp .npt-ypp__carousel-arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.npt-ypp .npt-ypp__carousel-arrow--next::before { transform: translate(-65%, -50%) rotate(45deg); }
.npt-ypp .npt-ypp__carousel-arrow:hover:not(:disabled) { color: #000; background: var(--npt-ypp-accent); transform: translateY(calc(-50% - 12px)) scale(1.06); }
.npt-ypp .npt-ypp__carousel-arrow:disabled { opacity: .22; cursor: default; }
.npt-ypp .npt-ypp__carousel-dots {
  position: absolute;
  left: 50%; bottom: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}
.npt-ypp .npt-ypp__carousel-dot {
  width: 7px; height: 7px;
  min-width: 0;
  margin: 0; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--npt-ypp-carousel-dot, #666);
  cursor: pointer;
  transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}
.npt-ypp .npt-ypp__carousel-dot.is-active { width: 22px; border-radius: 5px; background: var(--npt-ypp-carousel-dot-active, var(--npt-ypp-accent)); }

.npt-ypp .npt-ypp__notice {
  display: inline-flex !important;
  align-items: stretch;
  padding: 0 !important;
  overflow: hidden;
  pointer-events: auto;
  height: 28px !important;
  line-height: 1 !important;
  right: -14px !important;
  transform: translateY(-50%) !important;
}
.npt-ypp .npt-ypp__notice-text { display: inline-flex; align-items: center; height: 100%; padding: 0 9px; line-height: 1 !important; }
.npt-ypp .npt-ypp__stop {
  position: relative;
  display: grid !important;
  place-items: center !important;
  width: 29px;
  min-width: 29px;
  max-width: 29px;
  flex: 0 0 29px;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch;
  margin: 0; padding: 0;
  border: 0 !important;
  border-left: 1px solid color-mix(in srgb, var(--npt-ypp-notice-color, var(--npt-ypp-accent)) 25%, transparent) !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: var(--npt-ypp-notice-color, var(--npt-ypp-accent));
  background: var(--npt-ypp-notice-surface, #101010) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1 !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  transform: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  transition: color .16s ease, background-color .16s ease;
}
.npt-ypp .npt-ypp__stop::before,
.npt-ypp .npt-ypp__stop::after {
  content: "";
  position: absolute;
  left: 50% !important; top: 50% !important;
  width: 10px; height: 1.5px;
  border-radius: 2px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: currentColor !important;
  transform-origin: 50% 50%;
}
.npt-ypp .npt-ypp__stop::before { transform: translate(-50%,-50%) rotate(45deg) !important; }
.npt-ypp .npt-ypp__stop::after { transform: translate(-50%,-50%) rotate(-45deg) !important; }
.npt-ypp .npt-ypp__stop:hover { color: #000; background: var(--npt-ypp-accent) !important; }

@media (max-width: 1024px) {
  .npt-ypp--carousel .npt-ypp__carousel-column { flex-basis: calc((100% - (var(--npt-ypp-slides-tablet, 2) - 1) * var(--npt-ypp-carousel-gap, 16px)) / var(--npt-ypp-slides-tablet, 2)); }
}
@media (max-width: 767px) {
  .npt-ypp--carousel .npt-ypp__carousel-shell { padding-inline: 0; }
  .npt-ypp--carousel .npt-ypp__carousel-column { flex-basis: calc((100% - (var(--npt-ypp-slides-mobile, 1) - 1) * var(--npt-ypp-carousel-gap, 16px)) / var(--npt-ypp-slides-mobile, 1)); }
  .npt-ypp .npt-ypp__carousel-arrow { display: none !important; }
}
