@import '../../../styles/vars/breakpoints.css';

.tabs {
}

.notificationCount {
  background-color: env(--color-primary);
  background-color: var(--primary-color);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: absolute;
  top: 11px;
  right: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.wrapper {
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  color: #909399;
  @media (--ms-and-down) {
    flex-wrap: wrap;
  }
}

.tab {
  margin-right: 31px;
  position: relative;
  cursor: pointer;
  color: #1b1c1f;
  border-top: 2px solid transparent;
  .inner {
    opacity: 0.5;
    transition: 0.3s opacity ease-in-out;
  }
  &.disabled {
    pointer-events: none;
    cursor: not-allowed;
    .inner {
      opacity: 0.35;
    }
  }
  &:last-child {
    margin-right: 0;
  }
  &:hover {
    .inner {
      opacity: 1;
    }
  }
  &.active {
    border-color: var(--primary-color);

    .inner {
      opacity: 1;
    }
    
    font-size: 16px;
    font-weight: 500;
    color: #1b1c1f;
    .notificationCount{
      background-color: env(--color-primary);
      background-color: var(--primary-color);
    }
  }
}

.inner {
  padding-top: 6px;
  display: flex;
  align-items: center;
}

.dasledUnderline,
.solidUnderline {
  .wrapper{
    padding-bottom: 2px;
  }

  .tab {
    border-top: unset;
    margin-bottom: -4px;
    border-bottom: 2px solid transparent;
    padding-bottom: 6px;
    &.active {
      border-color: env(--color-primary);
      border-color: var(--primary-color);
    }
  }
}

.dasledUnderline {
  .wrapper{
    border-bottom: 2px solid #e6ebf5;
  }
}

.size--default {
  .tab {
    font-size: 16px;
    line-height: 32px;
  }
}

.size--medium {
  .tab {
    font-size: 14px;
    line-height: 25px;
  }
}

.notification {
  position: absolute;
  top: 13px;
  right: -5px;
  width: 6px;
  height: 6px;
  background-color: env(--color-primary);
  background-color: var(--primary-color);
  border-radius: 50%;
}

.soon {
  border: 1px solid env(--color-primary);
  color: #5b59ff;
  padding: 0px 3px;
  border-radius: 10px;
  line-height: 12px;
  font-size: 8px;
  position: absolute;
  top: 2px;
  right: -9px;
}

:global(.dir--rtl) {
  .tab {
    margin-right: 0;
    margin-left: 30px;
  }
  .notification {
    right: auto;
    left: -5px;
  }
}