.pisell-h5-time-picker-wrapper {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;

  .pisell-h5-time-picker-suffix {
    position: absolute;
    right: 11px;
    color: var(--pisell-lowcode-color-icon, #98A2B3);
    pointer-events: none;
    z-index: 1;
    cursor: pointer;
  }
}

.pisell-h5-time-picker {
  width: 100%;
  padding: 4px 11px;
  color: var(--pisell-lowcode-color-text);
  font-size: 14px;
  line-height: 1.5714285714285714;
  background-color: var(--pisell-lowcode-color-bg-container);
  border: 1px solid var(--pisell-lowcode-color-border);
  border-radius: var(--pisell-lowcode-border-radius);
  transition: all 0.2s;
  outline: none;
  box-sizing: border-box;

  // 让原生图标透明但保持可点击
  &::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 8px;
  }
  &::-webkit-time-picker-indicator {
    opacity: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    right: 8px;
  }

  // 默认是 middle 尺寸
  height: 32px;

  &.pisell-h5-time-picker-lg {
    padding: 7px 11px;
    height: 40px;
    font-size: 16px;
  }

  &.pisell-h5-time-picker-sm {
    padding: 0px 7px;
    height: 24px;
  }

  &:hover {
    border-color: var(--pisell-lowcode-color-primary);
  }

  &:focus {
    border-color: var(--pisell-lowcode-color-primary);
    box-shadow: 0 0 0 2px var(--pisell-lowcode-color-primary-bg-hover);
    outline: 0;
  }

  &:disabled {
    color: var(--pisell-lowcode-color-text-disabled);
    background-color: var(--pisell-lowcode-color-bg-container-disabled);
    border-color: var(--pisell-lowcode-color-border);
    box-shadow: none;
    cursor: not-allowed;
  }

  &::placeholder {
    color: var(--pisell-lowcode-color-text-placeholder);
  }

  // 添加右侧padding以容纳图标
  padding-right: 30px !important;
} 