.saving-totaliser {
  background: $blue-dark;
  padding: 16px;
  color: $white;
  margin-bottom: 40px;

  .heading-1, .heading-2 {
    text-align: left;
  }

  &__encourage {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;

    .btn {
      margin-top: 16px;
    }
  }

  &__saving-icon.icon {
    position: absolute;
    top: 30px;
    right: 26px;
    width: 60px;
    height: auto;
    color: $blue-satin;

    svg {
      width: 100%;
      height: 100%;
    }
  }

  &__saving-title {
    @include heading-6;
  }

  &__cell {
    background: rgba($white, .08);
    padding: 16px;
    flex: 1;
    position: relative;

    &-title {
      margin-bottom: 4px;
      color: rgba($white, .8);
    }
  }

  &__title {
    margin-bottom: 16px;
  }

  &__attencion {
    margin-bottom: 4px;
  }

  &__wrapper, &__wrapper2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  &__wrapper {
    margin-bottom: 16px;
  }

  &__divider {
    width: 1px;
    background: rgba($white, .8);
  }

  &__split-cell {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  &__semi-cell {
    flex: 1;
  }

  &__center-cell {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  &__note {
    @include additional-text;
    color: rgba($white, .8);
  }
}

@include media-breakpoint-only(xs) {
  .saving-totaliser {
    &__saved {
      width: 180px;
    }

    &--this-year-only {
      .saving-totaliser__wrapper2 {
        flex-direction: row;
      }
    }
  }
}

@include media-breakpoint-up(sm) {
  .saving-totaliser {
    padding: 24px;
  }
}

@include media-breakpoint-up(md) {
  .saving-totaliser {
    &__saving-title {
      @include heading-5;
    }
  }
}

@include media-breakpoint-between(sm, md) {
  .saving-totaliser {
    &__saved,
    &__attencion {
      margin-right: 130px;
    }

    &__wrapper2 {
      flex-direction: row;
    }

    &--this-last-year {
      .saving-totaliser__split-cell {
        flex: 2.3;
      }
    }

    &__saving-icon.icon {
      position: absolute;
      top: 37px;
      right: 32px;
      width: 93px;
    }
  }
}

@include media-breakpoint-up(lg) {
  .saving-totaliser {
    &__saved,
    &__attencion {
      margin-right: 170px;
    }

    &__wrapper {
      flex-direction: row;
    }

    &__wrapper2 {
      flex-direction: column;
      width: 364px;
    }

    &__saving-icon.icon {
      position: absolute;
      top: 0;
      bottom: 0;
      right: 36px;
      width: 123px;
    }
  }
}

