/* Store accessibility layer (dip1023c).
   1. Form-field borders reach 3:1 against the surface they sit on (WCAG 1.4.11).
   2. A visible keyboard focus ring on links, buttons, fields and the FR | EN pill (WCAG 2.4.7).
   Loaded after the store stylesheets. Store pages use the Tailwind tokens below;
   the checkout page (shop.css tokens) is covered by the second block. */

/* ---- store pages (home, product, cart, account, reset-password, success, canceled) ----
   Before: #232F34 on card #12181B = 1.30:1, on page #07090A = 1.45:1.
   After:  #5F737D on page #07090A = 4.02:1, card #12181B = 3.61:1, elevated #161E22 = 3.41:1. */
#root input.border-input,
#root select.border-input,
#root textarea.border-input {
  border-color: #5f737d;
}
#root input.border-input:focus,
#root select.border-input:focus,
#root textarea.border-input:focus {
  border-color: #4ade9f;
}
/* quantity stepper (works in both languages; no aria-label match): boundary was #1F2A2E on #161E22 (1.15:1; after 3.41:1) */
#root div.rounded-pill.border-border:has(> button + span + button) {
  border-color: #5f737d;
}

/* ---- checkout page (css/shop.css tokens) ----
   Before: rgba(255,255,255,.08) on #12151C = about 1.2:1.
   After:  #707A8F on #12151C = 4.24:1, on surface #171B24 = 4.00:1. */
.field input,
.field select,
.field textarea {
  border-color: #707a8f;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(110, 231, 183, 0.9);
}

/* ---- visible focus ring (keyboard only) ----
   Tailwind's outline-none utility (0,1,0) ties with the bundle's global rule and wins by order on some
   controls; these selectors are more specific. Ring colour: store green (#4ADE9F, 11.6:1 on the page)
   or the checkout accent. */
body a:focus-visible,
body button:focus-visible,
body summary:focus-visible,
body [role="button"]:focus-visible,
body [tabindex]:not([tabindex="-1"]):focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
  outline: 2px solid var(--accent, #4ade9f);
  outline-offset: 2px;
}
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
  outline-offset: 1px;
}
/* FR | EN pill: buttons carry inline colours; the ring sits outside the rounded pill */
#mc-shop-lang button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}
/* 3. PR-0727 (Nov 22nd 2026): footer links and buttons are at least 24px tall (WCAG 2.5.8 target size).
   The text keeps its size; only the clickable box grows. */
footer a,
footer button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
