@view-transition { navigation: auto; }

.bot-swipe-nav {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  pointer-events: none;
}

.bot-swipe-arrow {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid #626a59;
  border-radius: 50%;
  color: #eff3e9;
  background: #161a17f5;
  box-shadow: 0 5px 18px #0005;
  text-decoration: none;
  pointer-events: auto;
  touch-action: manipulation;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.bot-swipe-arrow:hover, .bot-swipe-arrow:focus-visible {
  color: #d8ff84;
  border-color: #c8ff32;
  background: #252c1e;
}

.bot-swipe-arrow:focus-visible { outline: 2px solid #c8ff32; outline-offset: 2px; }
.bot-swipe-name { display: none; }
.bot-design .product-layout > .product-art { touch-action: pan-y pinch-zoom; }

@media (min-width: 1110px) {
  .bot-swipe-nav { position: fixed; padding: 0 clamp(8px, 1.3vw, 25px); }
  .bot-swipe-arrow { width: 48px; height: 48px; }
  .bot-swipe-name {
    display: block;
    position: absolute;
    left: calc(100% + 10px);
    min-width: max-content;
    max-width: 250px;
    padding: 8px 10px;
    background: #161a17;
    border: 1px solid #434e3c;
    border-radius: 7px;
    color: #eff3e9;
    font-size: .81rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease, visibility 150ms ease;
  }
  [data-bot-step="next"] .bot-swipe-name { left: auto; right: calc(100% + 10px); }
  .bot-swipe-arrow:is(:hover, :focus-visible) .bot-swipe-name { opacity: 1; visibility: visible; }
}

html[data-bot-swipe="next"] { --bot-enter-x: 27%; --bot-exit-x: -19%; }
html[data-bot-swipe="previous"] { --bot-enter-x: -27%; --bot-exit-x: 19%; }

html[data-bot-swipe]::view-transition-old(root) {
  animation: bot-swipe-out 360ms cubic-bezier(.25,.75,.24,1) both;
}

html[data-bot-swipe]::view-transition-new(root) {
  animation: bot-swipe-in 420ms cubic-bezier(.18,.78,.23,1) both;
}

.bot-swipe-enter { animation: bot-swipe-in 420ms cubic-bezier(.18,.78,.23,1) both; }
@keyframes bot-swipe-out { to { transform: translateX(var(--bot-exit-x)); opacity: .2; } }
@keyframes bot-swipe-in { from { transform: translateX(var(--bot-enter-x)); opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .bot-swipe-enter, html[data-bot-swipe]::view-transition-old(root), html[data-bot-swipe]::view-transition-new(root) { animation: none; }
  .bot-swipe-arrow, .bot-swipe-name { transition: none; }
}
