:root {
  --bpn-input-height: 48px; /* input + button height */
  --bpn-color-primary: var(--bpn-theme-primary); /* primary action button bg + border */
  --bpn-color-secondary: var(--bpn-theme-text-secondary); /* reserved for secondary accents */
  --bpn-color-surface: var(--bpn-theme-background-white); /* panel + tabs + results background */
  --bpn-color-surface-subtle: var(--bpn-theme-border-secondary); /* borders + icon tone */
  --bpn-color-muted: var(--bpn-theme-background-light-gray); /* results hover background */
  --bpn-color-accent: var(--bpn-theme-primary); /* active tab + panel border */
  --bpn-color-accent-bg: var(--bpn-theme-background-white); /* active tab + panel background */
  --bpn-color-border-soft: var(--bpn-theme-border-secondary); /* input + tabs border */
  --bpn-text-primary: var(--bpn-theme-text-primary); /* active tab text */
  --bpn-text-secondary: var(--bpn-theme-text-secondary); /* inactive tab + status text */
  --bpn-text-muted: var(--bpn-theme-text-secondary); /* label + placeholder text */
  --bpn-shadow-popover: 0 10px 24px rgba(30, 42, 54, 0.12); /* results dropdown shadow */
  --bpn-button-bg-hover: var(--bpn-theme-primary); /* button hover background */
  --bpn-button-text-hover: var(--bpn-theme-text-primary); /* button hover text */
}

.bpn-lot-search {
  border: 0;
  border-radius: 0;
  padding: 0 0 1rem;
  background: transparent;
  width: 100%;
  position: relative;
  transition: none !important;
}

.bpn-lot-search * {
  transition: none !important;
}

.bpn-lot-search .bpn-lot-search__tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 150px;
  appearance: none;
  -webkit-appearance: none;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 10px 14px;
  margin: 0;
  background: var(--bpn-color-surface-subtle);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--bpn-text-muted);
  line-height: 1;
  text-transform: none;
  position: relative;
  box-shadow: none;
  border-color: var(--bpn-color-border-soft);
  border-width: 1px;
}

.bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("/wp-content/plugins/book-parking-now/assets/images/icons/clock.svg")
    no-repeat center / contain;
  mask: url("/wp-content/plugins/book-parking-now/assets/images/icons/clock.svg")
    no-repeat center / contain;
}

.bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab[data-plan="monthly"]::before {
  -webkit-mask: url("/wp-content/plugins/book-parking-now/assets/images/icons/calendar-2.svg")
    no-repeat center / contain;
  mask: url("/wp-content/plugins/book-parking-now/assets/images/icons/calendar-2.svg")
    no-repeat center / contain;
}

.bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab:active {
  background: var(--bpn-color-surface-subtle);
  color: var(--bpn-text-muted);
  outline: none;
  box-shadow: none;
}

.bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab:focus,
.bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab:focus-visible {
  outline: none;
  box-shadow: none;
}

.bpn-lot-search
  .bpn-lot-search__tabs
  .bpn-lot-search__tab
  + .bpn-lot-search__tab {
  border-top-left-radius: 0;
  margin-left: -4px;
}

.bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab.is-active {
  color: var(--bpn-text-primary);
  border-color: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  background: var(--bpn-color-accent-bg);
  z-index: 2;
  margin-bottom: -1px;
  padding-bottom: 11px;
}

.bpn-lot-search .bpn-lot-search__panel {
  border: 0;
  border-radius: 0 6px 6px 6px;
  padding: 16px;
  background: var(--bpn-color-accent-bg);
}

.bpn-lot-search .bpn-lot-search__fields {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: nowrap;
  background: var(--bpn-color-surface);
  border-radius: 6px;
}

.bpn-lot-search .bpn-lot-search__input {
  position: relative;
  flex: 1 1 0;
  background: var(--bpn-color-surface);
}

.bpn-lot-search .bpn-lot-search__label {
  position: absolute;
  top: 6px;
  left: 15px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bpn-text-muted);
  pointer-events: none;
}

.bpn-lot-search .bpn-lot-search__icon {
  position: absolute;
  left: 14px;
  top: 30px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--bpn-text-muted);
  pointer-events: none;
}

.bpn-lot-search .bpn-lot-search__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.bpn-lot-search .bpn-lot-search__field {
  width: 100%;
  height: var(--bpn-input-height);
  padding: 18px 12px 5px 38px !important;
  border: 0 !important;
  border-radius: 0;
  font-size: 14px;
  background: transparent;
}

.bpn-lot-search .bpn-lot-search__field:disabled,
.bpn-lot-search .bpn-lot-search__time-input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  color: #6a6a6a;
  -webkit-text-fill-color: #6a6a6a;
}

