.tntd-segmented {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(0,0,0,.65);
    font-size: 14px;
    line-height: 1.5715;
    list-style: none;

    display: inline-block;
    padding: 2px;
    color: rgba(0,0,0,.65);
    background-color: rgba(0,0,0,.04);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    font-family: initial;

    .tntd-segmented-group {
        position: relative;
        display: flex;
        align-items: stretch;
        justify-items: flex-start;
        width: 100%;
      }

      // item styles
      .tntd-segmented-item {
        position: relative;
        text-align: center;
        cursor: pointer;
        transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);

        &-selected {
          background-color: #fff;
          border-radius: 2px;
          box-shadow: 0 2px 8px -2px rgba(0,0,0,.05), 0 1px 4px -1px rgba(0,0,0,.07),
            0 0 1px rgba(0,0,0,.08);
          color: #262626;
        }

        &:hover,
        &:focus {
          color: #262626;
        }

        &-label {
          min-height: 28px;
          padding: 0 12px;
          line-height: 28px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          word-break: keep-all;
        }

        // syntactic sugar to add `icon` for Segmented Item
        &-icon + * {
          margin-left: 6px;
        }

        &-input {
          position: absolute;
          top: 0;
          left: 0;
          width: 0;
          height: 0;
          opacity: 0;
          pointer-events: none;
        }
      }

      // disabled styles
      .tntd-segmented-item-disabled {
        &,
        &:hover,
        &:focus {
          color: rgba(0,0,0,.25);
          cursor: not-allowed;
        }
      }

      // thumb styles
      .tntd-segmented-thumb {
        background-color: #fff;
        border-radius: 2px;
        box-shadow: 0 2px 8px -2px rgba(0,0,0,.05), 0 1px 4px -1px rgba(0,0,0,.07),
            0 0 1px rgba(0,0,0,.08);

        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        padding: 4px 0;
      }

      // transition effect when `appear-active`
      .tntd-segmented-thumb-motion-appear-active {
        transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        transition-property: all !important;
        will-change: transform, width;
      }

    // hover/focus styles
    &:not(&-disabled) {
      &:hover,
      &:focus {
        background-color: rgba(0,0,0,.06);
      }
    }
  }

  .tntd-segmented-block {
    display: flex;

    .tntd-segmented-item {
        flex: 1;
        min-width: 0;
    }
  }

  // size styles
  .tntd-segmented-lg {
    .tntd-segmented-item-label {
        min-height: 36px;
        padding: 0 12px;
        font-size: 16px;
        line-height: 36px;
    }
  }

  .tntd-segmented-sm {
    .tntd-segmented-item-label {
        min-height: 22px;
        line-height: 22px;
        padding: 0 7px;
    }
  }
