.ah-tab-wrapper {
  position: relative;
}

.ah-tab-wrapper *, .ah-tab-wrapper *:before, .ah-tab-wrapper *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ah-tab {
  border-bottom: 1px solid #97b5d9;
  position: relative;
  white-space: nowrap;
  /* overflow: hidden; */
  letter-spacing: -0.3em;
}

.ah-tab::before, .ah-tab::after {
  bottom: 0;
  content: "";
  height: 100%;
  opacity: 0;
  position: absolute;
  z-index: 1;
  transition: opacity .3s;
}

.ah-tab::before {
  left: -100%;
  width: 30px;
  background: -moz-linear-gradient(right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 1) 99%);
  background: -webkit-linear-gradient(right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 1) 99%);
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 1) 99%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff', GradientType=1);
}

.ah-tab::after {
  right: 100%;
  width: 80px;
  background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 1) 99%);
  background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 1) 99%);
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 1) 99%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff', GradientType=1);
}

.ah-tab-overflow-left::before {
  opacity: 1;
  left: 0;
}

.ah-tab-overflow-right::after {
  opacity: 1;
  right: 0;
}

.ah-tab-overflow-wrapper {
  position: absolute;
  width: 43px;
  height: 100%;
  right: 100%;
  opacity: 0;
  top: 0;
  z-index: 1;
  text-align: center;
  display: none;
}

.ah-tab-overflow-wrapper[data-ah-tab-active="true"] {
  right: 0;
  opacity: 1;
  transition: opacity .3s;
  display: block;
}

.ah-tab-overflow-menu {
  background: transparent url(../../../style/css/images/ah-tab-overflow-menu.svg) center center no-repeat;
  background-size: 18px;
  display: inline-block;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  transition: opacity .3s;
  opacity: .7;
}

.ah-tab-overflow-wrapper:hover .ah-tab-overflow-menu {
  opacity: 1;
}

.ah-tab-overflow-list {
  position: absolute;
  top: -1000%;
  right: 0;
  text-align: left;
  background-color: #fff;
  border: 1px solid #e9e9e9;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.09);
  list-style: none;
  transition: opacity .3s;
  opacity: 0;
  max-width: 290px;
}

.ah-tab-overflow-list::after {
  content: " ";
  display: block;
  position: absolute;
  top: -14px;
  right: 14px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-color: #fff;
}

.ah-tab-overflow-list::before {
  content: " ";
  display: block;
  position: absolute;
  top: -16px;
  right: 13px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-bottom-color: #cdcdcd;
}

.ah-tab-overflow-wrapper:hover .ah-tab-overflow-list {
  top: 99%;
  padding: 0;
  opacity: 1;
}

.ah-tab-overflow-list:hover {
  display: block;
}

.ah-tab-item {
  color: #0F0F0F;
  cursor: pointer;
  display: inline-block;
  letter-spacing: normal;
  transition: all .3s;
  text-decoration: none;
  font-size: 20px;
}

.ah-tab-item:hover {
  text-decoration: none;
}

.ah-tab>.ah-tab-item {
  /* border-bottom: 3px solid transparent; */
  margin-right: 0;
  line-height: 44px;
  padding: 0 20px;
}
/* .ah-tab>.ah-tab-item+.ah-tab-item::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 25px;
  background-color: #e2e2e2;
  position: absolute;
  left: -18px;
  top: 2px;
} */

@media (min-width: 768px) {
  .ah-tab>.ah-tab-item {
      margin-right: 0;
      position: relative;
  }
}

.ah-tab-item[data-ah-tab-active="true"] {
  color: #fff;
  background-color: #f0873c;
  border-radius: 7px 7px 0 0;
  position: relative;
}
.ah-tab-item[data-ah-tab-active="true"]::before {
  content: '';
  border-top: 8px solid #f0873c;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  z-index: 3;
}

.ah-tab>.ah-tab-item:hover {
  /* border-bottom: 3px solid #8b8b8b; */
}

.ah-tab>.ah-tab-item[data-ah-tab-active="true"] {
  /* border-bottom-color: #0352B3; */
}

.ah-tab-overflow-list>.ah-tab-item {
  /* border-left: 3px solid transparent; */
  display: block;
  overflow: hidden;
  padding: 5px 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  border-radius: 5px;
}

.ah-tab-overflow-list>.ah-tab-item:hover {
  border-left-color: #8b8b8b;
}

.ah-tab-overflow-list>.ah-tab-item[data-ah-tab-active="true"] {
  border-left-color: #0352B3;
}

.ah-tab-content-wrapper {
  margin: 20px 0 0;
}

.ah-tab-content {
  display: none;
  
}

.ah-tab-content[data-ah-tab-active="true"] {
  display: block;
}