/*
 * CargoPay - CookieConsent v3 brand alignment
 * Registered by application/partials/cookie-consent.phtml, alongside the
 * library's own stylesheet, so it applies wherever the banner is rendered.
 * brand-contrast.css is loaded by the main frontend layout only, and the
 * banner also runs on the driver-log layout, which does not load it.
 *
 * Same principle as brand-contrast.css: the brand green (#0ABF53) keeps its
 * exact surface value and the foreground moves to a shade that passes WCAG
 * 2.1 AA.
 * Ink (#1b212d) on brand green measures 6.60:1, matching .btn-primary.
 *
 * Both buttons are styled identically on purpose. Presenting "Accept all" as
 * the prominent action and "Reject optional" as a muted link is the consent
 * dark pattern EU regulators have repeatedly fined, and the equalWeightButtons
 * option in the config would be undone here if the palette disagreed with it.
 */
#cc-main {
    --cc-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --cc-primary-color: #1b212d;
    --cc-secondary-color: #4a5568;   /* 7.46:1 on #fff */
    --cc-link-color: #077C36;        /* 5.32:1 on #fff, matches --bs-link-color */

    --cc-btn-primary-bg: #0ABF53;
    --cc-btn-primary-color: #1b212d; /* 6.60:1 on #0ABF53 */
    --cc-btn-primary-border-color: #0ABF53;
    --cc-btn-primary-hover-bg: #09A847;
    --cc-btn-primary-hover-color: #1b212d;
    --cc-btn-primary-hover-border-color: #09A847;

    /* Reject keeps equal prominence: same size and weight, outlined not muted */
    --cc-btn-secondary-bg: #ffffff;
    --cc-btn-secondary-color: #1b212d;
    --cc-btn-secondary-border-color: #1b212d;
    --cc-btn-secondary-hover-bg: #eef1f6;
    --cc-btn-secondary-hover-color: #1b212d;
    --cc-btn-secondary-hover-border-color: #1b212d;

    --cc-toggle-on-bg: #077C36;

    --cc-btn-border-radius: 0.5rem;
    --cc-modal-border-radius: 0.75rem;

    /* Above the Unify sticky header and the js-go-to button, below nothing else */
    --cc-z-index: 2147483000;
}
