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

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

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

.hb-time-select__input {
  display: inline-block;
  width: 100%;
  height: var(--hb-time-select-height);
  line-height: var(--hb-time-select-height);
  padding: 0 30px 0 15px;
  font-size: var(--hb-time-select-font-size);
  color: var(--hb-color-text-regular, #606266);
  background-color: var(--hb-time-select-bg-color);
  border: 1px solid var(--hb-time-select-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-select__input:hover:not(:disabled) {
  border-color: var(--hb-time-select-border-color-hover);
}

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

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

.hb-time-select__arrow {
  font-size: 12px;
  transition: transform 0.3s;
}

.hb-time-select--open .hb-time-select__arrow {
  transform: rotate(180deg);
}

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

.hb-time-select__menu {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.hb-time-select__menu-item {
  padding: 8px 20px;
  font-size: var(--hb-time-select-font-size);
  color: var(--hb-color-text-regular, #606266);
  cursor: pointer;
  transition: background-color 0.2s;
}

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

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

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

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

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

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

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

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

