/* WePro V1.2 time field */

.wepro-v12-time-field {
  position: relative;
  width: 100%;
}

.wepro-v12-time-field__trigger {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #111827;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  justify-content: space-between;
  min-height: 40px;
  padding: 8px 12px 8px 14px;
  text-align: left;
  width: 100%;
}

.wepro-v12-time-field__trigger:hover:not(:disabled) {
  border-color: #cfd9e8;
}

.wepro-v12-time-field__trigger:focus,
.wepro-v12-time-field__trigger:focus-visible,
.wepro-v12-time-field.is-open .wepro-v12-time-field__trigger {
  border-color: #cfd9e8;
  box-shadow: none;
  outline: none;
}

.wepro-v12-time-field__trigger:disabled {
  background: #f8fafc;
  border-color: #e8edf3;
  color: #94a3b8;
  cursor: not-allowed;
}

.wepro-v12-time-field__display {
  color: #111827;
  flex: 1 1 auto;
  min-width: 0;
}

.wepro-v12-time-field__display.is-placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.wepro-v12-time-field__trigger i {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 15px;
}

.wepro-v12-time-field-popover {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 12px;
  position: fixed;
  width: min(280px, calc(100vw - 24px));
  z-index: 5200;
}

.wepro-v12-time-field-popover__head {
  display: none;
}

.wepro-v12-time-field-popover__cols {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.wepro-v12-time-field-popover__col {
  min-width: 0;
}

.wepro-v12-time-field-popover__col:last-child {
  width: max-content;
}

.wepro-v12-time-field-popover__label {
  color: #667085;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 6px;
  text-align: center;
  text-transform: uppercase;
}

.wepro-v12-time-field-popover__list {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  max-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}

.wepro-v12-time-field-popover__list::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
  height: 0;
  width: 0;
}

.wepro-v12-time-field-popover__col:last-child .wepro-v12-time-field-popover__list {
  max-height: none;
  min-width: 64px;
  overflow: visible;
}

.wepro-v12-time-field-popover__col:last-child .wepro-v12-time-field-option {
  min-width: 56px;
}

.wepro-v12-time-field-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  margin-bottom: 2px;
  min-height: 34px;
  padding: 0 6px;
  width: 100%;
}

.wepro-v12-time-field-option:last-child {
  margin-bottom: 0;
}

.wepro-v12-time-field-option:hover,
.wepro-v12-time-field-option:focus,
.wepro-v12-time-field-option:focus-visible {
  background: #ffffff;
  border-color: #e8edf3;
  box-shadow: none;
  color: #111827;
  outline: none;
}

.wepro-v12-time-field-option.is-selected {
  background: #e8f7e7;
  border-color: #43b02a;
  color: #2f7d20;
}

.wepro-v12-time-field-popover__footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.wepro-v12-time-field-popover__btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 0 12px;
}

.wepro-v12-time-field-popover__btn:hover,
.wepro-v12-time-field-popover__btn:focus,
.wepro-v12-time-field-popover__btn:focus-visible {
  background: #f8fafc;
  border-color: #cfd9e8;
  box-shadow: none;
  color: #111827;
  outline: none;
}

.wepro-v12-time-field-popover__btn.is-primary {
  background: #43b02a;
  border-color: #43b02a;
  color: #ffffff;
}

.wepro-v12-time-field-popover__btn.is-primary:hover,
.wepro-v12-time-field-popover__btn.is-primary:focus,
.wepro-v12-time-field-popover__btn.is-primary:focus-visible {
  background: #2f861f;
  border-color: #2f861f;
  box-shadow: none;
  color: #ffffff;
  outline: none;
}
