/* IPTV Charleroi v1.3.10 — installation flow layout fix.
   Purpose: prevent narrow-column wrapping caused by the icon/copy order in the step markup. */

.install-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: stretch;
  gap: 15px;
}

.install-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  grid-template-rows: 1fr auto;
  column-gap: 14px;
  row-gap: 11px;
  align-items: center;
  min-height: 126px;
  padding: 21px 20px 16px;
}

.install-step .step-number {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
}

.install-step-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: center;
}

.install-step-copy h4 {
  max-width: 100%;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.16;
}

.install-step-copy p {
  max-width: 240px;
  font-size: 11.5px;
  line-height: 1.46;
}

.install-step-icon {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: 40px;
  height: 40px;
}

.install-step-icon .step-icon {
  font-size: 17px;
}

.install-step-chip {
  position: static;
  grid-column: 2 / 4;
  grid-row: 2;
  justify-self: start;
  margin: 0;
  min-height: 22px;
  padding: 0 10px;
  font-size: 9.5px;
}

.install-flow .step-arrow {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 0;
  align-self: center;
  justify-self: center;
}

@media (max-width: 1180px) {
  .install-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .install-flow::before,
  .install-flow .step-arrow {
    display: none;
  }

  .install-step {
    min-height: 112px;
    grid-template-columns: 38px minmax(0, 1fr) 40px;
    padding: 18px 17px 15px;
  }

  .install-step-copy p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .install-step {
    min-height: auto;
    grid-template-columns: 34px minmax(0, 1fr) 36px;
    column-gap: 11px;
    row-gap: 9px;
    padding: 16px 15px 14px;
  }

  .install-step .step-number {
    width: 30px;
    height: 30px;
  }

  .install-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .install-step-copy h4 {
    font-size: 14px;
  }

  .install-step-copy p {
    font-size: 11px;
  }

  .install-step-chip {
    grid-column: 2 / 4;
  }
}
