/* ─────────────────────────────────────────────────────────────
   Amelia — CSS Fixes & Overrides
   Plugin/feature: Amelia Booking (ameliabooking)
   Version tested: Amelia v9.4

   If Amelia updates its CSS class names, check the compiled
   stylesheet in:
   wp-content/plugins/ameliabooking/v3/public/
   and update selectors below accordingly.
───────────────────────────────────────────────────────────── */

/* ── FullCalendar Height Fix ─────────────────────────────────
   .fc-daygrid-day-frame is position:absolute; height:calc(100%-5px).
   When FullCalendar initialises inside a hidden element the parent
   <tr> gets height:0 (inline style set by FullCalendar itself),
   which makes calc(100%-5px) = -5px — frames collapse to nothing.
   Fix: explicit height removes the dependency on the parent row's
   computed height. Works on initial open AND after month navigation.
   Amelia class: .am-dp__dayGridMonth-cell */
.am-dp.fc-theme-standard td.am-dp__dayGridMonth-cell .fc-daygrid-day-frame {
    height: 38px !important;
}

/* ── Dialog Cleanup ──────────────────────────────────────────
   Hides elements from Amelia booking dialogs that are already
   shown in our custom sidebar (date, time, location, slots).
   Classes sourced from Amelia v9.4 compiled CSS. */

/* "20 slots left" capacity badge on the event card */
.amelia-v2-booking .am-ec__info-capacity  { display: none !important; }

/* Date / time block on the event card */
.amelia-v2-booking .am-ec__period         { display: none !important; }

/* Location row on the event card */
.amelia-v2-booking .am-ec__info-location  { display: none !important; }

/* Timetable section inside the event-info dialog
   (date + time range — already shown in our sidebar) */
.amelia-v2-booking .am-eli__timetable-main  { display: none !important; }
.amelia-v2-booking .am-eli__timetable-range { display: none !important; }
.amelia-v2-booking .am-eli__timetable-title { display: none !important; }
