.ys-pdp-purchase-steps {
  position: relative;
  margin: 16px 0 0;
  border-radius: 8px;
  background: #1c2022;
  color: #fff;
}

.ys-pdp-step-window {
  overflow: hidden;
  border-radius: inherit;
}

.ys-pdp-step-track {
  display: flex;
}

.ys-pdp-step-group {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 8px 18px;
  list-style: none;
}

.ys-pdp-step-group li {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  justify-content: center;
  align-items: center;
  padding-inline: clamp(24px, 3.2vw, 48px);
}

.ys-pdp-step-group li::after {
  position: absolute;
  right: -7px;
  width: 14px;
  height: 12px;
  background: url("/image/catalog/yarmarka/home/hero/process-arrow.svg") center / contain no-repeat;
  content: '';
  pointer-events: none;
}

.ys-pdp-step-group li:last-child::after { display: none; }

.ys-pdp-step,
.ys-pdp-step-motion {
  border: 0;
  background: transparent;
  color: inherit;
}

.ys-pdp-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ys-pdp-step span { color: #e6c6a6; }
.ys-pdp-step:hover,
.ys-pdp-step[aria-expanded="true"] { color: #e6c6a6; }

.ys-pdp-step:focus-visible,
.ys-pdp-step-motion:focus-visible {
  border-radius: 3px;
  outline: 1px solid #e6c6a6;
  outline-offset: -2px;
}

.ys-pdp-step-motion {
  position: absolute;
  top: 10px;
  right: 6px;
  width: 42px;
  height: 44px;
}

.ys-pdp-step-motion span {
  display: inline-block;
  width: 9px;
  height: 12px;
  border-inline: 2px solid currentColor;
}

.ys-pdp-step-motion[data-paused] span {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
}

.ys-pdp-step-note {
  margin: 0 18px;
  padding: 12px 0 15px;
  border-top: 1px solid #62605c;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.ys-pdp-purchase-steps.is-moving .ys-pdp-step-window {
  margin-right: 51px;
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.ys-pdp-purchase-steps.is-moving .ys-pdp-step-group {
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
  padding-inline: 0;
  animation: ys-pdp-step-loop 22s linear infinite;
}

.ys-pdp-purchase-steps.is-moving .ys-pdp-step-group li:last-child::after { display: block; }

.ys-pdp-purchase-steps.is-paused .ys-pdp-step-group,
.ys-pdp-purchase-steps.has-note .ys-pdp-step-group { animation-play-state: paused; }

.ys-pdp-purchase-steps.is-moving:has(.ys-pdp-step-group:not([aria-hidden]) .ys-pdp-step:focus-visible) .ys-pdp-step-group {
  animation: none;
}

.ys-pdp-purchase-steps.is-moving:has(.ys-pdp-step-group:not([aria-hidden]) .ys-pdp-step:focus-visible) .ys-pdp-step-group[aria-hidden] {
  display: none;
}

.ys-pdp-purchase-steps.is-moving:has(.ys-pdp-step-group:not([aria-hidden]) .ys-pdp-step:focus-visible) .ys-pdp-step-window {
  overflow-x: auto;
  mask-image: none;
}

@media (hover: hover) {
  .ys-pdp-purchase-steps:hover .ys-pdp-step-group { animation-play-state: paused; }
}

@keyframes ys-pdp-step-loop {
  to { transform: translateX(-100%); }
}

.ys-pdp-media .pvb-thumbs { overscroll-behavior-y: auto; }

@media (min-width: 992px) {
  .ys-pdp-layout > .ys-pdp-summary {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
  }

  .ys-pdp-media .pvb-thumbs-shell {
    /* Seven 64px thumbnails, six 10px gaps, rail padding and the down control. */
    height: min(var(--pvb-stage-height), calc(7 * 64px + 6 * 10px + 4px + 38px));
    padding-bottom: 38px;
  }

  .ys-pdp-summary > .ys-pdp-decision-links { margin-bottom: 16px; }
  .ys-pdp-summary > .ys-pdp-purchase-steps { margin-top: auto; }
}

@media (max-width: 767px) {
  .ys-pdp-step { font-size: 12px; }
  .ys-pdp-purchase-steps.is-moving .ys-pdp-step-group { animation-duration: 17s; }
}

@media (prefers-reduced-motion: reduce) {
  .ys-pdp-purchase-steps .ys-pdp-step-group { animation: none; }
}
