/* Isolated to the standalone page; these wrappers have no layout on other devices. */
.ipad-arrow-stage-frame,
.ipad-arrow-stage {
  display: contents;
}

.ipad-arrow-navigation[hidden] { display: none; }

.ipad-arrow-instruction { display: none; }

/* A normal-flow tail below the button; compensate its added height to preserve column centering. */
html.ipad-arrows-active #zo-werkt-het[data-ipad-arrow-step="0"] [data-stacked-card]:nth-child(1) .ipad-arrow-instruction,
html.ipad-arrows-active #zo-werkt-het[data-ipad-arrow-step="1"] [data-stacked-card]:nth-child(2) .ipad-arrow-instruction {
  display: block;
  position: static;
  flex: none;
  max-width: 100%;
  margin: 22px 0 -38px;
  color: #2f7fb8;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  pointer-events: none;
}

html.ipad-arrows-active #zo-werkt-het {
  min-height: 0;
  padding: 0;
  touch-action: auto;
}

html.ipad-arrows-active #zo-werkt-het .stacked-process-sticky {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 0;
  overflow: hidden;
}

html.ipad-arrows-active .ipad-arrow-stage-frame {
  display: block;
  width: 100%;
  height: var(--ipad-arrow-stage-height, auto);
  flex: none;
}

html.ipad-arrows-active .ipad-arrow-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Leave room for the original cards' upward stacked layers below the fixed title. */
  gap: 56px;
  width: 100%;
  transform: scale(var(--ipad-arrow-stage-scale, 1));
  transform-origin: top center;
}

html.ipad-arrows-active #zo-werkt-het .stacked-process-badge {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
  margin: 0;
  /* Arrow steps retain the title; the desktop renderer may still update its variables. */
  transform: none;
  opacity: 1;
  transition: none;
}

html.ipad-arrows-active #zo-werkt-het .stacked-process-deck {
  position: relative;
  display: block;
  width: min(92vw, var(--public-process-max-width));
  height: clamp(520px, 60vh, var(--public-process-card-max-height));
  flex: none;
  margin: 0;
}

html.ipad-arrows-active #zo-werkt-het .stacked-process-card {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: clamp(32px, 3.5vw, 44px);
  border-radius: 36px;
  /* Desktop/fine-pointer responsive rules must not flatten the active arrow component. */
  opacity: var(--stacked-card-opacity, 0) !important;
  transform: translate3d(0, var(--stacked-card-y, 560px), 0)
    rotate(var(--stacked-card-hover-rotation, var(--stacked-card-natural-rotation, var(--stacked-card-rest-rotation))))
    scale(var(--stacked-card-scale, 0.985)) !important;
  pointer-events: none;
}

html.ipad-arrows-active #zo-werkt-het .card-grid {
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 3.5vw, 44px);
  height: 100%;
}

html.ipad-arrows-active #zo-werkt-het .card-media {
  display: flex;
  height: 100%;
}

html.ipad-arrows-active #zo-werkt-het .stacked-process-card.is-active {
  pointer-events: auto;
}

html.ipad-arrows-active .ipad-arrow-navigation {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: none;
  height: 48px;
  margin-top: 14px;
}

.ipad-arrow-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2f7fb8;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ipad-arrow-button svg { width: 20px; height: 20px; fill: currentColor; }
.ipad-arrow-button:disabled { opacity: .28; cursor: default; }
.ipad-arrow-button:focus-visible { outline: 2px solid #2f7fb8; outline-offset: 2px; }
.ipad-arrow-button:not(:disabled):active { background: rgba(47,127,184,.1); }

.ipad-arrow-indicators {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipad-arrow-indicators li {
  width: 9px;
  height: 9px;
  flex: none;
  border: 1px solid rgba(47,127,184,.45);
  border-radius: 50%;
  background: transparent;
}

.ipad-arrow-indicators [aria-current="step"] {
  width: 11px;
  height: 11px;
  border-color: #2f7fb8;
  background: #2f7fb8;
}

.ipad-arrow-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 1200px) and (max-width: 1400px) and (orientation: landscape) {
  html.ipad-arrows-active #zo-werkt-het .stacked-process-deck {
    width: min(calc(100vw - 96px), 1100px);
    height: clamp(560px, 62vh, 640px);
  }
  html.ipad-arrows-active #zo-werkt-het .stacked-process-card {
    padding: clamp(40px, 3.5vw, 48px);
  }
}

/* Large Pro landscape: use the extra space through layout and type, not a zoom transform. */
@media (min-width: 1340px) and (max-width: 1400px) and (min-height: 900px) and (orientation: landscape) {
  html.ipad-arrows-active #zo-werkt-het .stacked-process-deck {
    /* Grow both dimensions equally from the existing 1100px / 62vh Pro card. */
    width: 1232px;
    height: calc(clamp(560px, 62vh, 640px) * 1.12);
  }

  html.ipad-arrows-active #zo-werkt-het .stacked-process-badge {
    font-size: 22px;
    padding: 13px 28px;
  }

  html.ipad-arrows-active #zo-werkt-het .stacked-process-card h3 {
    font-size: 38px;
  }

  html.ipad-arrows-active #zo-werkt-het .stacked-process-card p {
    font-size: 17px;
  }

  html.ipad-arrows-active #zo-werkt-het .stacked-process-card ul {
    font-size: 16px;
  }

  html.ipad-arrows-active #zo-werkt-het .stacked-process-label {
    font-size: 12px;
  }

  html.ipad-arrows-active #zo-werkt-het .stacked-process-action {
    font-size: 15px;
  }

  html.ipad-arrows-active .ipad-arrow-navigation {
    height: 52px;
  }

  html.ipad-arrows-active .ipad-arrow-button {
    width: 52px;
    height: 52px;
  }

  html.ipad-arrows-active .ipad-arrow-button svg {
    width: 26px;
    height: 26px;
  }

  html.ipad-arrows-active .ipad-arrow-indicators li {
    width: 12px;
    height: 12px;
  }

  html.ipad-arrows-active .ipad-arrow-indicators [aria-current="step"] {
    width: 14px;
    height: 14px;
  }
}

html.ipad-arrows-instant #zo-werkt-het .stacked-process-card {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.ipad-arrows-active #zo-werkt-het .stacked-process-card,
  html.ipad-arrows-active #zo-werkt-het .stacked-process-badge {
    transition: none;
  }
}
