/* CWSwipe (assets/js/cw-swipe.js): reusable swipe row + round prev/next arrows + dots.
   Vertical page scroll always passes through: pan-y only, and no vertical overflow of the row itself. */
.cws-track { touch-action: pan-y; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-user-select: none; user-select: none; }
.cws-track.cws-free, .cws-track.cws-drag { scroll-snap-type: none !important; }
.cws-track.cws-drag { scroll-behavior: auto; }
.cws-track img, .cws-track video { -webkit-user-drag: none; }

.cws-arrow {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; padding: 0; margin: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background-color: #8A4F84; background-image: linear-gradient(135deg, #EC0911 0%, #0189F7 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 6px 18px -6px rgba(1, 137, 247, .8), 0 4px 16px -8px rgba(236, 9, 17, .85);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: opacity .25s ease, transform .25s cubic-bezier(.22, .61, .36, 1);
}
.cws-arrow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 18px rgba(236, 9, 17, .55), 0 0 26px rgba(1, 137, 247, .6); opacity: 0; transition: opacity .3s ease;
}
.cws-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.cws-arrow:focus { outline: none; }
.cws-arrow:focus-visible { outline: 2px solid #5FE6FF; outline-offset: 3px; }
.cws-arrow:focus-visible::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cws-arrow:hover::before { opacity: 1; } }
.cws-arrow:active { transform: scale(.94); }
.cws-arrow[aria-disabled="true"] { opacity: .32; cursor: default; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; }
.cws-arrow[aria-disabled="true"]::before { opacity: 0; }
.cws-arrow[aria-disabled="true"]:active { transform: none; }

.cws-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px; }
.cws-dot {
  position: relative; width: 28px; height: 28px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cws-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px;
  background: rgba(207, 233, 245, .35); transition: width .3s cubic-bezier(.22, .61, .36, 1), margin .3s cubic-bezier(.22, .61, .36, 1), background-color .3s ease;
}
.cws-dot[aria-current="true"]::before {
  width: 22px; margin-left: -11px; background-color: #8A4F84; background-image: linear-gradient(90deg, #EC0911, #0189F7);
  box-shadow: 0 0 8px rgba(1, 137, 247, .7), 0 0 6px rgba(236, 9, 17, .5);
}
.cws-dot:focus { outline: none; }
.cws-dot:focus-visible::before { outline: 2px solid #5FE6FF; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .cws-arrow, .cws-arrow::before, .cws-dot::before { transition: none; }
  .cws-arrow:active { transform: none; }
}
