/* Rebuild-only rules. Everything visual lives in the legacy stylesheets; this
   file holds (a) the holiday theme switch, which the legacy site did by copying
   files over each other, and (b) hooks the React widgets need that jQuery used
   to set as inline styles. */

/* ---- Holiday theming (admin toggle, campaigns.holiday_start/end) -------- */
[data-variant="holiday"] .stars-bg {
	background-image: url('../images/dcl-desktop-header-stars-holiday.png');
}
@media (max-width: 768px) {
	[data-variant="holiday"] .stars-bg {
		background-image: url('../images/dcl-desktop-header-stars-holiday.png');
	}
}
@media (max-width: 450px) {
	[data-variant="holiday"] .stars-bg {
		background-image: url('../images/dcl-mobile-header-stars-new2-holiday.png');
	}
}
/* The legacy normal-season CSS at ≤450px points at the holiday stars (a
   leftover from the last season swap). Normalise to the normal art. */
@media (max-width: 450px) {
	[data-variant="normal"] .stars-bg {
		background-image: url('../images/dcl-mobile-header-stars-new2.png');
	}
}

/* ---- Widget hooks ------------------------------------------------------- */
/* jQuery UI hid the native <select> with .hide(); the React SelectMenu does
   the same but keeps it in the accessibility tree for the mobile/native path. */
.menu-select[data-enhanced="true"] { display: none; }

/* jQuery UI positioned the open menu with .position(); ours is absolute under
   the button inside a relatively positioned wrapper. */
.ui-selectmenu-menu { position: absolute; top: 100%; left: 0; display: none; }
.ui-selectmenu-menu.ui-selectmenu-open { display: block; }
.ui-selectmenu-menu .ui-menu { overflow-y: auto; }
.form-element { position: relative; }

/* The datepicker popup, like #ui-datepicker-div in jQuery UI: absolutely
   positioned on the page, above everything. */
#ui-datepicker-div { position: absolute; z-index: 10000; display: block; }
#ui-datepicker-div.ui-datepicker-hidden { display: none; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { cursor: pointer; }
.ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }

/* ---- Legacy inline `!important` styles --------------------------------- */
/* pages/main.php put `!important` on a handful of inline styles so they beat
   .center-align's `margin: 0 auto !important`. React can't write inline
   !important, so those few become classes (this file loads last). */
.imp-mb30 { margin-bottom: 30px !important; }
.imp-m10-20 { margin: 10px 0 20px 0 !important; }
.imp-pb25 { padding-bottom: 25px !important; }
.imp-mt25 { margin-top: 25px !important; }
.imp-mb25 { margin-bottom: 25px !important; }
.imp-mt40 { margin-top: 40px !important; }
.imp-mb40 { margin-bottom: 40px !important; }
.imp-minnie-m { margin: -40px 0 0 -15px !important; }
.imp-minnie-d { margin: -45px 0 0 -20px !important; }
.imp-mb20 { margin-bottom: 20px !important; }
