:host {
  display: block;
  height: 100%;
  --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;
}

.nylas-event-calendar {
  height: inherit;
  padding: 0 16px;
}

.calendar-header {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--nylas-base-0);
}
.calendar-header .calendar-header__row_one {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--nylas-base-200);
}
.calendar-header .calendar-header__row_two {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  justify-self: center;
}
.calendar-header .calendar-header__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--nylas-font-family);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--nylas-base-900);
}
.calendar-header .calendar-header__title .calendar-header-prev-next {
  display: flex;
  align-items: center;
}
.calendar-header .calendar-header__title .calendar-header-prev-next .chevron-right {
  transform: rotate(180deg);
}
.calendar-header .calendar-header__title .calendar-header-prev-next .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;
}
.calendar-header .calendar-header__title .calendar-header-prev-next .button:hover {
  background-color: var(--nylas-base-50);
}
.calendar-header .calendar-header__title .calendar-header-prev-next .button:active {
  background-color: var(--nylas-base-100);
}
.calendar-header .calendar-header__title .calendar-header-prev-next .button:disabled {
  background-color: transparent;
  color: var(--nylas-base-300);
  cursor: not-allowed;
}
.calendar-header .calendar-header__current-calendar {
  padding: 6px 12px;
  border-radius: var(--nylas-border-radius);
  border: 1px solid var(--nylas-base-200);
  color: var(--nylas-base-900);
}
.calendar-header .calendar-header__hide-non-group-events {
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--nylas-base-900);
}
.calendar-header .calendar-header__hide-non-group-events label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.calendar-header .calendar-header__hide-non-group-events tooltip-component::part(tc__content) {
  left: 24px;
}
@media screen and (max-width: 768px) {
  .calendar-header .calendar-header__view-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: -webkit-fill-available;
  }
}
.calendar-header .calendar-header__view-options button {
  color: var(--nylas-base-800);
  background: var(--nylas-base-0);
}
.calendar-header .calendar-header__view-options button.selected {
  background-color: var(--nylas-color-blue-100);
  border-radius: 4px;
}
.calendar-header .calendar-header__view-options button:hover:not(.selected) {
  background: var(--nylas-base-50);
}
@media screen and (max-width: 768px) {
  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }
}

.calendar-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

button {
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border: none;
  background-color: #0073e6;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #005bb5;
}