.bpn-lot-search .bpn-lot-search__time {
  position: relative;
  flex: 1 1 0;
  min-width: 180px;
  max-width: 220px;
  border-left: 1px solid #dadada;
  background: var(--bpn-color-surface);
}

.bpn-lot-search .bpn-lot-search__time-input {
  width: 100%;
  height: var(--bpn-input-height);
  padding: 18px 12px 5px 38px !important;
  border: 0 !important;
  border-radius: 0;
  font-size: 14px;
  background: transparent;
  color: #2a2a2a;
}

.bpn-lot-search .bpn-lot-search__time-input::placeholder {
  color: var(--bpn-text-muted);
  font-size: 14px;
}

.bpn-lot-search .bpn-lot-search__action {
  margin-left: 12px;
}

.xdsoft_datetimepicker.xdsoft_noselect.xdsoft_ .xdsoft_timepicker.active {
  /*height: auto !important;*/
}

.xdsoft_datetimepicker {
  z-index: 9999;
  border: 1px solid var(--bpn-color-border-soft);
  border-radius: 10px;
  box-shadow: var(--bpn-shadow-popover);
  font-family: inherit;
  background: var(--bpn-color-surface);
  padding: 0 !important;
  --bpn-dp-height: 200px;
  --bpn-dp-header-bg: #f0f0f0;
  overflow: hidden;
}

.xdsoft_datetimepicker .xdsoft_year {
  margin-left: 0 !important;
  padding-left: 0 !important;
  flex: 0;
}
.xdsoft_datetimepicker .xdsoft_month {
  flex: 0;
}

.xdsoft_today_button,
.xdsoft_datetimepicker .xdsoft_year i,
.xdsoft_datetimepicker .xdsoft_month i,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next {
  display: none !important;
}

.xdsoft_datetimepicker .xdsoft_datepicker.active,
.xdsoft_datetimepicker .xdsoft_datepicker.active + .xdsoft_timepicker {
  margin: 0 !important;
  background-color: #f0f0f0;
}

.xdsoft_datetimepicker .xdsoft_datepicker.active .xdsoft_calendar {
  border-bottom-left-radius: 5px;
  height: 170px !important;
}

.xdsoft_datetimepicker .xdsoft_datetimepicker {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.xdsoft_datetimepicker .xdsoft_datepicker {
  display: flex;
  flex-direction: column;
  overflow: visible;
  width: 250px !important;
}

.xdsoft_datetimepicker .xdsoft_calendar {
  flex: 1 1 auto;
  display: flex;
  background: var(--bpn-color-surface);
  border-bottom-left-radius: 10px;
  overflow: hidden;
}

.xdsoft_datetimepicker .xdsoft_timepicker {
  display: flex;
  flex-direction: column;
  width: 85px;
  min-width: 85px;
  height: var(--bpn-dp-height);
  border-left: 1px solid #aeaeae !important;
}

.xdsoft_calendar table tr,
.xdsoft_calendar table tr:nth-child(even) {
  background-color: white;
  padding-left: 15px !important;
}

.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box {
  flex: 1 1 auto;
  height: var(--bpn-dp-height, auto);
  max-height: none;
  min-height: var(--bpn-dp-height, auto);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #c7c7c7 transparent;
}

.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_variant {
  margin-top: 0 !important;
  height: auto !important;
  background-color: white;
}

.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box::-webkit-scrollbar {
  width: 8px;
}

.xdsoft_datetimepicker
  .xdsoft_timepicker
  .xdsoft_time_box::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 999px;
}

.xdsoft_datetimepicker
  .xdsoft_timepicker
  .xdsoft_time_box::-webkit-scrollbar-track {
  background: transparent;
}

.xdsoft_datetimepicker .xdsoft_timepicker::before {
  content: "Time";
  display: block;
  padding: 4px;
  font-weight: 600;
  color: #2a2a2a;
  border-bottom: 1px solid #aeaeae;
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 15px;
}

.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_calendar th,
.xdsoft_datetimepicker .xdsoft_calendar td > div,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.xdsoft_datetimepicker .xdsoft_calendar th,
.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_calendar td > div {
  color: #000 !important;
  text-align: center !important;
}

.xdsoft_datetimepicker .xdsoft_calendar th,
.xdsoft_time {
  font-weight: 400 !important;
  color: #000 !important;
}

