.split-time-source,
.split-date-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.split-time-wrapper,
.split-date-wrapper {
  position: relative;
  min-width: 0;
}

.split-time-wrapper {
  flex: 1 1 0;
}

.split-date-wrapper {
  width: 100%;
}

.picker-dropdown {
  position: relative;
  min-width: 0;
}

.picker-trigger {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  padding: 0 38px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  position: relative;
  text-align: left;
}

.picker-trigger:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.picker-trigger-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.picker-trigger-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.picker-dropdown.is-open .picker-trigger-caret {
  transform: translateY(-35%) rotate(-135deg);
}

.picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 6px;
}

.picker-dropdown.is-open .picker-panel {
  display: block;
}

.picker-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  color: #0f172a;
  font-size: 15px;
  cursor: pointer;
}

.picker-option:hover {
  background: #eff6ff;
}

.picker-option.is-selected {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.split-time-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.split-time-hour,
.split-time-minute {
  flex: 1 1 104px;
  min-width: 104px;
}

.split-time-colon {
  color: #64748b;
  font-weight: 700;
  flex: 0 0 auto;
}

.split-time-field.is-disabled .picker-trigger,
.date-picker-field.is-disabled .picker-trigger {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.split-time-field.is-disabled .picker-trigger-caret,
.date-picker-field.is-disabled .picker-trigger-caret {
  border-color: #94a3b8;
}

.date-picker-panel {
  max-height: none;
  overflow: visible;
  padding: 10px;
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.date-picker-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.date-picker-nav {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.date-picker-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-picker-weekdays {
  margin-bottom: 6px;
}

.date-picker-weekdays span {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.date-picker-empty {
  aspect-ratio: 1;
}

.date-picker-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  font-size: 14px;
}

.date-picker-day:hover {
  background: #eff6ff;
}

.date-picker-day.is-selected {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.date-picker-day.is-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.date-picker-day.is-disabled:hover {
  background: transparent;
}

.date-picker-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.date-picker-action {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

@media (max-width: 840px) {
  .split-time-field {
    gap: 8px;
  }

  .split-time-hour,
  .split-time-minute {
    min-width: 88px;
  }
}
