/* The live-analysis explanation only. Keep every rule inside this module. */
#demo:not(.is-replay) {
  padding-bottom: 0;
}

#demo:not(.is-replay) .analysis-assurances {
  display: none;
}

#demo:not(.is-replay) .ig-how {
  margin-bottom: 0;
}

#demo .ig-how {
  --ig-how-bg: #FCFBF8;
  --ig-how-text: #292B36;
  --ig-how-muted: #6D7180;
  --ig-how-purple: #5E5988;
  --ig-how-line: #DEDDD7;
  container: ig-how / inline-size;
  color: var(--ig-how-text);
  background: var(--ig-how-bg);
  border-top: 1px solid var(--ig-how-line);
  padding: 24px 0;
  font-family: inherit;
}

#demo .ig-how,
#demo .ig-how * { box-sizing: border-box; }

#demo .ig-how .ig-how__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

#demo .ig-how .ig-how__heading-copy { min-width: 0; }
#demo .ig-how .ig-how__title { margin: 0; color: var(--ig-how-text); font-size: 22px; line-height: 30px; font-weight: 650; }
#demo .ig-how .ig-how__subtitle { margin: 6px 0 0; color: var(--ig-how-muted); font-size: 13px; line-height: 21px; font-weight: 400; }

#demo .ig-how .ig-how__status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  margin-top: 2px;
  padding: 5px 10px;
  border: 1px solid #E5E4E7;
  border-radius: 999px;
  background: #F4F3F5;
  color: var(--ig-how-muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}

#demo .ig-how .ig-how__status::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #8A8D97; content: ""; }

#demo .ig-how .ig-how__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

#demo .ig-how .ig-how__step {
  position: relative;
  min-width: 0;
  padding: 14px 9px 15px;
  border: 1px solid var(--ig-how-line);
  border-radius: 6px;
  background: #F6F5F2;
  text-align: center;
}

#demo .ig-how .ig-how__step--gate { border-color: #D6B78D; background: #FBF5EA; }
#demo .ig-how .ig-how__step--next { border-color: #E1DDEB; background: #F1EFF6; }

#demo .ig-how .ig-how__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 20px;
  margin-bottom: 6px;
  text-align: left;
}

#demo .ig-how .ig-how__number { color: var(--ig-how-muted); font-size: 11px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
#demo .ig-how .ig-how__step--gate .ig-how__number { color: #946329; }
#demo .ig-how .ig-how__step--next .ig-how__number { color: var(--ig-how-purple); }
#demo .ig-how .ig-how__badge { padding: 2px 6px; border-radius: 10px; background: #F7E8D0; color: #946329; font-size: 11px; line-height: 16px; font-weight: 500; white-space: nowrap; }

#demo .ig-how .ig-how__icon {
  position: relative;
  display: block;
  width: var(--ig-how-icon-size, 52px);
  height: var(--ig-how-icon-size, 52px);
  min-width: var(--ig-how-icon-size, 52px);
  max-width: var(--ig-how-icon-size, 52px);
  min-height: var(--ig-how-icon-size, 52px);
  max-height: var(--ig-how-icon-size, 52px);
  flex: 0 0 var(--ig-how-icon-size, 52px);
  overflow: hidden;
  margin: var(--ig-how-icon-margin, 0 auto 10px);
  line-height: 0;
}

#demo .ig-how .ig-how__icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  filter: none;
  object-fit: contain;
  transform-origin: center;
  transform: translate(calc(-50% + var(--ig-how-optical-x, 0%)), calc(-50% + var(--ig-how-optical-y, 0%))) scale(var(--ig-how-icon-scale, 1));
}

#demo .ig-how .ig-how__icon--read { --ig-how-icon-scale: 1.723053; --ig-how-optical-x: 0%; --ig-how-optical-y: -1.99237%; }
#demo .ig-how .ig-how__icon--search { --ig-how-icon-scale: 1.297241; --ig-how-optical-x: -0.98276%; --ig-how-optical-y: -1.44828%; }
#demo .ig-how .ig-how__icon--check { --ig-how-icon-scale: 1.461917; --ig-how-optical-x: 0%; --ig-how-optical-y: -1.04922%; }
#demo .ig-how .ig-how__icon--gate { --ig-how-icon-scale: 1.198089; --ig-how-optical-x: -0.04777%; --ig-how-optical-y: -1.05096%; }
#demo .ig-how .ig-how__icon--next { --ig-how-icon-scale: 1.283959; --ig-how-optical-x: -0.97270%; --ig-how-optical-y: -3.53242%; }

