:host {
  display: block;
  min-height: 444px;
  --nylas-primary: #2563eb;
  --nylas-error: #cc4841;
  --nylas-error-50: #ffeae8;
  --nylas-error-100: #ffc5bf;
  --nylas-error-200: #fecaca;
  --nylas-error-pressed: #992222;
  --nylas-wraning: #f06c00;
  --nylas-success: #16a392;
  --nylas-info: #2b8fc2;
  --nylas-base-0: #ffffff;
  --nylas-base-25: #fcfcfd;
  --nylas-base-50: #f8f9fc;
  --nylas-base-100: #eaecf5;
  --nylas-base-200: #d5d9eb;
  --nylas-base-300: #b3b8d8;
  --nylas-base-400: #717bbc;
  --nylas-base-500: #4e5ba6;
  --nylas-base-600: #3e4784;
  --nylas-base-700: #263f72;
  --nylas-base-800: #293056;
  --nylas-base-900: #101323;
  --nylas-base-950: #0e101b;
  --nylas-color-blue-100: #e0e6f9;
  --nylas-border-radius: 0.25rem;
  --nylas-border-radius-2x: 0.5rem;
  --nylas-border-radius-3x: 0.75rem;
  --nylas-font-family: "Inter", sans-serif;
  /* Greys */
  --nylas-color-black: #000000;
  --nylas-color-grey-900: #2c2c2c;
  --nylas-color-grey-800: #4b4b4b;
  --nylas-color-grey-700: #6e6e6e;
  --nylas-color-grey-600: #8e8e8e;
  --nylas-color-grey-500: #b3b3b3;
  --nylas-color-grey-400: #cacaca;
  --nylas-color-grey-300: #e1e1e1;
  --nylas-color-grey-200: #eaeaea;
  --nylas-color-grey-100: #f5f5f5;
  --nylas-color-grey-50: #fbfcfe;
  --nylas-color-white: #ffffff;
  /* Reds */
  --nylas-color-red-900: #992222;
  --nylas-color-red-700: #cc4841;
  --nylas-color-red-500: #ff786a;
  --nylas-color-red-300: #ffa79e;
  --nylas-color-red-100: #ffc5bf;
  --nylas-color-red-50: #ffeae8;
  /* Blues */
  --nylas-color-blue-900: #213571;
  --nylas-color-blue-700: #314fa9;
  --nylas-color-blue-500: #4169e1;
  --nylas-color-blue-300: #bdccf9;
  --nylas-color-blue-100: #e0e6f9;
  --nylas-color-blue-50: #f6f8fd;
  /* Yellows */
  --nylas-color-yellow-900: #7c6506;
  --nylas-color-yellow-700: #c29f09;
  --nylas-color-yellow-500: #f7c90b;
  --nylas-color-yellow-300: #f9de70;
  --nylas-color-yellow-100: #fceba9;
  --nylas-color-yellow-50: #fdf4ce;
  /* Greens */
  --nylas-color-green-900: #0e6b60;
  --nylas-color-green-700: #16a392;
  --nylas-color-green-500: #17c3b2;
  --nylas-color-green-300: #74dbd1;
  --nylas-color-green-100: #a2e7e0;
  --nylas-color-green-50: #d1f3f0;
  /* Purples */
  --nylas-color-purple-900: #643554;
  --nylas-color-purple-700: #954f7d;
  --nylas-color-purple-500: #c769a7;
  --nylas-color-purple-300: #dda5ca;
  --nylas-color-purple-100: #e0bdd6;
  --nylas-color-purple-50: #e9dde5;
  /* Skies */
  --nylas-color-sky-900: #20698f;
  --nylas-color-sky-700: #2b8fc2;
  --nylas-color-sky-500: #6dceff;
  --nylas-color-sky-300: #8fdaff;
  --nylas-color-sky-100: #b8e7ff;
  --nylas-color-sky-50: #d9f2ff;
}
@media screen and (max-width: 768px) {
  :host {
    min-height: auto;
  }
}

.nylas-date-picker {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.header {
  margin: 0 0.5rem;
  height: 48px;
}
.header h2 {
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1rem;
  color: var(--nylas-base-800);
}
.header h2 strong {
  font-weight: 600;
}

.title {
  margin: 0 -1.25rem;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--nylas-base-200);
  font-family: var(--nylas-font-family);
  color: var(--nylas-base-800);
}
.title h1 {
  max-width: 376px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 20px;
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.title p {
  margin-top: 0;
  font-size: 16px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@keyframes pulsate {
  0% {
    background-color: var(--nylas-base-50);
  }
  50% {
    background-color: var(--nylas-base-100);
  }
  100% {
    background-color: var(--nylas-base-50);
  }
}
.dates {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 24px;
}
.dates .date {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 48px;
  width: 48px;
  min-width: 2rem;
  min-height: 2rem;
  cursor: pointer;
  border-radius: var(--nylas-border-radius-2x);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--nylas-base-text);
  background-color: var(--nylas-base-100);
  cursor: pointer;
  border: none;
}
.dates .date:hover:not(:disabled) {
  box-shadow: 0 0 0 2px var(--nylas-base-500) inset;
}
.dates .date.date.current-month {
  color: var(--nylas-base-800);
}
.dates .date.date.selected {
  background-color: var(--nylas-primary);
  color: var(--nylas-base-0);
  font-weight: 700;
}
.dates .date.date.day-skeleton {
  color: var(--nylas-base-300);
}
.dates .date:disabled {
  color: var(--nylas-base-300);
  background-color: transparent;
  font-weight: 400;
  cursor: not-allowed;
}
@media screen and (max-width: 768px) {
  .dates .date {
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
  }
}
@media screen and (max-width: 412px) {
  .dates .date {
    height: 38px;
    min-width: none;
  }
}
.dates .day {
  font-size: 12px;
  color: var(--nylas-base-800);
  font-weight: 600;
  letter-spacing: 0.5px;
  height: 32px;
  display: flex;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .dates .day {
    font-size: 14px;
  }
}
.dates .date.day-skeleton {
  height: 48px;
  width: 48px;
  border-radius: var(--nylas-border-radius-2x);
  animation: pulsate 1.5s infinite ease-in-out;
  background-color: var(--nylas-base-50);
}
@media screen and (max-width: 412px) {
  .dates .date.day-skeleton {
    width: 38px;
    height: 38px;
    min-width: none;
  }
}
.dates .date.current-day::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--nylas-base-500);
}
.dates .date.current-day.selected::after {
  background-color: var(--nylas-base-100);
}

.pagination {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-width: 92px;
}
.pagination .chevron-right {
  transform: rotate(180deg);
}
.pagination .button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 3vh;
  width: 3vh;
  min-width: 3em;
  min-height: 3em;
  cursor: pointer;
  border-radius: var(--nylas-border-radius-2x);
  background-color: transparent;
  color: var(--nylas-base-800);
  cursor: pointer;
  border: none;
}
.pagination .button:hover {
  background-color: var(--nylas-base-50);
}
.pagination .button:active {
  background-color: var(--nylas-base-100);
}
.pagination .button:disabled {
  background-color: transparent;
  color: var(--nylas-base-300);
  cursor: not-allowed;
}

.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: var(--nylas-base-500);
}