/*
 * ParcelFly brand colour layer for the website.
 * Loaded only when Theme Appearance → Primary colour differs from the stock blue (or a demo visitor
 * picks a colour); frontend/partials/theme-tokens sets --brand / --brand-rgb just before it.
 */
:root {
    --brand-strong: color-mix(in srgb, var(--brand) 82%, #000);
    --brand-deep: color-mix(in srgb, var(--brand) 45%, #0b1020);
    --brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);

    --primary-color: var(--brand-rgb);
    --clr-def-2: var(--brand);
    --color-primary: rgb(var(--brand-rgb));
    --color-brand-navy: var(--brand-deep);
    --color-brand-teal: var(--brand-strong);
    --color-menu-accent: var(--brand);
    --color-commerce-accent: var(--brand);
    --color-delivery-accent: var(--brand-strong);
    --color-info: var(--brand);
    --surface-brand-soft: var(--brand-soft);
    --pf3-teal-rgb: var(--brand-rgb);
    --pf3-hero-orange: var(--brand);
    --pf3-hero-orange-rgb: var(--brand-rgb);
}

/* Bootstrap utilities that are hard-coded blue in bootstrap.min.css. */
body.has-brand .btn-primary,
body.has-brand .bg-primary,
body.has-brand .badge.bg-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}

body.has-brand .btn-primary:hover,
body.has-brand .btn-primary:focus {
    background-color: var(--brand-strong) !important;
    border-color: var(--brand-strong) !important;
}

body.has-brand .btn-outline-primary {
    color: var(--brand) !important;
    border-color: var(--brand) !important;
}

body.has-brand .btn-outline-primary:hover {
    background-color: var(--brand) !important;
    color: #fff !important;
}

body.has-brand .text-primary,
body.has-brand .link-primary {
    color: var(--brand) !important;
}

body.has-brand .border-primary {
    border-color: var(--brand) !important;
}

body.has-brand .form-control:focus,
body.has-brand .form-select:focus {
    border-color: rgba(var(--brand-rgb), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb), 0.18);
}

body.has-brand .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

body.has-brand .page-item.active .page-link,
body.has-brand .nav-pills .nav-link.active {
    background-color: var(--brand);
    border-color: var(--brand);
}

body.has-brand ::selection {
    background: rgba(var(--brand-rgb), 0.2);
}