.calendar-container {
  border-radius: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100% - 16px);
  min-height: 0;
  position: relative;
  overflow-y: auto;
  z-index: 0;
  --fc-today-bg-color: var(--nylas-base-0);
  --fc-now-indicator-color: var(--nylas-error);
  /* Allow proper shrinking within flexbox */
}
@media screen and (max-width: 768px) {
  .calendar-container {
    height: calc(100% - 116px);
  }
}
.calendar-container.show-event {
  height: calc(100% - 456px - 80px - 16px);
}
@media screen and (max-width: 768px) {
  .calendar-container.show-event {
    height: calc(100% - 116px + 16px);
  }
}
.calendar-container.hide {
  display: none;
}
.calendar-container .fc .fc-view-harness {
  /* General Header Styling */
  /* Styling for the Day Name (e.g., SUN, MON) */
  /* Styling for the Day Number (e.g., 31, 01) */
}
.calendar-container .fc .fc-view-harness .fc-scrollgrid {
  border-right-width: 0px;
  position: relative;
  border-top: 0;
}
.calendar-container .fc .fc-view-harness .fc-scrollgrid thead {
  position: sticky !important;
  top: 96px;
  z-index: 2;
}
.calendar-container .fc .fc-view-harness .fc-scrollgrid tbody .fc-timegrid-divider {
  display: none;
}
.calendar-container .fc .fc-view-harness .fc-col-header {
  position: sticky;
  top: 0;
  background: var(--nylas-base-0);
  border-top: 1px solid var(--nylas-base-200);
}
.calendar-container .fc .fc-view-harness .custom-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #1e3a8a;
  /* Navy Blue */
  font-weight: bold;
  text-transform: uppercase;
}
.calendar-container .fc .fc-view-harness .custom-day-header .day-name {
  color: var(--nylas-base-400);
  margin-bottom: 4px;
  font-family: var(--nylas-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}
.calendar-container .fc .fc-view-harness .custom-day-header .day-number {
  font-size: 16px;
  background-color: var(--nylas-base-0);
  color: var(--nylas-base-800);
  padding: 6px;
  border-radius: 50%;
  font-family: var(--nylas-font-family);
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  width: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.calendar-container .fc .fc-view-harness .custom-day-header .day-number.today {
  background-color: var(--nylas-primary);
  color: var(--nylas-base-0);
}
.calendar-container .fc .fc-timegrid-now-indicator-line {
  border-width: 1.5px 0 0;
}
.calendar-container .fc .fc-timegrid-slot-label {
  color: var(--nylas-base-900);
}
.calendar-container .fc .fc-daygrid-day.fc-day-today {
  background-color: transparent;
}
.calendar-container .fc .fc-day-today .fc-daygrid-day-top .fc-daygrid-day-number {
  background-color: var(--nylas-primary);
  color: var(--nylas-base-0);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 8px 8px;
}
.calendar-container .fc .fc-daygrid-day-top {
  flex-direction: row;
}
.calendar-container .fc .fc-daygrid-day-top .fc-daygrid-day-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  color: var(--nylas-base-400);
  font-family: var(--nylas-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}
.calendar-container .fc .fc-v-event {
  border: none;
}
.calendar-container .fc .fc-v-event .fc-event-main {
  border-radius: 2px;
}
.calendar-container .fc .fc-v-event.group-event .fc-event-main {
  background: var(--nylas-color-green-50);
  color: var(--nylas-color-green-900);
}
.calendar-container .fc .fc-v-event.group-event:not(.read-only):not(.no-participants) {
  cursor: pointer;
}
.calendar-container .fc .fc-v-event.regular-event .fc-event-main {
  background: var(--nylas-color-blue-300);
  color: var(--nylas-base-800);
}
.calendar-container .fc .fc-v-event.regular-event:not(.read-only):not(.no-participants) {
  cursor: pointer;
}
.calendar-container .fc .fc-v-event.read-only, .calendar-container .fc .fc-v-event.no-participants {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-options {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 4;
}
@media screen and (max-width: 768px) {
  .action-options {
    height: calc(100% - 96px);
  }
}
.action-options.update-options, .action-options.delete-options, .action-options.discard-changes {
  height: calc(100% + 80px);
  border-bottom-left-radius: var(--nylas-border-radius-2x);
  border-bottom-right-radius: var(--nylas-border-radius-2x);
}
@media screen and (max-width: 768px) {
  .action-options.update-options, .action-options.delete-options, .action-options.discard-changes {
    height: calc(100% + 176px);
  }
}
.action-options .action-options__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--nylas-base-0);
  border-radius: var(--nylas-border-radius-2x);
  min-width: 240px;
}
.action-options .action-options__card.discard-changes__card {
  min-width: 320px;
}
.action-options .action-options__card button-component#close-edit-options,
.action-options .action-options__card button-component#close-update-options,
.action-options .action-options__card button-component#close-delete-options,
.action-options .action-options__card button-component#close-discard-changes,
.action-options .action-options__card button-component#close-choose-participants-modal {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}
.action-options .action-options__card button-component#close-edit-options button,
.action-options .action-options__card button-component#close-update-options button,
.action-options .action-options__card button-component#close-delete-options button,
.action-options .action-options__card button-component#close-discard-changes button,
.action-options .action-options__card button-component#close-choose-participants-modal button {
  padding: 0;
  height: auto;
  width: auto;
}
.action-options .action-options__card button-component#close-edit-options button:hover,
.action-options .action-options__card button-component#close-update-options button:hover,
.action-options .action-options__card button-component#close-delete-options button:hover,
.action-options .action-options__card button-component#close-discard-changes button:hover,
.action-options .action-options__card button-component#close-choose-participants-modal button:hover {
  background-color: transparent !important;
}
.action-options .action-options__card .action-options__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nylas-base-200);
}
.action-options .action-options__card .action-options__header h3 {
  font-family: var(--nylas-font-family);
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--nylas-base-900);
  margin: 0;
  padding: 8px 16px 0;
}
.action-options .action-options__card .edit-options__content ul li#import {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.action-options .action-options__card .action-options__content.choose-participants-modal__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 400px;
  max-height: 200px;
  overflow-y: auto;
}
@media screen and (max-width: 768px) {
  .action-options .action-options__card .action-options__content.choose-participants-modal__content {
    width: -webkit-fill-available;
    max-height: 120px;
  }
}
.action-options .action-options__card .action-options__content.discard-changes__content {
  padding: 24px;
}
.action-options .action-options__card .action-options__content.discard-changes__content h3 {
  font-family: var(--nylas-font-family);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--nylas-base-900);
  margin: 0;
}
.action-options .action-options__card .action-options__content ul {
  padding: 0;
  list-style-type: none;
  color: var(--nylas-base-900);
  max-height: 336px;
}
.action-options .action-options__card .action-options__content ul li {
  padding: 16px, 12px, 16px, 12px;
  color: var(--nylas-base-900);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-family: var(--nylas-font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0px;
  text-align: left;
  cursor: pointer;
}
.action-options .action-options__card .action-options__content ul li:hover, .action-options .action-options__card .action-options__content ul li:focus {
  background-color: var(--nylas-base-100);
}
.action-options .action-options__card .action-options__content ul li.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.action-options .action-options__card .action-options__footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--nylas-base-200);
}

