/*
Theme Name: Kemin Taksi
Map Style: default

Light look for kemintaksi.fi: white fields on sand cards, ink text, the brand
orange for accents. Reads that site's theme.json presets with the same values
as fallbacks.
*/
.nomon-booking-widget,
.nwtb-booking,
.nwtb-ty {
	--nwtb-bg: #ffffff;
	--nwtb-bg-alt: var(--wp--preset--color--sand, #f4f3f0);
	--nwtb-card: var(--wp--preset--color--sand, #f4f3f0);
	--nwtb-hover: #f7f6f3;
	--nwtb-elev: #ebe8e3;

	--nwtb-line-soft: rgba(27, 25, 23, 0.06);
	--nwtb-line: rgba(27, 25, 23, 0.1);
	--nwtb-line-strong: rgba(27, 25, 23, 0.18);
	--nwtb-line-active: rgba(27, 25, 23, 0.32);

	--nwtb-fg: var(--wp--preset--color--ink, #1b1917);
	--nwtb-muted: rgba(27, 25, 23, 0.72);
	--nwtb-dim: rgba(27, 25, 23, 0.55);
	--nwtb-faint: rgba(27, 25, 23, 0.36);

	--nwtb-accent: var(--wp--preset--color--accent, #f58220);
	--nwtb-accent-deep: #e2701a;
	--nwtb-on-accent: var(--wp--preset--color--ink, #1b1917);
	--nwtb-accent-soft: rgba(245, 130, 32, 0.12);
	--nwtb-accent-soft: color-mix(in srgb, var(--nwtb-accent) 12%, transparent);
	--nwtb-accent-line: rgba(245, 130, 32, 0.4);
	--nwtb-accent-line: color-mix(in srgb, var(--nwtb-accent) 40%, transparent);

	--nwtb-btn: var(--wp--preset--color--ink, #1b1917);
	--nwtb-btn-hover: #000000;
	--nwtb-on-btn: #ffffff;

	--nwtb-danger: #cf2e2e;
	--nwtb-danger-soft: rgba(207, 46, 46, 0.1);
	--nwtb-danger-line: rgba(207, 46, 46, 0.4);

	--nwtb-shadow: rgba(27, 25, 23, 0.16);
	--nwtb-shadow-soft: rgba(27, 25, 23, 0.08);

	--nwtb-font: var(--wp--preset--font-family--hanken, "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif);
	--nwtb-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
	--nwtb-font-size-ui: 1rem;
	--nwtb-font-size-hero: var(--wp--preset--font-size--heading-2, clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 1.329), 2.8125rem));
}

/* Popovers float over white content, so they are white with a hairline, not sand. */
.nomon-booking-widget .nomon-booking-pop,
.nwtb-booking .nwtb-pop {
	background: #ffffff;
	border-color: var(--nwtb-line-strong);
}

/* The site's radius scale is 15px cards; the widget card and its fields follow. */
.nomon-booking-widget__card { border-radius: 15px; }
.nomon-booking-widget [data-field-btn] { border-radius: 10px; }

/* The widget sits in page content here, not at the foot of a hero, so popovers
   open downward instead of up under the sticky header. Desktop only: on phones
   the base CSS makes them a fixed bottom sheet, and top:100% would push it off-screen. */
@media (min-width: 768px) {
	.nomon-booking-widget .nomon-booking-pop {
		top: 100%;
		bottom: auto;
		margin-top: 0.5rem;
		margin-bottom: 0;
		box-shadow: 0 24px 60px var(--nwtb-shadow), 0 2px 8px var(--nwtb-shadow-soft);
	}
}
@keyframes nomon-booking-pop-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}
