.dem_eventcalendar_module__calendar {
  min-width: 0;
  width: 100%;
}

.dem_eventcalendar_module__calendar.fc .fc-button,
.dem_eventcalendar_module__calendar.fc .fc-button-group > .fc-button {
  text-transform: capitalize !important;
}

.dem_eventcalendar_module__calendar.fc-theme-standard table {
  margin: 0;
}

.dem_eventcalendar_module__calendar.fc-theme-standard tr td {
  border-top: inherit;
  padding: 0;
}

.dem_eventcalendar_module__calendar .fc-event,
.dem_eventcalendar_module__calendar .fc-list-event {
  cursor: pointer;
}

.dem-event-tooltip {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  color: #333;
  display: none;
  max-height: min(80vh, 520px);
  max-width: min(320px, calc(100vw - 24px));
  overflow: auto;
  position: fixed;
  width: 280px;
  z-index: 10050;
}

.dem-event-tooltip.is-visible {
  display: block;
}

.dem-event-tooltip__card {
  position: relative;
}

.dem-event-tooltip__close {
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  z-index: 1;
}

.dem-event-tooltip__image img {
  display: block;
  height: 140px;
  object-fit: cover;
  width: 100%;
}

.dem-event-tooltip__content {
  padding: 12px 14px 14px;
}

.dem-event-tooltip__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
  padding-right: 24px;
}

.dem-event-tooltip__row {
  display: flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.4;
  margin: 0 0 6px;
}

.dem-event-tooltip__label {
  color: #666;
  flex: 0 0 72px;
  font-weight: 600;
}

.dem-event-tooltip__text {
  min-width: 0;
}

.dem-event-tooltip__tag {
  background: #f1f3f5;
  border-radius: 4px;
  display: inline-block;
  padding: 1px 6px;
}

.dem-event-tooltip__link {
  color: inherit;
  text-decoration: underline;
}

.dem-event-tooltip__excerpt {
  border-top: 1px solid #eee;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
  padding-top: 8px;
}

@media screen and (max-width: 767px) {
  .dem_eventcalendar_module__calendar.fc .fc-header-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .dem_eventcalendar_module__calendar.fc .fc-toolbar-chunk {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    width: 100%;
  }

  .dem_eventcalendar_module__calendar.fc .fc-button-group {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }

  .dem_eventcalendar_module__calendar.fc .fc-toolbar-chunk:last-child .fc-button-group {
    width: 100%;
  }

  .dem_eventcalendar_module__calendar.fc .fc-button-group > .fc-button {
    min-height: 40px;
  }

  .dem_eventcalendar_module__calendar.fc .fc-toolbar-title {
    text-align: center;
    white-space: normal;
  }

  .dem_eventcalendar_module__calendar.fc .fc-daygrid-event .fc-event-title,
  .dem_eventcalendar_module__calendar.fc .fc-list-event-title a {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
