/*
 * WCAG 2.2 AA contrast corrections, loaded last.
 *
 * Bootstrap's default primary (#0d6efd) and secondary (#6c757d) text colours
 * fall just below the 4.5:1 minimum on the light surfaces used across the
 * storefront (for example 4.21:1 on #f5f8fa). These rules darken only text
 * on light surfaces to Bootstrap's own darker shades. Fills, buttons with
 * white text and dark hero sections are unchanged.
 */

/* Light pill badges, e.g. "Check availability" / "Service enquiry". */
.badge.text-bg-light.text-secondary { color: #565e64 !important; }
.badge.text-bg-light.text-primary { color: #0a58ca !important; }

/* Eyebrow labels and inline primary text on light page backgrounds. */
.site-body main .text-primary:not(.btn):not(.bg-primary) { color: #0a58ca !important; }

/* Outline buttons: darker text and border, unchanged hover fill. */
.site-body main .btn-outline-primary {
  --bs-btn-color: #0a58ca;
  --bs-btn-border-color: #0a58ca;
  --bs-btn-hover-bg: #0a58ca;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-active-bg: #084298;
  --bs-btn-active-border-color: #084298;
}

/* Links inside tinted alerts use the alert's own emphasis colour. */
.alert-info a:not(.btn) { color: #055160; font-weight: 600; }
.alert-warning a:not(.btn) { color: #664d03; font-weight: 600; }
.alert-success a:not(.btn) { color: #0a3622; font-weight: 600; }
.alert-danger a:not(.btn) { color: #58151c; font-weight: 600; }

/* Plain body links on light surfaces (Bootstrap default #0d6efd is 4.3:1). */
.site-body main {
  --bs-link-color-rgb: 10, 88, 202;
  --bs-link-hover-color-rgb: 8, 66, 152;
}

/* Readability: foundation.css lets text inside any .card wrap "anywhere" so
   long emails and URLs never overflow. Inside tables that split prices and
   short labels mid-word ("2,450,0 / 00", "Remo / ve"). Tables already scroll
   horizontally when needed, so only break a word there as a last resort. */
.card table {
  overflow-wrap: break-word;
}

.desktop-cart-table .cart-line-remove {
  white-space: nowrap;
}

.desktop-cart-table .cart-quantity-input {
  min-width: 4.25rem;
}

/* Customer policy pages: readable line length and clear section breaks. */
.policy-body { max-width: 68ch; line-height: 1.7; }
.policy-body h2 { margin: 1.75rem 0 0.5rem; font-size: 1.2rem; font-weight: 700; }
.policy-body ul { padding-left: 1.25rem; }
.policy-body li { margin-bottom: 0.35rem; }
