
.shipping-bar {
  width: 100%;
  background: #E26385;
  padding: 8px 0 14px 0;
  position: relative;
  z-index: 10;
  max-height: 100px;

  .shipping-bar__container {
    max-width: 723px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;

    .shipping-bar__message {
      margin-bottom: 10px;

      .shipping-bar__text {
        color: #ffffff;
        font-size: 13px;
        font-weight: 400;
        margin: 0;
        line-height: 20px;
      }
    }

    .shipping-bar__progress-wrapper {
      position: relative;

      .shipping-bar__track {
        width: 100%;
        height: 8px;
        background: #CFCFCF;
        border-radius: 10px;
        overflow: hidden;
        position: relative;

        .shipping-bar__progress {
          height: 100%;
          background: #ffffff;
          border-radius: 10px;
          width: 0%;
          transition: width 0.6s ease-in-out;
          position: relative;
        }
      }
    }

    .shipping-bar__congratulations {
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.4s ease;

      &.active {
        opacity: 1;
        transform: translateY(0);
      }

      :is(p) {
        color: #ffffff;
        font-size: 13px;
        font-weight: 400;
        margin: 0;
        line-height: 20px;

        :is(span) {
          text-decoration: underline;
          font-weight: 500;
        }
      }
    }
  }

  &.loading {
    .shipping-bar__progress {
      transition: none;
    }
  }

  @media screen and (max-width: 480px) {
    padding: 8px 0 14px 0;
    max-height: 80px;

    .shipping-bar__container {
      padding: 0 15px;

      .shipping-bar__message {
        margin-bottom: 8px;
      }

      .shipping-bar__progress-wrapper {
        .shipping-bar__track {
          height: 8px;
        }
      }

      :is(p) {
        font-size: 12px;
      }
    }
  }
}