.xdsoft_datetimepicker .xdsoft_calendar td > div {
  color: #000 !important;
  font-weight: 400 !important;
  padding: 3px;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
.xdsoft_datetimepicker
  .xdsoft_timepicker
  .xdsoft_time_box
  > div
  > div.xdsoft_current {
  background: var(--bpn-color-primary) !important;
  color: #000 !important;
  border-radius: 4px;
}

.xdsoft_datetimepicker .xdsoft_monthpicker {
  display: flex;
  justify-content: center;
}

.xdsoft_datetimepicker .xdsoft_monthpicker .xdsoft_prev {
  margin-right: 30px;
}

.xdsoft_datetimepicker .xdsoft_monthpicker .xdsoft_next {
  margin-left: 30px;
}

.xdsoft_datetimepicker .xdsoft_select .xdsoft_option.xdsoft_current {
  background-color: var(--bpn-dp-header-bg) !important;
}

.xdsoft_datetimepicker .xdsoft_monthpicker,
.xdsoft_datetimepicker .xdsoft_label,
.xdsoft_datetimepicker .xdsoft_calendar thead th {
  background: var(--bpn-dp-header-bg) !important;
}

.xdsoft_datetimepicker .xdsoft_monthpicker,
.xdsoft_datetimepicker .xdsoft_label {
  overflow: visible;
}

.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select {
  z-index: 10000;
  max-height: 120px !important;
  overflow-y: auto;
  overflow-x: hidden;
}

.xdsoft_datetimepicker .xdsoft_calendar thead th {
  border-bottom: 1px solid #aeaeae !important;
}

.xdsoft_datetimepicker .xdsoft_calendar table {
  border-collapse: collapse;
  border: 0 !important;
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-bottom-left-radius: 10px;
}

.xdsoft_datetimepicker .xdsoft_scrollbar,
.xdsoft_datetimepicker .xdsoft_scroller {
  display: none !important;
}

.bpn-lot-search .bpn-lot-search__field::placeholder {
  color: var(--bpn-text-muted);
  font-size: 14px;
}

.bpn-lot-search__group {
  padding: 6px 12px;
  font-size: 12px;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7f7f7;
}

.bpn-lot-search .bpn-lot-search__action {
  height: var(--bpn-input-height);
  width: 125px;
  min-width: 125px;
  max-width: 125px;
  padding: 10px 20px;
  border: 1px solid var(--bpn-color-primary);
  border-radius: 6px;
  background: var(--bpn-color-primary);
  color: var(--bpn-theme-background-white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-transform: capitalize;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease !important;
  box-sizing: border-box;
  box-shadow: none;
}

.bpn-lot-search .bpn-lot-search__action.is-loading {
  color: var(--bpn-theme-background-white);
}

.bpn-lot-search .bpn-lot-search__action:disabled,
.bpn-lot-search .bpn-lot-search__action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.7;
}

.bpn-lot-search .bpn-lot-search__action:focus {
  outline: none;
  box-shadow: none;
}

.bpn-lot-search .bpn-lot-search__action:active {
  outline: none;
  box-shadow: none;
}

.bpn-lot-search .bpn-lot-search__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bpn-theme-background-white);
  border-right-color: transparent;
  border-radius: 50%;
  animation: bpn-spinner 0.7s linear infinite;
}

@keyframes bpn-spinner {
  to {
    transform: rotate(360deg);
  }
}

.bpn-lot-search .bpn-lot-search__results {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 6px 0;
  border: 1px solid var(--bpn-color-border-soft);
  border-radius: 10px;
  max-height: 450px;
  overflow-y: auto;
  position: absolute;
  left: 0;
  right: auto;
  width: 50vw;
  max-width: 800px;
  top: 100%;
  transform: none;
  background: var(--bpn-color-surface);
  box-shadow: 0 10px 30px rgba(20, 24, 40, 0.12);
  z-index: 9999;
}

.bpn-lot-search .bpn-lot-search__results[hidden] {
  display: none !important;
}

.bpn-lot-search .bpn-lot-search__results li {
  margin: 0 !important;
}

.bpn-lot-search .bpn-lot-search__results .bpn-lot-search__result {
  padding: 0;
  border-bottom: 0;
}

.bpn-lot-search .bpn-lot-search__results .bpn-lot-search__result-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #2a2a2a;
  text-decoration: none;
  font-family: inherit;
}

.bpn-lot-search .bpn-lot-search__recent-row {
  display: flex;
  align-items: center;
}

.bpn-lot-search .bpn-lot-search__result[data-type="history"]:hover {
  background: #fcfcfd;
}

.bpn-lot-search .bpn-lot-search__recent-select {
  flex: 1 1 auto;
}

