.voucher-demo {
  width: 100%;
  min-width: 0;
  max-width: 620px;
}

.voucher-toggle:not([hidden]) {
  display: flex;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px;
  border: 1px solid #dce4e9;
  border-radius: 999px;
  background: #eef3f6;
}

.voucher-toggle button {
  min-width: 76px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #536773;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.voucher-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(4, 39, 63, .12);
}

.voucher-toggle button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.voucher-demo.is-ready .voucher-stage {
  display: grid;
  overflow: hidden;
}

.voucher-demo.is-ready .voucher-slide {
  grid-area: 1 / 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  transition: transform .55s ease, opacity .55s ease;
}

.voucher-demo.is-ready .voucher-slide[data-position="before"] {
  transform: translateX(-105%);
  opacity: 0;
  pointer-events: none;
}

.voucher-demo.is-ready .voucher-slide[data-position="after"] {
  transform: translateX(105%);
  opacity: 0;
  pointer-events: none;
}

.voucher-demo.is-ready .voucher-slide[data-position="current"] {
  transform: translateX(0);
  opacity: 1;
}

.voucher-demo.is-ready .mock-rows {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.voucher-demo .cja-row {
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  padding: 8px 0;
}

.cja-entry {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.cja-service {
  color: #263a48;
  font-weight: 700;
  line-height: 1.3;
}

.cja-description {
  color: #6e7d87;
  font-size: 11px;
  line-height: 1.3;
}

.voucher-slide .progress.is-complete span {
  width: 100%;
}

.voucher-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (pointer: coarse) {
  .voucher-toggle button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .voucher-demo.is-ready .voucher-slide { transition: none; }
}