.event-details-container {
  position: absolute;
  bottom: -80px;
  left: 0;
  width: 100%;
  z-index: 3;
  background: var(--nylas-base-0);
  box-shadow: 4px -8px 12px -12px rgba(0, 0, 0, 0.5);
  border-bottom-left-radius: var(--nylas-border-radius-2x);
  border-bottom-right-radius: var(--nylas-border-radius-2x);
}
@media screen and (max-width: 768px) {
  .event-details-container {
    bottom: -176px;
  }
}
.event-details-container .event-details-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--nylas-base-200);
  color: var(--nylas-base-900);
}
.event-details-container .event-details-header div.event-details-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.event-details-container .event-details-header div.event-details-header__actions button-component#close button {
  padding: 0;
  height: auto;
}
.event-details-container .event-details-header div.event-details-header__actions button-component#close button:hover {
  background-color: transparent !important;
}
.event-details-container .event-details {
  max-height: 440px;
  overflow-y: scroll;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.event-details-container .event-details nylas-additional-participants::part(nadtnlpart__content) {
  background-color: var(--nylas-base-0);
}
.event-details-container .event-details.edit-event-details nylas-additional-participants {
  margin: 16px 0;
}
.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nfc) {
  border: none;
}
.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nadtnlpart__title) {
  font-weight: 400;
}
.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nadtnlpart__content) {
  padding: 16px 0;
}
.event-details-container .event-details.edit-event-details nylas-additional-participants::part(nfc__header) {
  padding: 0;
  border-bottom: none;
}
.event-details-container .event-details .event-details-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.event-details-container .event-details-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--nylas-base-200);
}
.event-details-container .event-details-footer .event-details-footer__error {
  color: var(--nylas-error);
  font-family: var(--nylas-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-underline-position: from-font;
}
.event-details-container .event-details-footer .event-details-footer__helper-text {
  color: var(--nylas-base-800);
  font-family: var(--nylas-font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-underline-position: from-font;
}
.event-details-container .event-details-footer .event-details-footer__actions {
  display: flex;
  gap: 16px;
}