/* ==========================================================================
   Arcade Bundle: design tokens (shared by the product-page widget and the admin screens)

   Every value the plugin uses lives here under its own prefix, --awb-*, copied from the live site's
   TwoKit values on 2026-10-19 (surfaces, text, borders, radii, spacing, type, motion, brand scale).
   The plugin never reads TwoKit's or Bricks' variables, and never defines an unprefixed one, so it
   can't clash with the theme, Bricks, WooCommerce or wp-admin, and it looks the same everywhere.

   Scope: only on the widget root (.awb) and the admin root (.awb-admin), never on :root.
   The colour of one bundle (--awb-50 … --awb-950 + slots) is set on its .awb element by the plugin.
   ========================================================================== */

:where(.awb, .awb-admin, .awb-preview) {
  /* ---- neutrals ---- */
  --awb-white: #ffffff;
  --awb-black: #000000;

  /* surfaces: 0 = cards / inputs, 1 = page, 2–3 = panels, wells */
  --awb-surface-0: #fefcf8;
  --awb-surface-1: #fcfaf6;
  --awb-surface-2: #f6f4f0;
  --awb-surface-3: #f0eeea;

  --awb-text-primary: #1a1815;
  --awb-text-secondary: #55524e;
  --awb-text-muted: #6b6865;

  --awb-border: rgb(36 27 27 / 0.11);
  --awb-border-strong: rgb(33 33 28 / 0.18);

  /* ---- state colours ---- */
  --awb-success-500: #00bc7d;
  --awb-success-700: #007a55;
  --awb-success-50: #ecfdf5;
  --awb-warning-50: #fffbeb;
  --awb-warning-300: #fcd34d;
  --awb-warning-800: #92400e;
  --awb-error-50: #fff1f2;
  --awb-error-300: #fda4af;
  --awb-error-text: #b6042e;
  --awb-info-50: #eff6ff;
  --awb-info-700: #1d4ed8;

  /* ---- brand scale (ArcadeWrld yellow); also the default bundle colour ---- */
  --awb-brand-50: #fefcf2;
  --awb-brand-100: #fdf8e0;
  --awb-brand-200: #fcf1be;
  --awb-brand-300: #fbe993;
  --awb-brand-400: #fbe164;
  --awb-brand-500: #fcd412;
  --awb-brand-600: #dbb601;
  --awb-brand-700: #ad9003;
  --awb-brand-800: #856f05;
  --awb-brand-900: #6c5a05;
  --awb-brand-950: #4d4104;

  /* ---- the Add to cart button (same look as the live site's primary button) ---- */
  --awb-btn-bg: var(--awb-brand-500);
  --awb-btn-bg-hover: var(--awb-brand-400);
  --awb-btn-text: var(--awb-black);
  --awb-btn-radius: 4px;
  --awb-btn-border-width: 1px;
  --awb-btn-font-size: 1.125rem;

  /* ---- shape ---- */
  --awb-radius-xs: 1.78px;
  --awb-radius-s: 2.66px;
  --awb-radius-m: 4px;
  --awb-radius-l: 6px;
  --awb-radius-xl: 9px;
  --awb-radius-circle: 50vw;
  --awb-focus-width: 1px;
  --awb-focus-color: var(--awb-brand-800);

  /* ---- spacing (TwoKit's fluid scale) ---- */
  --awb-space-3xs: clamp(0.41rem, calc(-0.1vw + 0.43rem), 0.34rem);
  --awb-space-2xs: clamp(0.51rem, calc(-0.04vw + 0.52rem), 0.49rem);
  --awb-space-xs: clamp(0.64rem, calc(0.07vw + 0.62rem), 0.69rem);
  --awb-space-s: clamp(0.8rem, calc(0.26vw + 0.74rem), 0.97rem);
  --awb-space-m: clamp(1rem, calc(0.56vw + 0.87rem), 1.38rem);
  --awb-space-l: clamp(1.25rem, calc(1.04vw + 1.01rem), 1.94rem);

  /* ---- type ---- */
  --awb-font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --awb-text-12: 0.75rem;
  --awb-text-13: 0.8125rem;
  --awb-text-14: 0.88rem;
  --awb-text-16: 1rem;
  --awb-text-18: 1.13rem;
  --awb-text-20: 1.25rem;
  --awb-text-24: 1.5rem;

  /* ---- motion ---- */
  --awb-duration: 200ms;
  --awb-ease: cubic-bezier(0.2, 0, 0, 1);
}
