/* ==========================================================================
   MotoJoy — project-overrides.css
   ---------------------------------------------------------------------------
   This is the ONE file you edit per project. It overrides the design tokens
   defined in main.css :root — never edit main.css itself.

   How it works:
     - main.css declares neutral light-theme defaults on :root.
     - This file re-declares the same custom properties on :root. Because it
       loads AFTER main.css, these values win, and the entire theme (including
       WooCommerce, which also reads these tokens) re-skins automatically.

   To activate it, enqueue this file after the main stylesheet, e.g. in
   functions.php inside motojoy_theme_enqueue_assets():

       wp_enqueue_style(
           'motojoy-project',
           get_theme_file_uri( 'assets/css/project-overrides.css' ),
           array( 'motojoy-main' ),   // <-- depends on main so it loads after
           MOTOJOY_THEME_VERSION
       );

   Override only the tokens you need — anything you omit keeps its main.css
   default.
   ========================================================================== */

:root {
	/* MotoJoy design tokens come from theme.json — nothing overridden here.
	   Token values belong in theme.json (CLAUDE.md §6); this file is now used
	   for the integration boundaries described below. */
}

/* --------------------------------------------------------------------------
   WooCommerce boundary — the checkout country field.

   The store sells and ships to Lithuania only: `woocommerce_allowed_countries`
   is `specific` with a single entry, and exactly one country reports
   allowBilling/allowShipping in the block's own country data. The selector
   therefore offers one real choice and asks the buyer to confirm a decision
   that was never theirs to make.

   This is here rather than in the plugin because WooCommerce refuses to let it
   be configured. `WC_Countries::get_country_locale()` ends by forcibly
   resetting `country.hidden` to false and `country.required` to true for every
   locale entry — country is its locale lookup key. No filter survives that, so
   the only remaining lever is presentation.

   display:none rather than a visual-only hide: there is no choice to make, so
   the field should leave the tab order and the accessibility tree with it.

   Safe because the value is present and valid, not merely defaulted in the UI —
   WC_Customer falls back to woocommerce_default_country (LT) for a new guest.
   VERIFY in a fresh guest session after any change to the store's selling or
   shipping locations: if this ever renders empty, a required field would be
   unfixable. Reassess the whole rule if the store starts selling abroad.
   -------------------------------------------------------------------------- */
.wc-block-checkout .wc-block-components-address-form__country {
	display: none;
}

/* --------------------------------------------------------------------------
   Complianz boundary — the cookie policy document.

   Complianz styles its policy by ID: `#cmplz-document` at max-width 800px and
   font-size 14px, with the same 14px repeated on p/li/td. On a reading page
   that runs ~130 characters per line at a smaller size than the rest of the
   site's legal text. The plugin offers no setting for either, so the reading
   column (content.css) is restated here at ID specificity. Theme styles load
   after the plugin's, which settles the remaining ties.
   -------------------------------------------------------------------------- */
.motojoy-reading-page #cmplz-document {
	max-width: var(--wp--custom--width-reading);
	font-size: var(--wp--custom--text-reading);
}

.motojoy-reading-page #cmplz-document :is(p, li, td) {
	font-size: inherit;
}
