:host {
  display: inline-block;
  position: relative;
  --hb-time-picker-font-size: 14px;
  --hb-time-picker-height: 32px;
  --hb-time-picker-border-color: var(--hb-border-color, #dcdfe6);
  --hb-time-picker-border-color-hover: var(--hb-color-primary);
  --hb-time-picker-bg-color: var(--hb-color-white, #ffffff);
}

.hb-time-picker {
  display: inline-block;
  position: relative;
  width: 200px;
}

.hb-time-picker__input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.hb-time-picker__input {
  display: inline-block;
  width: 100%;
  height: var(--hb-time-picker-height);
  line-height: var(--hb-time-picker-height);
  padding: 0 30px 0 15px;
  font-size: var(--hb-time-picker-font-size);
  color: var(--hb-color-text-regular, #606266);
  background-color: var(--hb-time-picker-bg-color);
  border: 1px solid var(--hb-time-picker-border-color);
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hb-time-picker__input:hover:not(:disabled) {
  border-color: var(--hb-time-picker-border-color-hover);
}

.hb-time-picker__suffix {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.hb-time-picker__clear {
  margin-right: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
}

.hb-time-picker__icon {
  font-size: 14px;
}

.hb-time-picker__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background-color: var(--hb-time-picker-bg-color);
  border: 1px solid var(--hb-time-picker-border-color);
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
  max-height: 300px;
}

.hb-time-picker__body {
  display: flex;
  padding: 8px;
}

.hb-time-picker__list {
  flex: 1;
  max-height: 280px;
  overflow-y: auto;
}

.hb-time-picker__list-title {
  text-align: center;
  font-size: 12px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
  padding: 8px 0;
  border-bottom: 1px solid var(--hb-border-color-lighter, #e4e7ed);
}

.hb-time-picker__list-content {
  padding: 4px 0;
}

.hb-time-picker__item {
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--hb-color-text-regular, #606266);
  cursor: pointer;
  transition: background-color 0.2s;
}

.hb-time-picker__item:hover {
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-time-picker__item--selected {
  background-color: var(--hb-color-primary-light-9, #ecf5ff);
  color: var(--hb-color-primary);
  font-weight: 600;
}

.hb-time-picker--small {
  width: 180px;
}

.hb-time-picker--small .hb-time-picker__input {
  height: 24px;
  line-height: 24px;
  font-size: 12px;
}

.hb-time-picker--large {
  width: 220px;
}

.hb-time-picker--large .hb-time-picker__input {
  height: 40px;
  line-height: 40px;
  font-size: 16px;
}

.hb-time-picker--disabled {
  cursor: not-allowed;
}

.hb-time-picker--disabled .hb-time-picker__input {
  background-color: var(--hb-fill-color-light, #f5f7fa);
  border-color: var(--hb-time-picker-border-color);
  color: var(--hb-color-text-disabled, #c0c4cc);
  cursor: not-allowed;
}

