@import "../settings/variables";
@import "../settings/keyframes";
@import "../tools/mixins/breakpoints";

$gradientWidth: 3.75em;

.c-bunker-consumption-calculations {
  &__container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;

    &--mobile {
      scrollbar-width: none;

      &::-webkit-scrollbar {
        display: none;
      }

      &::-webkit-scrollbar-button {
        display: none;
      }
    }
  }

  &__row-titles-wrapper {
    top: calc(3 * #{$base-font-size});
    left: 0;
    position: absolute;
    z-index: $layer-content-attached;
    flex-direction: column;
  }

  &__scroll-indicator {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    right: 0;
    height: 100%;
    width: $gradientWidth;
    z-index: $layer-content-attached;
  }

  &__scroll-indicator-icon {
    position: relative;
    bottom: 1.95em;
    left: 1em;
    animation: bounce 1600ms infinite cubic-bezier(0.445, 0.05, 0.55, 0.95);
  }

  &__scroll-indicator-icon-container {
    display: flex;
    flex: 1;
    justify-items: center;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
  }
}
