ul.tabs__list{
  padding-left: 0;
  margin: 0;
}

li.tabs__item{
  margin: 0;
  list-style: none;
}

.tabs__top-bar {
  background-color: var(--color-main);
  position: relative;
}

.tabs__top-bar:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: -webkit-gradient(linear, left top, right top, from(hsla(0, 0%, 100%, 0)), color-stop(70%, transparent)) 0 100%, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .2), transparent) 0 100%;
  background: -o-linear-gradient(left,hsla(0,0%,100%,0),transparent 70%) 0 100%,-o-radial-gradient(100% 50%,farthest-side,rgba(0,0,0,.2),transparent) 0 100%;
  background: linear-gradient(90deg, hsla(0, 0%, 100%, 0), transparent 70%) 0 100%, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .2), transparent) 0 100%;
  z-index: 1;

  @media (min-width: 768px) {
    display: none;
  }
}

.tabs__list {
  display: flex;
  overflow-x: auto;
}

.tabs__item {
  /* This give the same affect as justify-content: center */
  /* But makes sure that it left aligns when on mobile */
  &:first-child {
    margin-left: auto;
  }

  &:last-child{
    margin-right: auto
  }
}

.tabs__link {
  display: block;
  color:  #FFF;
  border-bottom: 4px solid transparent;
  font-family: var(--font-display, "Romie", sans-serif);
  font-size: var(--font-size, 18px);
  font-weight: 400;
  padding: 24px 24px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 4;

  &:hover, &:focus {
    color: var(--white, #FFF);
  }
}

.tabs__link[aria-selected="true"] {
  background: var(--white, #fff);
  color: var(--color-main);
}

.tabs__content {
  position: relative;
  z-index: 4;
}

.tabs__content[aria-hidden="true"] {
  display: none;
}

/* Variant Styles */
.pattern_tabs--style2 {

  .tabs__top-bar {
    background-color: transparent;
    position: relative;
  }

  .tabs__link {
    padding: 10px 24px;
    border: 0;
    color: var(--Text, #585858);
    text-align: center;
    font-family: "ABC ROM";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2.8px;
    text-transform: uppercase;
  }

  .tabs__link[aria-selected="true"] {
    color: var(--color-main);
    border-bottom-color: transparent;
    text-decoration: underline;
  }
}
