.potok-picker-control {
  position: relative;
  width: 100%;
  min-width: 0;
}

.potok-picker-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.potok-picker-trigger {
  width: 100%;
  min-width: 0;
  height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
  border: 1px solid #d2d9e2;
  border-radius: 2px;
  outline: 0;
  background: #fff;
  color: #071528;
  cursor: pointer;
  text-align: left;
  transition: border-color 100ms ease, box-shadow 100ms ease, background 100ms ease;
}

.potok-picker-trigger:hover {
  border-color: #aeb9c7;
}

.potok-picker-trigger:focus-visible,
.potok-picker-control.is-open .potok-picker-trigger {
  border-color: var(--potok-picker-accent, #eb0033);
  box-shadow: 0 0 0 2px rgb(235 0 51 / 9%);
}

.potok-picker-trigger:disabled {
  cursor: not-allowed;
  opacity: .5;
  background: #f5f6f7;
}

.potok-picker-trigger > span {
  overflow: hidden;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.potok-picker-trigger > i {
  color: #071528;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.potok-picker-popover {
  position: fixed;
  z-index: 1000;
  width: 286px;
  padding: 12px;
  border: 1px solid #bdc9d7;
  border-radius: 2px;
  background: #fff;
  color: #071528;
  box-shadow: 0 14px 32px rgb(7 21 40 / 14%);
  font-family: "TT Days Sans", Arial, sans-serif;
  opacity: 0;
  translate: 0 -4px;
  transition: opacity 100ms ease, translate 100ms ease;
}

.potok-picker-popover.is-visible {
  opacity: 1;
  translate: 0;
}

.potok-picker-heading {
  height: 30px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid #e1e6ec;
  padding-bottom: 8px;
}

.potok-picker-heading strong {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
}

.potok-picker-heading button,
.potok-picker-clear {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #687487;
  cursor: pointer;
}

.potok-picker-heading button:hover,
.potok-picker-heading button:focus-visible,
.potok-picker-clear:hover,
.potok-picker-clear:focus-visible {
  border-color: #d5dde7;
  outline: 0;
  color: #eb0033;
  background: #fff7f8;
}

.potok-calendar-weekdays,
.potok-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.potok-calendar-weekdays {
  margin-bottom: 3px;
}

.potok-calendar-weekdays span {
  display: grid;
  place-items: center;
  height: 22px;
  color: #8a94a2;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.potok-calendar-day {
  position: relative;
  height: 31px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #071528;
  cursor: pointer;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.potok-calendar-day:hover,
.potok-calendar-day:focus-visible {
  border-color: #ffc0cb;
  outline: 0;
  background: #fff7f8;
}

.potok-calendar-day.is-outside {
  color: #b4bdc8;
}

.potok-calendar-day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  translate: -50% 0;
  background: #eb0033;
}

.potok-calendar-day.is-selected {
  border-color: #eb0033;
  background: #eb0033;
  color: #fff;
  font-weight: 700;
}

.potok-calendar-day.is-selected::after {
  background: #fff;
}

.potok-picker-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e1e6ec;
}

.potok-picker-clear {
  width: auto;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 700;
}

.potok-time-popover {
  width: 270px;
}

.potok-time-title {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e1e6ec;
  font-size: 12px;
  font-weight: 700;
}

.potok-time-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.potok-time-column > span {
  display: block;
  margin-bottom: 5px;
  color: #87919f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.potok-time-options {
  height: 174px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c9d1dc transparent;
}

.potok-time-options button {
  min-height: 27px;
  padding: 0;
  border: 1px solid #e0e5eb;
  border-radius: 2px;
  background: #fff;
  color: #071528;
  cursor: pointer;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.potok-time-options button:hover,
.potok-time-options button:focus-visible {
  border-color: #ff9daf;
  outline: 0;
  background: #fff7f8;
}

.potok-time-options button.is-selected {
  border-color: #eb0033;
  background: #eb0033;
  color: #fff;
  font-weight: 700;
}

.drawer-meta-field > .potok-picker-control .potok-picker-trigger,
.drawer-time-row > .potok-picker-control .potok-picker-trigger {
  height: 32px;
  padding: 0 7px;
  background: #fbfbfa;
}

.drawer-meta-field > .potok-picker-control .potok-picker-trigger > span,
.drawer-time-row > .potok-picker-control .potok-picker-trigger > span {
  font-size: 9px;
}

.drawer-meta-field > .potok-picker-control .potok-picker-trigger > i,
.drawer-time-row > .potok-picker-control .potok-picker-trigger > i {
  font-size: 13px;
}

.drawer-time-row > .potok-picker-control {
  width: 104px;
}

@media (max-width: 560px) {
  .potok-picker-popover {
    width: min(286px, calc(100vw - 20px));
  }

  .potok-time-popover {
    width: min(270px, calc(100vw - 20px));
  }
}

@media (max-width: 760px) {
  .drawer-meta-field > .potok-picker-control .potok-picker-trigger,
  .drawer-time-row > .potok-picker-control .potok-picker-trigger {
    height: 44px;
  }

  .drawer-meta-field > .potok-picker-control .potok-picker-trigger > span,
  .drawer-time-row > .potok-picker-control .potok-picker-trigger > span {
    font-size: 16px;
  }

  .drawer-meta-field > .potok-picker-control .potok-picker-trigger > i,
  .drawer-time-row > .potok-picker-control .potok-picker-trigger > i {
    font-size: 16px;
  }

  .drawer-time-row > .potok-picker-control {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .potok-picker-popover,
  .potok-picker-trigger {
    transition-duration: .01ms !important;
  }
}
