.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-time-picker,
.l-time-range-picker {
  width: 240px;
  background: transparent;
  display: inline-block;
  position: relative;
  font: var(--td-font-body-medium);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--td-text-color-primary);
  font-size: var(--td-font-size-body-medium);
  font-family: var(--td-font-family);
  list-style: none;
}
.l-time-picker.l-is-disabled,
.l-time-range-picker.l-is-disabled {
  cursor: not-allowed;
}
.l-time-picker > *:focus,
.l-time-range-picker > *:focus,
.l-time-picker > *:active,
.l-time-range-picker > *:active {
  outline: 0;
}
.l-time-picker__group,
.l-time-range-picker__group {
  position: relative;
}
.l-time-picker__group.active,
.l-time-range-picker__group.active {
  border: 1px solid var(--td-brand-color);
  box-shadow: 0 0 2px 2px var(--td-brand-color-focus);
}
.l-time-picker__group.active + .l-time-picker__icon-wrap > .l-time-picker__icon-clear,
.l-time-range-picker__group.active + .l-time-picker__icon-wrap > .l-time-picker__icon-clear {
  display: block;
}
.l-time-picker__group-text,
.l-time-range-picker__group-text {
  color: var(--td-text-color-primary);
}
.l-time-picker__group input,
.l-time-range-picker__group input {
  cursor: pointer;
}
.l-time-picker__input,
.l-time-range-picker__input {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 0 8px 0 4px;
  z-index: 1;
  border-radius: var(--td-radius-default);
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  font: var(--td-font-body-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-time-picker__input:hover,
.l-time-range-picker__input:hover {
  border-color: var(--td-brand-color);
}
.l-time-picker__input-placeholder,
.l-time-range-picker__input-placeholder {
  margin-left: 8px;
  color: var(--td-text-color-placeholder);
}
.l-time-picker__input-item,
.l-time-range-picker__input-item {
  height: 22px;
}
.l-time-picker__input-item-disabled,
.l-time-range-picker__input-item-disabled {
  color: var(--td-text-color-disabled);
}
.l-time-picker__input-item-input,
.l-time-range-picker__input-item-input {
  margin: 0 2px;
  color: inherit;
  background: none;
  cursor: pointer;
  height: inherit;
  outline: none;
  width: 28px;
  text-align: center;
  border-radius: var(--td-radius-default);
  border: 0;
  line-height: 22px;
}
.l-time-picker__input-item-input-meridiem,
.l-time-range-picker__input-item-input-meridiem {
  width: 36px;
}
.l-time-picker__input-item-input:focus,
.l-time-range-picker__input-item-input:focus {
  border-color: var(--td-bg-color-page);
  background-color: var(--td-bg-color-container-hover);
}
.l-time-picker__input-disabled,
.l-time-range-picker__input-disabled {
  border: 1px solid var(--td-border-level-2-color);
  background-color: var(--td-bg-color-container-hover);
}
.l-time-picker__input-disabled-placeholder,
.l-time-range-picker__input-disabled-placeholder {
  color: var(--td-text-color-disabled);
}
.l-time-picker__input-disabled-item-input,
.l-time-range-picker__input-disabled-item-input {
  pointer-events: none;
}
.l-time-range-picker {
  width: auto;
}
.l-time-picker__panel {
  width: 280px;
  background: transparent;
  border-radius: var(--td-radius-default);
  display: inline-block;
  position: relative;
  font: var(--td-font-body-medium);
  --timePickerPanelOffsetTop: 15;
  --timePickerPanelOffsetBottom: 21;
}
.l-time-picker__panel-body {
  width: 100%;
  height: 216px;
  position: relative;
  user-select: none;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-time-picker__panel-body-active-mask {
  position: absolute;
  top: 50%;
  height: 24px;
  width: 100%;
  display: flex;
}
.l-time-picker__panel-body-active-mask > div {
  flex: 1;
  transform: translateY(-15px);
  height: 24px;
  background-color: var(--td-brand-color-light);
  margin: 6px 4px;
  border-radius: var(--td-radius-default);
}
.l-time-picker__panel-body-scroll {
  flex: 1;
  height: 100%;
  overflow-y: scroll;
  text-align: center;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-time-picker__panel-body-scroll::-webkit-scrollbar {
  width: 0;
}
.l-time-picker__panel-body-scroll::after,
.l-time-picker__panel-body-scroll::before {
  display: block;
  height: 50%;
  content: "";
}
.l-time-picker__panel-body-scroll::before {
  height: calc(50% - var(--timePickerPanelOffsetTop, 0) * 1px);
}
.l-time-picker__panel-body-scroll::after {
  height: calc(50% - var(--timePickerPanelOffsetBottom, 0) * 1px);
}
.l-time-picker__panel-body-scroll:last-child {
  border-right: 0;
}
.l-time-picker__panel-body-scroll-item {
  height: 24px;
  font: var(--td-font-body-medium);
  line-height: 24px;
  color: var(--td-text-color-secondary);
  margin: 6px 4px;
  border-radius: var(--td-radius-default);
  text-align: center;
  cursor: pointer;
  transition: 0.2s linear;
}
.l-time-picker__panel-body-scroll-item:not(.l-time-picker__panel-body-scroll-item.l-is-current):not(.l-time-picker__panel-body-scroll-item.l-is-disabled):hover {
  color: var(--td-text-color-primary);
}
.l-time-picker__panel-body-scroll-item:not(.l-time-picker__panel-body-scroll-item.l-is-current):not(.l-time-picker__panel-body-scroll-item.l-is-disabled):active {
  background-color: var(--td-bg-color-container-hover);
}
.l-time-picker__panel-body-scroll-item.l-is-disabled {
  color: var(--td-text-color-disabled);
  cursor: not-allowed;
}
.l-time-picker__panel-body-scroll-item.l-is-hidden {
  display: none;
  cursor: not-allowed;
}
.l-time-picker__panel-body-scroll-item.l-is-current {
  color: var(--td-brand-color);
}
.l-time-picker__panel-section-body {
  padding: 0 12px;
}
.l-time-picker__panel-section-footer {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  background-color: transparent;
  position: relative;
  border-top: 1px solid var(--td-border-level-1-color);
  box-sizing: border-box;
  padding: 0 12px;
}
