@import url("../../utils/palette_v2-xqjh14X.css");
@import url("../../utils/breakpoints-fRdcjGc.css");

[data-template="_components/Back/Timeline/Timeline.html.twig"] {
  .timeline {
    display: flex;
    align-items: flex-start;
    color: var(--palette_v2-text-primary-color);
    margin-bottom: 1rem;

    .timeline-element {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      min-width: 120px;
      padding: 20px 0;

      &.timeline-element-active {
        .timeline-element-icon, .timeline-straight-line {
          background-color: var(--palette_v2-confirm-background);
        }
      }

      &.timeline-element-fail {
        .timeline-element-icon {
          background-color: var(--palette_v2-delete-background);
        }

        .timeline-straight-line {
          background-color: var(--palette_v2-grey-2);
        }
      }

      &.timeline-element-current {
        .timeline-element-icon {
          background-color: var(--palette_v2-yellow-4);
        }

        .timeline-straight-line {
          background-color: var(--palette_v2-grey-2);
        }
      }

      &.timeline-element-greyed {
        .timeline-element-icon, .timeline-straight-line {
          background-color: var(--palette_v2-grey-2);
        }
      }

      .timeline-element-icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        color: white;

        svg {
          width: 1.5rem;
          height: 1.5rem;
        }
      }

      .timeline-element-text {
        text-align: center;
        width: 100%;
      }


      .timeline-straight-line {
        display: block;
        position: absolute;
        top: 50%;
        width: 100%;
        height: 3px;
        margin-top: -1px;
        content: "";
        z-index: -1;
      }
    }

    .under-step {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
    }
  }
}
