.complete-widget {
  background: $gray-bg;
  padding: 16px;

  &__price {
    display: flex;
    align-items: flex-end;
  }

  &__vat-label {
    @include font-size(12);
    @include line-height(16);
    margin-left: 4px;
    font-weight: 500;
    white-space: nowrap;
    color: $blue-dark;
    margin-bottom: 1px;
  }

  &__title {
    margin-bottom: 16px;
  }

  &__divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    color: $blue-dark;
    font-size: 1.5rem;
  }

  &__summary {
    border: 1px solid $gray;
    padding: 16px;
    border-radius: 4px;

    &--skeleton {
      .complete-widget__total {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
      }

      .complete-widget__skeleton {
        &-label {
          height: 14px;
          width: 80px;
          margin-bottom: 8px;
        }

        &-price {
          height: 28px;
          width: 120px;
        }

        &-cta {
          height: 48px;
          width: 100%;
          border-radius: 4px;
        }

        &-offer {
          height: 12px;
          width: 60%;
          margin-top: 12px;
        }
      }
    }
  }

  &__offer {
    @include font-size(12);
    @include line-height(16);
    font-weight: 400;
    margin-bottom: 0;
    color: $gray-dark;
  }

  &__cta {
    padding: 16px 0;
  }

  &__total {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    &-sale {
      .complete-widget {
        &__price-value {
          @include font-size(18);
          line-height: normal;
          font-weight: 500;
          color: $warm-grey;
          text-decoration: line-through;
          padding-right: 7px;
          margin-bottom: 1px;
        }

        &__sale-price {
          @include font-size(24);
          @include line-height(24);
          font-weight: 700;
          color: $red;
        }
      }
    }
  }

  &__price-value {
    @include font-size(24);
    @include line-height(24);
    font-weight: 700;
    color: $blue-dark;
  }

  &__label {
    @include font-size(14);
    @include line-height(22);
    font-weight: 500;
    color: $gray-dark;
    padding-right: 8px;
    text-wrap-mode: nowrap;
  }
}

@include media-breakpoint-up(lg) {
  .complete-widget {
    padding: 24px;

    &__wrapper {
      display: flex;
      align-items: stretch;
      gap: 8px;
    }

    &__divider {
      flex-shrink: 0;
      padding: 0 3px;
      align-self: center;
    }

    &__summary {
      display: flex;
      flex-direction: column;
      align-items: end;
      border: 0;
      padding: 24px 0 0;

      &-wrapper {
        display: flex;
        align-items: flex-start;
        margin-bottom: 14px;
      }

      &--skeleton {
        .complete-widget__total {
          flex-direction: row;
          align-items: baseline;
          margin-bottom: 0;
          margin-right: 24px;
        }

        .complete-widget__skeleton {
          &-label {
            margin-bottom: 0;
            margin-right: 8px;
          }

          &-cta {
            width: 260px;
          }
        }
      }
    }

    &__total:not(.complete-widget__total-sale) {
      .complete-widget {
        &__price-value {
          @include font-size(34);
          @include line-height(34);
          font-weight: 700;
        }
      }
    }

    &__total-sale {
      .complete-widget {
        &__sale-price {
          @include font-size(34);
          @include line-height(34);
          font-weight: 700;
        }
      }
    }

    &__total {
      margin-right: 24px;
    }

    &__cta {
      width: 260px;
      padding: 0;
    }
  }
}
