.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);
  color: var(--td-text-color-primary);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  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-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: calc(calc(var(--td-comp-size-xs) + var(--td-size-3)) * 7 + var(--td-size-3));
  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.l-time-picker__panel-body-active-mask {
  position: absolute;
  top: 50%;
  height: var(--td-comp-size-xs);
  width: 100%;
  display: flex;
}
.l-time-picker__panel-body-active-mask > div {
  flex: 1;
  transform: translateY(calc(0px - (calc(var(--td-comp-size-xs) + var(--td-size-3)) / 2)));
  height: var(--td-comp-size-xs);
  background-color: var(--td-brand-color-light);
  margin: var(--td-size-3) var(--td-comp-margin-xs);
  border-radius: var(--td-radius-default);
}
.l-time-picker__panel-body-scroll {
  flex: 1;
  height: 100%;
  overflow-y: scroll;
  text-align: center;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
.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: var(--td-comp-size-xs);
  font: var(--td-font-body-medium);
  line-height: var(--td-comp-size-xs);
  color: var(--td-text-color-secondary);
  margin: var(--td-size-3) var(--td-comp-margin-xs);
  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: var(--td-pop-padding-xl) calc(var(--td-pop-padding-xl) - var(--td-comp-margin-xs));
}
.l-time-picker__panel-section-footer {
  width: 100%;
  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: var(--td-pop-padding-xl);
}
