.webresto-delivery-thresholds {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 3.125rem;
  max-height: 0;
  background-color: var(--background-color);
  align-items: center;
  transition: max-height 0.5s ease;

  &.can-show-tresholds {
    max-height: 3.125rem;
  }

  .container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 78.125rem;
    margin: 0 auto;
    align-items: center;

    @media (max-width: 660px) {
      width: 58.125rem;
    }
  }

  .track-container {
    position: relative;
    width: calc(100vw - 4.25rem);
    height: 2rem;
    margin-right: 1.25rem;
    overflow: auto hidden;
    border-radius: 10px;

    &::-webkit-scrollbar {
      height: 0;
    }
  }

  .track {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      #9a0002 0%,
      #c84c01 22.92%,
      #f19100 49.48%,
      #c9cd0e 76.04%,
      #1f9a00 100%
    );

    @media (max-width: 660px) {
      width: 54.125rem;
    }

    .active {
      background: transparent;
      transition: all 0.5s ease;
      flex: none;
    }

    .inactive {
      background: var(--background-color);
      transition: all 0.5s ease;
      flex: content;

      .inactive-shadow {
        width: 100%;
        height: 100%;
        transition: all 0.5s ease;
        background: linear-gradient(
            90deg,
            rgb(149 149 149 / 20%) 0%,
            rgb(149 149 149 / 0%) 3.76%,
            rgb(149 149 149 / 0%) 47.92%,
            rgb(149 149 149 / 0%) 96.48%,
            rgb(149 149 149 / 20%) 100%
          ),
          linear-gradient(
            180deg,
            #505050 0%,
            rgb(68 68 68 / 50%) 17.19%,
            rgb(52 52 52 / 0%) 49.48%,
            rgb(68 68 68 / 50%) 82.81%,
            #505050 100%
          );

        &:not(.full) {
          border-top-right-radius: 10px;
          border-bottom-right-radius: 10px;
        }

        &.empty {
          border-top-left-radius: 10px;
          border-bottom-left-radius: 10px;
        }
      }
    }
  }

  .track-labels {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;

    .track-label {
      position: relative;
      display: flex;
      height: 100%;
      color: var(--primary-color);
      flex-direction: column;

      span {
        display: inline;
        line-height: 1.625rem;
      }
    }
  }
}

.thresholds-info {
  position: relative;
  display: flex;
  min-width: 10rem;
  max-width: 20rem;
  min-height: 10rem;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--tresholds-info-bg-color);
  box-shadow: 0 0.25rem 1.25rem rgb(0 0 0 / 7%);
  padding: 2rem;
  border-radius: var(--border-radius);
  color: var(--primary-color);

  .mat-headline-6,
  .threshold-description {
    margin-bottom: 2rem;
  }

  .threshold-delivery-time {
    margin-bottom: 0;
  }

  .thresholds-info-close {
    position: absolute;
    top: 0;
    right: 0;
  }

  &:after {
    position: absolute;
    content: "";
    left: 3.7rem;
    bottom: -0.35rem;
    width: 1.0625rem;
    height: 1.0625rem;
    transform: rotate(45deg);
    // border-radius: var(--border-radius);
    background: var(--tresholds-info-bg-color);
  }
}

.delivery-thresholds-info {
  .threshold-description {
    ul {
      margin: 0;
      padding: 0;

      li:not(.active) {
        list-style-type: none;
      }

      li.active {
        list-style-type: disc;
        font-weight: 700;
        color: #ffffff;
      }
    }
  }
}
