/*
 * Eventsmaster on the scenario sites: what the themes do not carry themselves. The event page, booking card, date picker and calendar are styled by the themes.
 * Loaded only while an Eventsmaster theme is active (body.em-demo-evm) and never in the checkout's own documents.
 */

/* Header: Pro's cart button (Multiple Bookings) beside the actions */
body.em-demo-evm .evm-header__bar > p:has(.em-cart-button) {
	margin: 0;
}

body.em-demo-evm a.em-cart-button.evm-demo-cart {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.25rem;
	padding: 0 1rem;
	border: 1px solid var(--evm-line);
	border-radius: var(--evm-radius-pill);
	background: var(--evm-surface);
	color: var(--evm-ink);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

body.em-demo-evm a.em-cart-button.evm-demo-cart:hover {
	border-color: var(--evm-primary);
	color: var(--evm-primary-strong);
}

body.em-demo-evm a.em-cart-button .em-cart-button-count:not([hidden]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.375rem;
	height: 1.375rem;
	padding: 0 0.375rem;
	border-radius: var(--evm-radius-pill);
	background: var(--evm-primary);
	color: var(--evm-on-primary);
	font-size: 0.75rem;
}

/* Pro's cart sidecar keeps the checkout's own light panel in every variation while the theme colors its text with the ink tokens, which are light in the dark one; capping their lightness keeps them dark on that panel and leaves the light variations' inks (all darker than the caps) as they are. */
body.em-demo-evm .em-cart-sidecar {
	--evm-ink: oklch(from var(--wp--preset--color--contrast, #0f172a) min(l, 0.3) c h);
	--evm-ink-soft: oklch(from var(--wp--preset--color--contrast-soft, #334155) min(l, 0.4) c h);
	--evm-muted: oklch(from var(--wp--preset--color--muted, #64748b) min(l, 0.555) c h);
}

/* The header search field sits on the header's own color in every variation, including the dark one. */
body.em-demo-evm .evm-header-search .wp-block-search__inside-wrapper {
	background: transparent;
}
