/**
 * CalendarizeIT / Grid View overrides.
 *
 * These are site presentation rules. Keep them in the child theme so the
 * CalendarizeIT plugin and Divi remain updateable independently.
 */

/* Shared calendar tokens. */
.rhcalendar {
	--mn-calendar-accent: #82c1b9;
	--mn-calendar-accent-dark: #689a94;
	--mn-calendar-grid-background: #fff;
}

/* Calendar header and navigation. */
.rhcalendar .fc-header-title h2 {
	text-align: center;
}

.rhcalendar .fc-header-center {
	float: none !important;
	width: 100% !important;
}

/* Calendar filters. */
.rhcalendar .tax_filter_holder button.dropdown-toggle,
.rhcalendar .rh-flat-ui.tax_filter_holder .dropdown-menu {
	background-color: var(--mn-calendar-accent) !important;
}

.rhcalendar .fc-head-control.tax_filter_menu_medium .dropdown-menu {
	min-width: 100%;
}

.rhcalendar .tax_filter_holder .dropdown-menu li.selected > a,
.rhcalendar .tax_filter_holder .dropdown-menu li.selected > a:hover,
.rhcalendar .tax_filter_holder .dropdown-menu li > a:hover,
.rhcalendar .tax_filter_holder .dropdown-menu.rhc-with-tax-color li.selected > a:hover {
	background-color: var(--mn-calendar-accent-dark);
}

/* CalendarizeIT CSS Editor settings. */
.rhcalendar .fc-view-loading .xspinner {
	color: #a5d3c9;
}

.rhcalendar .fe-extrainfo-container.se-dbox {
	border-style: none;
}

/* Grid View appearance. */
.rhcalendar .fc-view-rhc_grid .rhg_grid figcaption {
	background-color: var(--mn-calendar-grid-background);
	border: 0 !important;
}

.rhcalendar .fc-view-rhc_grid .griditem-title {
	font-weight: initial;
}

/* Grid View metadata: retain the existing visual choices without relying on
 * broad [class*=...] selectors outside the Grid View component. */
.rhcalendar .fc-view-rhc_grid [class*='icon-postmeta-']::before,
.rhcalendar .fc-view-rhc_grid [class*='icon-taxonomy-']::before,
.rhcalendar .fc-view-rhc_grid [class*='icon-taxonomymeta-']::before {
	display: none !important;
}

.rhcalendar .fc-view-rhc_grid [class*='icon-postmeta-'],
.rhcalendar .fc-view-rhc_grid [class*='icon-taxonomy-'],
.rhcalendar .fc-view-rhc_grid [class*='icon-taxonomymeta-'] {
	margin-bottom: 0;
}

.rhcalendar .fc-view-rhc_grid [class*='icon-postmeta-'] .fe-extrainfo-value,
.rhcalendar .fc-view-rhc_grid [class*='icon-taxonomy-'] .fe-extrainfo-value,
.rhcalendar .fc-view-rhc_grid [class*='icon-taxonomymeta-'] .fe-extrainfo-value {
	display: inline;
	margin-bottom: 0;
	margin-left: 0;
	text-align: center;
}
