/* ===== Step Flow Step (child of StepFlow) ===== */

.cc_mpzlfs8x_85FBLI429C .step-flow-step {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  height: 100%;
  padding: var(--space-md) 0;
}

/* ---- Text panel ---- */

.cc_mpzlfs8x_85FBLI429C .step-flow-step__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
  max-width: 480px;
  min-width: 0;
  color: var(--step-flow-text-color, var(--color-text-primary));
  text-align: center;
}

.cc_mpzlfs8x_85FBLI429C .step-flow-step__label {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.cc_mpzlfs8x_85FBLI429C .step-flow-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.2;
}

.cc_mpzlfs8x_85FBLI429C .step-flow-step__description {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  opacity: 0.85;
}

/* ---- Media panel ---- */

.cc_mpzlfs8x_85FBLI429C .step-flow-step__media {
  flex: 0 0 auto;
  width: min(320px, 70vw);
  aspect-ratio: var(--step-flow-image-aspect-ratio, 1 / 1);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.cc_mpzlfs8x_85FBLI429C .step-flow-step__image, .cc_mpzlfs8x_85FBLI429C .step-flow-step__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc_mpzlfs8x_85FBLI429C .step-flow-step__image-placeholder {
  background: var(--color-surface-alt);
}

/* ===== Tablet+ (>=768px): text left, image right ===== */

@media (min-width: 768px) {
  .cc_mpzlfs8x_85FBLI429C .step-flow-step {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
  }

  .cc_mpzlfs8x_85FBLI429C .step-flow-step__text {
    text-align: left;
    align-items: flex-start;
  }

  .cc_mpzlfs8x_85FBLI429C .step-flow-step__media {
    width: min(360px, 32vw);
  }
}

@media (min-width: 1024px) {
  .cc_mpzlfs8x_85FBLI429C .step-flow-step__media {
    width: min(420px, 28vw);
  }
}
