/* IOF overrides that must load after wp_head() (see header.php).
   The IOF design system itself lives in assets/css/style.css -> dist/style.min.css.
   Only two things belong here:
   1. markup rendered by shared plugins, whose own CSS is printed in wp_head();
   2. a small colour remap for markup this theme cannot edit (functions.php notices, shared
      plugin partials) and for the supplier/channel templates that are not used on this site. */

/* 1. Plugin-rendered markup ------------------------------------------------ */

/* Demo CTA (MISSIRIA_api shortcode [eksneks_test_request_cta]) in the header and sheet menu. */
.demo-cta{display:flex;align-items:center}
.demo-cta .eksneks-test-request-cta{display:inline-flex;align-items:center;justify-content:center;height:2.75rem;margin:0;padding:0 1.3rem;border:0;border-radius:6px;background:var(--iof-red);color:#fff;font-size:.95rem;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap;transition:background-color .15s,color .15s}
.demo-cta .eksneks-test-request-cta:hover,.demo-cta .eksneks-test-request-cta:focus-visible{background:#bd2037;color:#fff}
.sheet__actions .demo-cta{flex:1}
.sheet__actions .demo-cta .eksneks-test-request-cta{width:100%;height:3rem}

/* Consent UI (MISSIRIA_core) ships a gold palette. */
body .eksneks-privacy-settings{border:1px solid var(--iof-red)!important;background:var(--iof-red)!important;color:#fff!important;box-shadow:0 10px 26px rgb(217 39 63/.30)!important}
body .eksneks-privacy-settings:hover,body .eksneks-privacy-settings:focus-visible{border-color:var(--iof-blue)!important;background:var(--iof-blue)!important;color:#fff!important}
body .eksneks-consent-modal__dialog{border-top-color:var(--iof-red)!important}
body .eksneks-consent-modal :is(.eksneks-consent-modal__eyebrow,.eksneks-consent-modal__link,.eksneks-consent-modal__close:hover){color:var(--iof-blue-light)!important}
body .eksneks-consent-modal__close:hover{border-color:var(--iof-blue-light)!important;background:rgb(33 77 135/.24)!important}
body .eksneks-consent-modal :is(.eksneks-consent-modal__close:focus-visible,.eksneks-consent-modal__button:focus-visible){outline-color:var(--iof-blue)!important}
body .eksneks-consent-modal .eksneks-consent-modal__button--primary{border-color:var(--iof-red)!important;background:var(--iof-red)!important;color:#fff!important}
body .eksneks-consent-modal .eksneks-consent-modal__button--primary:hover,body .eksneks-consent-modal .eksneks-consent-modal__button--primary:focus-visible{border-color:var(--iof-blue)!important;background:var(--iof-blue)!important;color:#fff!important}
body .eksneks-consent-modal .eksneks-consent-modal__button--secondary:hover,body .eksneks-consent-modal .eksneks-consent-modal__button--secondary:focus-visible{border-color:var(--iof-blue)!important;color:var(--iof-blue)!important}
body .eksneks-consent-required{border-left-color:var(--iof-red)!important}
body .eksneks-consent-required button{border-color:var(--iof-red)!important;background:var(--iof-red)!important;color:#fff!important}
body .eksneks-consent-required button:hover,body .eksneks-consent-required button:focus-visible{border-color:var(--iof-blue)!important;background:var(--iof-blue)!important;color:#fff!important}

/* 2. Legacy colour remap --------------------------------------------------- */
/* Yellow/amber utilities still arrive from functions.php notices and plugin partials. */
.bg-yellow-50,.bg-yellow-100{background-color:var(--iof-blue-pale)!important}
.bg-yellow-200{background-color:#d6e4f4!important}
.bg-yellow-300,.bg-yellow-400,.bg-yellow-500,.bg-yellow-600{color:#fff!important;background-color:var(--iof-red)!important}
.bg-yellow-700{color:#fff!important;background-color:var(--iof-blue)!important}
.bg-yellow-800,.bg-yellow-900{color:#fff!important;background-color:var(--iof-navy)!important}
.hover\:bg-yellow-50:hover,.hover\:bg-yellow-100:hover,.hover\:bg-yellow-200:hover{background-color:#d6e4f4!important}
.hover\:bg-yellow-300:hover,.hover\:bg-yellow-400:hover,.hover\:bg-yellow-500:hover,.hover\:bg-yellow-600:hover{color:#fff!important;background-color:var(--iof-blue)!important}
.hover\:bg-yellow-700:hover,.hover\:bg-yellow-800:hover,.hover\:bg-yellow-900:hover{color:#fff!important;background-color:var(--iof-navy)!important}
[class*="text-yellow-"],[class*="text-amber-"]{color:var(--iof-blue)!important}
/* Dark-surface variants: only the unused supplier/channel templates still have dark utility shells. */
body:is(.page-template-EKSNEKS_channels,.page-template-EKSNEKS_suppliers,.single-supplier,.post-type-archive-supplier) :is(.bg-black,.bg-gray-900,.bg-slate-950,[class*="bg-[#111827]"],[class*="bg-[#0d1320]"],[class*="bg-[#1a2235]"]) :is([class*="text-yellow-"],[class*="text-amber-"]){color:var(--iof-blue-light)!important}
body:is(.page-template-EKSNEKS_channels,.page-template-EKSNEKS_suppliers,.single-supplier,.post-type-archive-supplier) :is(.bg-black,.bg-gray-900,.bg-slate-950,[class*="bg-[#111827]"],[class*="bg-[#0d1320]"],[class*="bg-[#1a2235]"]) :is(h1,h2,h3,h4,h5,h6,.text-gray-900,.text-black):not(input,select,textarea,option,button){color:#fff!important}
[class*="bg-yellow-400/"],[class*="bg-amber-400/"]{background-color:rgb(33 77 135/.18)!important}
[class*="border-yellow-"],[class*="border-amber-"]{border-color:rgb(155 197 244/.45)!important}
[class*="ring-yellow-"],[class*="ring-amber-"]{--tw-ring-color:rgb(155 197 244/.58)!important}
[class*="accent-yellow-"],[class*="accent-amber-"]{accent-color:var(--iof-red)!important}
[class~="bg-brand-50"],[class~="bg-brand-100"]{background-color:var(--iof-blue-pale)!important}
[class~="bg-brand-200"]{background-color:#d6e4f4!important}
[class~="bg-brand"],[class~="bg-brand-300"],[class~="bg-brand-400"],[class~="bg-brand-500"],[class~="bg-brand-600"]{color:#fff!important;background-color:var(--iof-red)!important}
[class~="bg-brand-700"],[class~="bg-brand-800"],[class~="bg-brand-900"]{color:#fff!important;background-color:var(--iof-navy)!important}
[class*="bg-accent"]{color:#fff!important;background-color:var(--iof-blue)!important}
[class*="text-brand"]{color:var(--iof-red)!important}
[class*="text-accent"]{color:var(--iof-blue)!important}
[class*="border-brand"]{border-color:var(--iof-red)!important}
[class*="border-accent"]{border-color:var(--iof-blue)!important}
[class*="shadow-"][class*="250,204,21"],[class*="shadow-"][class*="245,158,11"]{box-shadow:0 14px 32px rgb(11 24 48/.18)!important}
[class*="drop-shadow-"][class*="250,204,21"],[class*="drop-shadow-"][class*="245,158,11"]{filter:drop-shadow(0 0 18px rgb(33 77 135/.30))!important}
[class*="from-yellow-400"][class*="via-amber-400"][class*="to-yellow-400"]{color:#fff!important;background-image:linear-gradient(110deg,var(--iof-red),var(--iof-blue),var(--iof-red))!important}
[class*="from-yellow-400"][class*="via-amber-400"][class*="to-yellow-400"] :is(.text-black,.text-black/60,.text-black/70){color:#fff!important}
.bg-purple-600{color:#fff!important;background-color:var(--iof-blue)!important}
.hover\:bg-purple-700:hover{color:#fff!important;background-color:var(--iof-navy)!important}
.comment-form.review-form-card input[type="submit"]{color:#fff!important;background:var(--iof-red)!important;border-color:var(--iof-red)!important}
.comment-form.review-form-card .text-yellow-500{color:var(--iof-blue)!important}
.bull-ch-logos::-webkit-scrollbar-thumb{background:var(--iof-red)!important}
@media (max-width:899px){body .eksneks-privacy-settings{bottom:calc(4.6rem + env(safe-area-inset-bottom,0px))!important;right:.75rem!important;padding:.4rem .75rem!important;font-size:.72rem!important;line-height:1.2!important;box-shadow:0 6px 16px rgb(217 39 63/.25)!important}body.single-product .eksneks-privacy-settings{bottom:calc(9.1rem + env(safe-area-inset-bottom,0px))!important}}