#demo .ig-how .ig-how__step-title { margin: 0; color: var(--ig-how-text); font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
#demo .ig-how .ig-how__description { margin: 6px 0 0; color: var(--ig-how-muted); font-size: 12px; line-height: 18px; font-weight: 400; white-space: nowrap; }

#demo .ig-how .ig-how__step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -28px;
  z-index: 1;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, #D4D1DB 0%, #CFC9DF 100%);
  transform: translateY(-50%);
  content: "";
}

#demo .ig-how .ig-how__step:not(:last-child)::before {
  position: absolute;
  top: 50%;
  right: -22px;
  z-index: 2;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #DAD5E6;
  border-radius: 50%;
  background: linear-gradient(145deg, #FBFAFD, #F1EFF7);
  box-shadow: 0 1px 3px rgba(49, 44, 78, .10);
  content: "";
}

#demo .ig-how .ig-how__step:not(:last-child)::before {
  background-image:
    linear-gradient(45deg, transparent 46%, var(--ig-how-purple) 47% 58%, transparent 59%),
    linear-gradient(-45deg, transparent 46%, var(--ig-how-purple) 47% 58%, transparent 59%),
    linear-gradient(145deg, #FBFAFD, #F1EFF7);
  background-position: 6px 4px, 6px 8px, 0 0;
  background-size: 6px 4px, 6px 4px, 100% 100%;
  background-repeat: no-repeat;
}

#demo .ig-how .ig-how__footnote { margin: 20px 0 0; padding-top: 12px; border-top: 1px solid var(--ig-how-line); color: var(--ig-how-muted); font-size: 12px; line-height: 20px; font-weight: 400; }
#demo .ig-how .ig-how__footnote[hidden] { display: none; }

@container ig-how (width < 1120px) {
  #demo .ig-how .ig-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #demo .ig-how .ig-how__step:not(:last-child)::before,
  #demo .ig-how .ig-how__step:not(:last-child)::after { display: none; }
}

@container ig-how (width < 720px) {
  #demo .ig-how .ig-how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container ig-how (width < 520px) {
  #demo .ig-how .ig-how__steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
  #demo .ig-how .ig-how__step { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 12px; text-align: left; }
  #demo .ig-how .ig-how__meta { grid-column: 2; margin-bottom: 4px; }
  #demo .ig-how .ig-how__icon { --ig-how-icon-size: 34px; --ig-how-icon-margin: 0; grid-column: 1; grid-row: 1 / 3; align-self: center; }
  #demo .ig-how .ig-how__copy { grid-column: 2; }
  #demo .ig-how .ig-how__description { margin-top: 3px; }
  #demo .ig-how .ig-how__title { font-size: 20px; line-height: 28px; }
}

@supports not (container-type: inline-size) {
  @media (max-width: 1119px) {
    #demo .ig-how .ig-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #demo .ig-how .ig-how__step:not(:last-child)::before,
    #demo .ig-how .ig-how__step:not(:last-child)::after { display: none; }
  }
  @media (max-width: 719px) {
    #demo .ig-how .ig-how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 519px) {
    #demo .ig-how .ig-how__steps { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
    #demo .ig-how .ig-how__step { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 12px; text-align: left; }
    #demo .ig-how .ig-how__meta { grid-column: 2; margin-bottom: 4px; }
    #demo .ig-how .ig-how__icon { --ig-how-icon-size: 34px; --ig-how-icon-margin: 0; grid-column: 1; grid-row: 1 / 3; align-self: center; }
    #demo .ig-how .ig-how__copy { grid-column: 2; }
    #demo .ig-how .ig-how__description { margin-top: 3px; }
    #demo .ig-how .ig-how__title { font-size: 20px; line-height: 28px; }
  }
}