.bpn-lot-search .bpn-lot-search__recent-remove {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #9aa0a6;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  opacity: 0.85;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}

.bpn-lot-search .bpn-lot-search__recent-remove:hover {
  background-color: transparent !important;
  color: #9aa0a6;
  opacity: 0.85;
}

.bpn-lot-search .bpn-lot-search__recent-remove:focus,
.bpn-lot-search .bpn-lot-search__recent-remove:focus-visible,
.bpn-lot-search .bpn-lot-search__recent-remove:active {
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #9aa0a6;
  opacity: 0.85;
  transform: none;
}

.bpn-lot-search .bpn-lot-search__results .bpn-lot-search__result:hover {
  background: #f3f4f7;
}

.bpn-lot-search .bpn-lot-search__results .bpn-lot-search__result:last-child {
  border-bottom: none;
}

.bpn-lot-search .bpn-lot-search__results .bpn-lot-search__status-item {
  padding: 0 14px;
  color: var(--bpn-text-secondary);
  font-size: 14px;
  line-height: 1.4;
  cursor: default;
}

.bpn-lot-search .bpn-lot-search__results .bpn-lot-search__result--place .bpn-lot-search__result-link {
  justify-content: flex-start;
  gap: 6px;
}

.bpn-lot-search .bpn-lot-search__suggest-name {
  font-weight: 600;
}

.bpn-lot-search .bpn-lot-search__suggest-text {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.bpn-lot-search .bpn-lot-search__suggest-secondary {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.35;
  color: #6a6a6a;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bpn-lot-search .bpn-lot-search__nearby-primary {
  color: #5f6368;
  font-weight: 600;
}

.bpn-lot-search .bpn-lot-search__nearby-secondary {
  color: #2a2a2a;
  font-weight: 400;
}

.bpn-lot-search .bpn-lot-search__suggest-dash {
  color: #6a6a6a;
  font-weight: 400;
}

.bpn-lot-search .bpn-lot-search__suggest-address {
  color: #6a6a6a;
  font-weight: 300;
  flex: 1 1 auto;
  text-align: left;
}

.bpn-lot-search .bpn-lot-search__suggest-number {
  color: #67708a;
  font-size: 12px;
}

.bpn-lot-search .bpn-lot-search__status {
  margin-top: 0;
  color: var(--bpn-text-secondary);
}

@media (max-width: 900px) {
  .bpn-lot-search {
    border: 1px solid var(--bpn-color-accent);
    border-radius: 6px;
    padding: 16px 16px 1rem;
    background: var(--bpn-color-accent-bg);
  }

  .bpn-lot-search .bpn-lot-search__tabs {
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0 0 12px;
    padding: 6px;
    height: var(--bpn-input-height);
    box-sizing: border-box;
    border-radius: var(--bpn-radius, 6px);
    background: var(--bpn-theme-border-secondary);
    border: 0;
  }

  .bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab {
    flex: 1;
    width: auto;
    min-width: 0;
    height: calc(var(--bpn-input-height) - 12px);
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: var(--bpn-radius, 6px);
    padding: 0 0.85rem;
  }

  .bpn-lot-search
    .bpn-lot-search__tabs
    .bpn-lot-search__tab
    + .bpn-lot-search__tab {
    margin-left: 0;
    border-top-left-radius: 6px;
  }

  .bpn-lot-search .bpn-lot-search__tabs .bpn-lot-search__tab.is-active {
    color: var(--bpn-theme-background-white);
    border-color: var(--bpn-theme-secondary);
    background: var(--bpn-theme-secondary);
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .bpn-lot-search .bpn-lot-search__panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  .bpn-lot-search .bpn-lot-search__fields {
    flex-direction: column;
    gap: 10px;
    background: transparent;
  }

  .bpn-lot-search .bpn-lot-search__fields > * + * {
    border-top: 1px solid #dadada;
  }

  .bpn-lot-search .bpn-lot-search__input,
  .bpn-lot-search .bpn-lot-search__time {
    border-left: 0;
    background: var(--bpn-color-surface);
  }

  .bpn-lot-search .bpn-lot-search__field,
  .bpn-lot-search .bpn-lot-search__time-input {
    border: 0 !important;
    background: transparent;
  }

  .bpn-lot-search .bpn-lot-search__action {
    margin-left: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .bpn-lot-search .bpn-lot-search__time {
    max-width: 100%;
    border-left: 0;
  }

  .bpn-lot-search .bpn-lot-search__results {
    width: auto;
    max-width: none;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
  }

  .bpn-lot-search .bpn-lot-search__results .bpn-lot-search__result-link {
    align-items: flex-start;
  }

  .bpn-lot-search .bpn-lot-search__results .bpn-lot-search__result--place .bpn-lot-search__result-link {
    gap: 12px;
  }

  .bpn-lot-search .bpn-lot-search__recent-row {
    align-items: stretch;
  }

  .bpn-lot-search .bpn-lot-search__recent-select {
    min-width: 0;
  }

  .bpn-lot-search .bpn-lot-search__recent-remove {
    flex: 0 0 auto;
    align-self: center;
    margin-right: 8px;
  }
}
