/*
 * MC Watersports – "−X€" badge on morning-discount time slots.
 * Loaded by wp-content/mu-plugins/maj-mcw-morning-discount.php
 *
 * The badge text is NOT hardcoded here: the discount amount lives in
 * MAJ_MCW_MORNING_DISCOUNT_AMOUNT (PHP) and reaches the DOM through the
 * `data-maj-badge` attribute set by the plugin's inline JS, which this file
 * reads with attr(). That keeps the stylesheet fully static so it can be
 * safelisted as a file for WP Rocket's "Remove Unused CSS" — an inline
 * <style> carrying the amount would be emptied by RUCSS, which is the bug
 * this whole arrangement exists to avoid.
 */

.ph-calendar-date.maj-mcw-morning-slot {
	position: relative;
}

.ph-calendar-date.maj-mcw-morning-slot::after {
	content: attr(data-maj-badge);
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	font-size: 0.85em;
	font-weight: 700;
	color: #c00;
	line-height: 1;
	pointer-events: none;
	transition: color 0.15s ease;
}

.ph-calendar-date.maj-mcw-morning-slot:hover::after,
.ph-calendar-date.maj-mcw-morning-slot.selected-date::after,
.ph-calendar-date.maj-mcw-morning-slot.timepicker-selected-date::after {
	color: #fff;
}
