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

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

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

.hb-date-time-picker__input {
  display: inline-block;
  width: 100%;
  height: var(--hb-date-time-picker-height);
  line-height: var(--hb-date-time-picker-height);
  padding: 0 30px 0 15px;
  font-size: var(--hb-date-time-picker-font-size);
  color: var(--hb-color-text-regular, #606266);
  background-color: var(--hb-date-time-picker-bg-color);
  border: 1px solid var(--hb-date-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-date-time-picker__suffix {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

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

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

.hb-date-time-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hb-date-time-picker__header-label {
  font-weight: 600;
  font-size: 14px;
}

.hb-date-time-picker__prev-btn,
.hb-date-time-picker__next-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.hb-date-time-picker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.hb-date-time-picker__weekday {
  text-align: center;
  font-size: 12px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
}

.hb-date-time-picker__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.hb-date-time-picker__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
}

.hb-date-time-picker__day:hover:not(.hb-date-time-picker__day--other-month) {
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-date-time-picker__day--selected {
  background-color: var(--hb-color-primary);
  color: var(--hb-color-white, #ffffff);
}

.hb-date-time-picker__time-body {
  display: flex;
  padding: 8px;
}

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

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

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

.hb-date-time-picker__time-item {
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}

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

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

