/* MBOKA_TRAJECTORY_T2R5_STEPPER_SAFE */

#mpT2Layout .mp-t2r5-nav {
  display: none;
}

#mpT2Layout .mp-t2r5-nav[hidden] {
  display: none !important;
}

@media (max-width: 760px) {

  #view-trajectory.mp-t2-guided
  #mpT2Layout .mp-t2r5-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 2px;
    margin: 12px 0 8px;
  }

  #mpT2Layout .mp-t2r5-label {
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    color: #b8d9c6;
  }

  #mpT2Layout .mp-t2r5-controls {
    display: flex;
    flex: none;
    gap: 7px;
  }

  #mpT2Layout .mp-t2r5-controls button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(123, 222, 163, .35);
    background: rgba(22, 112, 76, .3);
    color: #c1f9d5;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
  }

  #mpT2Layout .mp-t2r5-controls button:disabled {
    opacity: .28;
    cursor: default;
  }

  #mpT2Layout .mp-t2r5-controls button:focus-visible {
    outline: 2px solid #7fe8ae;
    outline-offset: 2px;
  }

  /*
   * IMPORTANT :
   * L'identifiant reel est mpT2Steps
   * et non mpT2Step.
   */

  #view-trajectory.mp-t2-guided
  #mpT2Layout #mpT2Steps {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100%;
    gap: 10px !important;
    padding: 12px !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #419b74 transparent;
  }

  #view-trajectory.mp-t2-guided
  #mpT2Layout #mpT2Steps > .mp-t2-step {
    flex: 0 0 min(68vw, 210px) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    border-radius: 12px;
  }

  #mpT2Layout #mpT2Steps
  .mp-t2-step strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* Protection contre la navigation basse */

  #view-trajectory.mp-t2-guided {
    padding-bottom: calc(
      120px + env(safe-area-inset-bottom, 0px)
    ) !important;
  }
}
