.pisell-base-virtual-input {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  position: relative;
  height: var(--virtual-input-height);

  &--disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }
}

.pisell-base-virtual-input-placeholder {
  color: #98a2b3;
  font-weight: 400;
  user-select: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  font-size: var(--virtual-input-font-size);
  height: var(--virtual-input-height);
  line-height: var(--virtual-input-height);
}

.pisell-base-virtual-input-value {
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  // width: 100%;
  max-width: 100%;
  overflow-y: hidden;
  overflow-x: auto;
  font-size: var(--virtual-input-font-size);
  line-height: var(--virtual-input-height);
  height: var(--virtual-input-height);

  -ms-overflow-style: none; /* IE 和 Edge */
  scrollbar-width: none; /* Firefox */
  &::-webkit-scrollbar {
    display: none; /* Chrome, Safari 和 Opera */
  }
}

.pisell-base-virtual-input-caret-container {
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pisell-base-virtual-input-caret {
  width: 2px;
  height: var(--virtual-input-caret-height);
  background-color: #1570ef;
  border-radius: 1px;
  animation: pisell-base-virtual-input-caret-blink 1s infinite;
}

@keyframes pisell-base-virtual-input-caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
