.ui-timepicker-wrapper {
  max-height: 10rem;
  overflow-y: auto;
  margin: 0.125rem 0;
  background: #fff;
  background-clip: padding-box;
  outline: none;
  padding: 0.5rem;
}

.ui-timepicker-list {
  list-style: none;
  padding: 0.125rem 0;
  margin: 0;
}

.ui-timepicker-duration {
  margin-left: 0.25rem;
}
[dir=rtl] .ui-timepicker-duration {
  margin-left: 0;
  margin-right: 0.25rem;
}

.ui-timepicker-list li {
  padding: 0.25rem 0.75rem;
  margin: 0.125rem 0.5625rem;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  border-radius: var(--bs-border-radius);
}
.ui-timepicker-list li.ui-timepicker-disabled, .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled {
  background: #fff !important;
  cursor: default !important;
}

.light-style .ui-timepicker-wrapper {
  z-index: 1091;
  background: #fff;
  box-shadow: 0 0.25rem 0.75rem 0 rgba(34, 48, 62, 0.14);
  border: 0 solid #e4e6e8;
  border-radius: 0.375rem;
}
.light-style .ui-timepicker-list li {
  color: #384551;
}
.light-style .ui-timepicker-list li:hover {
  background: rgba(34, 48, 62, 0.06);
}
.light-style .ui-timepicker-list li:not(.ui-timepicker-selected) .ui-timepicker-duration {
  color: #a7acb2;
}
.ui-timepicker-list:hover .light-style .ui-timepicker-list li:not(.ui-timepicker-selected) .ui-timepicker-duration {
  color: #a7acb2;
}
.light-style .ui-timepicker-list li.ui-timepicker-disabled,
.light-style .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled {
  background: #fff !important;
  color: #a7acb2 !important;
}

.dark-style .ui-timepicker-wrapper {
  border: 0 solid #4e4f6c;
  z-index: 1091;
  background: #2b2c40;
  box-shadow: 0 0.25rem 0.75rem 0 rgba(20, 20, 29, 0.24);
  border-radius: 0.375rem;
}
.dark-style .ui-timepicker-list li {
  color: #d5d5e2;
}
.dark-style .ui-timepicker-list li:hover {
  background: rgba(230, 230, 241, 0.06);
}
.dark-style .ui-timepicker-list li:not(.ui-timepicker-selected) .ui-timepicker-duration {
  color: #7e7f96;
}
.ui-timepicker-list:hover .dark-style .ui-timepicker-list li:not(.ui-timepicker-selected) .ui-timepicker-duration {
  color: #7e7f96;
}
.dark-style .ui-timepicker-list li.ui-timepicker-disabled,
.dark-style .ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled {
  color: #7e7f96 !important;
  background: #2b2c40 !important;
}
