@prefixCls: ~'igloo-transit-switch-number';

.@{prefixCls} {
  display: flex;
  align-items: center;
  &-input-number-container {
    margin: 0 4px;
    &-input-number {
      width: 32px;
      height: 24px;
      padding: 0;
      text-align: center;
      background: transparent;
      border: none;
      border-bottom: 1px solid #eee;
      border-radius: 0;
      &:disabled {
        color: initial !important;
        background: transparent;
        cursor: default;
      }
    }
  }
  &-op-btn {
    display: inline-flex;
    width: 24px;
    height: 24px;
    padding: 2px;
    cursor: pointer;
    &-disabled {
      opacity: 0.3;
    }
  }
  &-op-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #eeeeee;
    border-radius: 50%;
    &-op-icon {
      color: #999999;
      font-size: 18px;
    }
  }

  &-disabled {
    pointer-events: auto;
    .@{prefixCls}-op-btn {
      opacity: 0.3;
      pointer-events: auto;
    }
    .@{prefixCls}-op-inner {
      pointer-events: auto;
      &-op-icon {
        pointer-events: auto;
      }
    }

    .@{prefixCls}-input-number-container {
      opacity: 0.3;
      &-input-number {
        &:disabled {
          cursor: not-allowed;
        }
      }
    }
  }
}
