<style id="calendar-flyout-css">
/* MIXIT7 — Calendar Flyout CSS v3.0 - Cleaned for Mobile */

/* ---------- Backdrop ---------- */
#cal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
#cal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Drawer ---------- */
#cal-flyout {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999;
  height: 100vh;
  width: min(800px, 92vw);
  background: #fff;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .2);
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  border-top-left-radius: 16px;
  overflow: visible;
}
#cal-flyout.open {
  transform: translateX(0);
}
@media (max-width: 767px) {
  #cal-flyout {
    width: 100vw;
    border-top-left-radius: 0;
  }
}

/* Header */
#cal-flyout header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 12px 16px;
  background: #213046;
  border-bottom: 5px solid #F1C000;
  border-top-left-radius: 16px;
}
@media (max-width: 767px) {
  #cal-flyout header {
    border-top-left-radius: 0;
  }
}

#cal-flyout #cal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: #fff;
  font-family: "Raleway", Sans-serif;
}

/* Close Button */
#cal-flyout .cal-close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #213046;
  background: #fff;
  border: 1.5px solid #d7dde6;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background .15s, border-color .15s, transform .05s;
}
#cal-flyout .cal-close:hover {
  color: #213046;
  background: #f8fafc;
  border-color: #c7cdd6;
  transform: translateY(0);
}
#cal-flyout .cal-close:active {
  transform: translateY(1px);
}
#cal-flyout .cal-close:focus {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Body */
#cal-flyout .cal-body {
  padding: 0 16px 16px 16px;
  overflow: visible;
  flex: 1;
}

/* ---------- FULLCALENDAR BUTTON STYLING ---------- */
#cal-flyout .fc-button {
  font-family: "Raleway", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #213046 !important;
  background: #fff !important;
  border: 1px solid #d7dde6 !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 12px rgba(16, 24, 40, .06) !important;
  transition: border-color .15s, box-shadow .15s, background-color .15s !important;
}

#cal-flyout .fc-button:hover:not(:disabled) {
  border-color: #c7cdd6 !important;
  background: #f8fafc !important;
}

#cal-flyout .fc-button-active,
#cal-flyout .fc-button[aria-pressed="true"] {
  border-color: #213046 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 16px rgba(16, 24, 40, .08) !important;
}

/* Calendar Title */
#cal-flyout .fc-toolbar-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  text-transform: uppercase !important;
  color: #213046 !important;
  font-family: "Raleway", sans-serif !important;
}

/* ---------- HIDE SUBSCRIBE BUTTON (CAUSES MOBILE ISSUES) ---------- */
#cal-flyout .r34icspro-subscribe-link-wrapper {
  display: none !important;
}

/* ---------- EVENT STYLING ---------- */
#cal-flyout .fc-event {
  background: #F1C000 !important;
  color: #213046 !important;
  border: none !important;
  font-weight: 600 !important;
}

#cal-flyout .fc-event:hover {
  background: #e6ae00 !important;
}

/* List view events */
#cal-flyout .fc-list-event {
  border-left: 4px solid #F1C000 !important;
}

#cal-flyout .fc-list-event:hover {
  background-color: rgba(241, 192, 0, 0.1) !important;
}

/* ---------- MOBILE OPTIMIZATIONS ---------- */
@media (max-width: 767px) {
  /* Let FullCalendar handle mobile layout naturally */
  #cal-flyout .fc-header-toolbar {
    /* Remove any forced layouts - let plugin handle mobile */
  }
  
  /* Smaller title on mobile */
  #cal-flyout .fc-toolbar-title {
    font-size: 18px !important;
  }
  
  /* Smaller buttons on mobile */
  #cal-flyout .fc-button {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
  
  /* Ensure calendar can scroll horizontally if needed */
  #cal-flyout .cal-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- LIST VIEW ENHANCEMENTS ---------- */
#cal-flyout .fc-list-table {
  width: 100% !important;
}

#cal-flyout .fc-list-day-cushion {
  background: #f8fafc !important;
  color: #213046 !important;
  font-weight: 600 !important;
  font-family: "Raleway", sans-serif !important;
}

#cal-flyout .fc-list-event-title {
  color: #213046 !important;
  font-family: "Raleway", sans-serif !important;
}

#cal-flyout .fc-list-event-time {
  color: #666 !important;
  font-family: "Raleway", sans-serif !important;
}
/* ---------- END FUNCTIONING CSS 17/09/25 ---------- */	

/* ---------- EVENT MODAL/LIGHTBOX STYLING (NO POSITIONING CHANGES) ---------- */

/* Only style the appearance, don't change positioning */
.r34ics_lightbox_inner {
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
}

/* Make date header full width */
.r34ics_lightbox .date_in_hover_block {
  background: linear-gradient(135deg, #213046, #2a3d56) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-align: center !important;
  border-bottom: 4px solid #F1C000 !important;
  padding: 16px 20px !important;
  margin: 0 !important; /* Remove negative margins */
}

/* Improved close button visibility */
.r34ics_lightbox_close {
	position: absolute !important;
	top: 80px !important; /* Below the header */
  top: 12px !important;
  right: 12px !important;
  z-index: 10 !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #213046 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  line-height: 1 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.2s ease !important;
}

.r34ics_lightbox_close:hover {
  background: #fff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.1) !important;
}

/* Content styling only */
.r34ics_lightbox_content {
  font-family: "Raleway", sans-serif !important;
}

/* Date block styling */
.r34ics_lightbox .date_in_hover_block {
  background: linear-gradient(135deg, #213046, #2a3d56) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-align: center !important;
  border-bottom: 4px solid #F1C000 !important;
}

.r34ics_lightbox .multiday-sep {
  color: #F1C000 !important;
  font-weight: 700 !important;
}

/* Event title styling */
.r34ics_lightbox .title_in_hover_block {
  text-align: center !important;
}

.r34ics_lightbox .title_in_hover_block .title {
  font-weight: 700 !important;
  color: #213046 !important;
  line-height: 1.3 !important;
}
/* ---------- END EVENT MODAL/LIGHTBOX STYLING ---------- */
</style>