/*
 * POS-BOOKING design tokens. SPDX-License-Identifier: GPL-3.0-or-later
 *
 * Single source for colours, radii and shadows of the child theme's frontend
 * stylesheets. The values below are the product defaults; the backoffice keeps
 * them. On the frontend, inc/design.php overrides --pb-brand, --pb-on-brand and
 * the radius stages from Customizer > POS-BOOKING Design; inc/site.php sets the
 * font tokens from Divi's typography and inc/presets.php the neutral palette of
 * the chosen style preset.
 *
 * Brand, surface, ink and danger stay plain colours: the Stripe form reads them
 * through --posbooking-stripe-* and needs resolved values. Derived tokens use
 * color-mix() so they follow the brand automatically.
 */
:root {
	/* Brand */
	--pb-brand: #2875e2;
	--pb-on-brand: #fff;
	--pb-brand-strong: color-mix(in srgb, var(--pb-brand) 88%, #000);
	--pb-brand-soft: color-mix(in srgb, var(--pb-brand) 6%, #fff);
	--pb-brand-tint: color-mix(in srgb, var(--pb-brand) 10%, #fff);
	--pb-brand-line: color-mix(in srgb, var(--pb-brand) 30%, #fff);
	--pb-focus-ring: color-mix(in srgb, var(--pb-brand) 12%, transparent);

	/* Text */
	--pb-ink: #172b49;
	--pb-text: #53647d;
	--pb-muted: #5f6f85;

	/* Surfaces and lines */
	--pb-surface: #fff;
	--pb-surface-subtle: #f8fafc;
	--pb-surface-muted: #f3f5f9;
	--pb-line: #e2e7ef;
	--pb-line-strong: #cbd5e3;

	/* Status */
	--pb-success: #287040;
	--pb-success-soft: #edf7ee;
	--pb-danger: #b94032;
	--pb-danger-soft: #fff9f7;
	--pb-danger-line: #eed2cc;
	--pb-attention: #e11d48;
	--pb-on-attention: #fff;

	/* Typography: Divi's font choice via inc/site.php, otherwise the local LatePoint font */
	--pb-font-body: "latepoint", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--pb-font-head: var(--pb-font-body);

	/* Footer: dark, tinted by the brand */
	--pb-footer-base: #12141a;
	--pb-footer-bg: color-mix(in srgb, var(--pb-brand) 14%, var(--pb-footer-base));
	--pb-footer-bar: color-mix(in srgb, #000 25%, var(--pb-footer-bg));
	--pb-on-footer: #fff;
	--pb-on-footer-muted: color-mix(in srgb, #fff 74%, transparent);

	/* Radius stages (Standard) */
	--pb-radius-sm: 8px;
	--pb-radius-md: 12px;
	--pb-radius-lg: 16px;

	/* Shadows and overlays */
	--pb-shadow-xs: 0 2px 6px color-mix(in srgb, var(--pb-ink) 8%, transparent);
	--pb-shadow-sm: 0 4px 18px color-mix(in srgb, var(--pb-ink) 4%, transparent);
	--pb-shadow-md: 0 4px 18px color-mix(in srgb, var(--pb-ink) 6%, transparent);
	--pb-shadow-panel: 0 10px 28px -5px rgb(0 0 0 / 15%), 0 2px 3px rgb(0 0 0 / 12%);
	--pb-shadow-media: 0 8px 24px -8px rgb(0 0 0 / 16%);
	--pb-shadow-raised: 0 10px 28px -5px rgb(0 0 0 / 40%), 0 2px 3px rgb(0 0 0 / 40%);
	--pb-shadow-modal: 0 24px 48px -12px rgb(0 0 0 / 28%), 0 2px 6px rgb(0 0 0 / 8%);
	--pb-overlay: rgb(0 0 0 / 30%);
}
