/* Deneyap-themed Flatpickr overrides */
.flatpickr-calendar {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
  font-family: Manrope, system-ui, sans-serif;
  overflow: hidden;
  padding: 0;
  width: 307.875px;
  z-index: 99999 !important;
}

body > .flatpickr-calendar {
  position: absolute;
}

.flatpickr-calendar.animate.open {
  animation: none;
}

.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
  width: 307.875px;
}

.flatpickr-days {
  width: 307.875px;
}

.dayContainer {
  min-width: 307.875px;
  max-width: 307.875px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0;
}

.flatpickr-months {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-red), #e85a2a 48%, var(--brand-yellow));
  display: flex;
  height: 48px;
  position: relative;
}

.flatpickr-months .flatpickr-month {
  background: transparent;
  color: #fff;
  fill: #fff;
  height: 48px;
  overflow: visible;
  position: relative;
}

.flatpickr-current-month {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  left: 12.5%;
  padding: 0;
  position: absolute;
  right: 12.5%;
  text-align: center;
  width: 75%;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  height: auto;
  line-height: 1.2;
  margin: 0;
  padding: 0 2px;
  vertical-align: middle;
}

.flatpickr-current-month .numInputWrapper {
  height: auto;
  width: 4.2ch;
}

.flatpickr-current-month .numInputWrapper span {
  display: none;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  align-items: center;
  display: flex;
  fill: #fff;
  height: 48px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 0;
  width: 40px;
}

.flatpickr-months .flatpickr-prev-month { left: 4px; }
.flatpickr-months .flatpickr-next-month { right: 4px; }

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  height: 14px;
  width: 14px;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #fff;
}

.flatpickr-weekdays {
  background: var(--brand-blue-soft);
  height: 36px;
  margin: 0;
}

.flatpickr-weekdaycontainer,
span.flatpickr-weekday {
  color: var(--brand-blue-deep);
  font-size: 12px;
  font-weight: 800;
  height: 36px;
  line-height: 36px;
  margin: 0;
}

.flatpickr-day {
  align-items: center;
  border-radius: 10px;
  box-sizing: border-box;
  color: #344054;
  display: inline-flex;
  font-weight: 600;
  height: 39px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  max-width: 14.2857143%;
  width: 14.2857143%;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue-soft);
  color: var(--brand-blue-deep);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  font-weight: 800;
}

.flatpickr-day.today {
  border-color: var(--brand-yellow);
}

.flatpickr-day.today:hover {
  background: var(--brand-yellow-soft);
  border-color: var(--brand-yellow);
  color: #9a3412;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #98a2b3;
}

input[data-datepicker] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231b75bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
  padding-right: 40px;
}
