/* EcomTrade24 Pay — Meridian R14: systematic contrast repair.
   R14 loads AFTER R11/R12. It does not change PHP, settlement, WAF, checkout
   validation, payment routing, auth, status colors or data bindings.
   WCAG AA targets: normal text >=4.5:1; large text + key controls >=3:1.
*/
:root{--m14-ink:#182c43;--m14-copy:#344860;--m14-muted:#4f6073;--m14-link:#194d9e;--m14-primary:#194aa9;--m14-primary-hover:#123880;--m14-line:#d7e1eb;--m14-soft:#f3f7fb;--m14-good:#116644;--m14-warn:#86510c;--m14-bad:#a32843}
body.et24-light{color:var(--m14-ink)!important}
body.et24-light :is(main,.admin-content,.merchant-shell,.reseller-content,.blog-content){color:var(--m14-ink)}
/* Root cause of the R11 screenshot problems: dark text on retained navy gradients.
   Convert legacy DARK gradients to genuine light surfaces (not charts, primary buttons,
   R12 brand illustration or deliberate code snippets). */
body.et24-light :is(main,.admin-content,.merchant-shell,.reseller-content) :is(section,article,aside,div)[class*="bg-gradient-to-"]:is([class*="from-slate-9"],[class*="via-slate-9"],[class*="to-slate-9"],[class*="from-emerald-95"],[class*="to-emerald-95"],[class*="from-black"],[class*="to-black"]):not(.et24-preserve-dark):not([class*="md12-"]):not(.et24-keep-gradient){background-image:linear-gradient(125deg,#fff 0%,#f1f6fc 58%,#fdf7f0 100%)!important;background-color:#fff!important;border-color:var(--m14-line)!important;color:var(--m14-ink)!important}
/* Also neutralize old full dark backgrounds from content/landings; remove near-black cards. */
body.et24-light :is(main,.admin-content,.merchant-shell,.reseller-content) :is(section,article,aside,div):is([class*="bg-slate-950/"],[class*="bg-slate-900/"],[class~="bg-slate-950"],[class~="bg-slate-900"],[class*="bg-black/"]):not(.et24-preserve-dark):not([class*="md12-"]):not(.md12-demo-side){background-color:#fff!important;border-color:var(--m14-line)!important;color:var(--m14-ink)!important}
/* Links and button text must NOT inherit R11's dark .text-white override. */
body.et24-light :is(a,button,input[type="submit"],[role="button"]):is([class~="bg-emerald-400"],[class~="bg-emerald-500"],[class~="bg-emerald-600"],[class~="bg-blue-500"],[class~="bg-blue-600"],[class~="bg-blue-700"],[class~="bg-sky-500"],[class~="bg-sky-600"],[class~="bg-indigo-600"],[class~="bg-slate-900"],[class~="bg-slate-950"],[class~="bg-black"],[class*="bg-emerald-500/90"],[class*="bg-blue-600/90"]):not(.et24-preserve-dark){background:#194aa9!important;color:#fff!important;border-color:#194aa9!important;text-decoration:none}
body.et24-light :is(a,button,input[type="submit"],[role="button"]):is([class~="bg-emerald-400"],[class~="bg-emerald-500"],[class~="bg-emerald-600"],[class~="bg-blue-500"],[class~="bg-blue-600"],[class~="bg-blue-700"],[class~="bg-sky-500"],[class~="bg-sky-600"],[class~="bg-indigo-600"],[class~="bg-slate-900"],[class~="bg-slate-950"],[class~="bg-black"]):hover{background:#123880!important;color:#fff!important}
body.et24-light :is(a,button,[role="button"]):is([class~="bg-emerald-400"],[class~="bg-emerald-500"],[class~="bg-emerald-600"],[class~="bg-blue-600"],[class~="bg-slate-900"],[class~="bg-slate-950"]) :is(span,strong,b,small,i,svg){color:#fff!important}
/* R11 replaces .text-white globally, including inside blue buttons. */
body.et24-light :is(a,button,[role="button"])[class*="bg-"]:is(.text-white,.text-slate-50,.text-slate-100,.text-slate-950){color:#fff!important}
/* Ghost/outline actions on light surfaces are readable and retain distinction. */
body.et24-light :is(a,button):is([class*="border-slate-6"],[class*="border-slate-7"]):not([class*="bg-emerald"]):not([class*="bg-blue"]):not([class*="bg-slate-9"]):not(.et24-preserve-dark){border-color:#b6c6d7!important;color:#183956!important;background:#fff!important}
body.et24-light :is(a,button):is([class*="border-slate-6"],[class*="border-slate-7"]):not([class*="bg-emerald"]):not([class*="bg-blue"]):not([class*="bg-slate-9"]):hover{background:#ebf2fb!important;color:#194a9e!important}
/* Readable secondary/help copy, status text and form microcopy. */
body.et24-light :is(.text-slate-400,.text-slate-500,.text-gray-400,.text-gray-500,.text-slate-600,.text-gray-600){color:var(--m14-muted)!important}
body.et24-light :is(.text-sky-100,.text-sky-200,.text-sky-300,.text-cyan-100,.text-cyan-200,.text-cyan-300,[class*="text-sky-200/"],[class*="text-sky-300/"]){color:#24568d!important}
body.et24-light :is(.text-emerald-100,.text-emerald-200,.text-emerald-300,.text-emerald-400,[class*="text-emerald-200/"],[class*="text-emerald-300/"],[class*="text-emerald-400/"]){color:var(--m14-good)!important}
body.et24-light :is(.text-amber-100,.text-amber-200,.text-amber-300,.text-yellow-200,.text-yellow-300,[class*="text-amber-300/"]){color:var(--m14-warn)!important}
body.et24-light :is(.text-rose-100,.text-rose-200,.text-rose-300,.text-red-200,.text-red-300){color:var(--m14-bad)!important}
body.et24-light :is(.text-blue-100,.text-blue-200,.text-blue-300){color:#205390!important}
body.et24-light :is(main,.admin-content,.merchant-shell,.reseller-content) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]){background:#fff!important;color:#192d43!important;border:1px solid #9dabbc!important;opacity:1}
body.et24-light :is(input,textarea)::placeholder{color:#5e6e80!important;opacity:1}
body.et24-light :is(main,.admin-content,.merchant-shell,.reseller-content) :is(input,select,textarea):disabled{background:#f0f3f6!important;color:#4e6173!important;cursor:not-allowed}
body.et24-light :is(main,.admin-content,.merchant-shell,.reseller-content) :is(input,select,textarea):focus{border-color:#2c62ba!important;box-shadow:0 0 0 3px rgba(44,98,186,.12)}
/* Feedback boxes: always distinguish tone by BOTH panel and text, not pale text on pastel. */
body.et24-light :is([class*="bg-emerald-50"],[class*="bg-green-50"],[class*="bg-emerald-500/10"],[class*="bg-emerald-400/10"]):not(a):not(button){background-color:#eaf7ef!important;border-color:#b5dec6!important}
body.et24-light :is([class*="bg-sky-50"],[class*="bg-blue-50"],[class*="bg-sky-500/10"]):not(a):not(button){background-color:#edf4ff!important;border-color:#c6d9f1!important}
body.et24-light :is([class*="bg-amber-50"],[class*="bg-yellow-50"]):not(a):not(button){background-color:#fff8e8!important;border-color:#ebd7a6!important}
body.et24-light :is([class*="bg-rose-50"],[class*="bg-red-50"]):not(a):not(button){background-color:#fff1f3!important;border-color:#f2c7cf!important}
/* Dedicated, easy-to-read marketing callouts, pricing sections & signup. */
body.et24-light .et24-seo-main .et24-seo-hero{background:linear-gradient(125deg,#fcfaf7,#f4f7fd)!important;border-color:var(--m14-line)!important}
body.et24-light .et24-seo-main .et24-seo-cta,body.et24-light .et24-pricing-cta{background:linear-gradient(110deg,#e8f0fb,#fef6ed)!important;color:var(--m14-ink)!important;border:1px solid #cddbeb!important;box-shadow:0 10px 24px rgba(18,50,87,.055)}
body.et24-light .et24-seo-main :is(.et24-seo-hero,.et24-seo-cta) :is(h1,h2,h3,p),body.et24-light .et24-pricing-cta :is(h2,h3,p){color:var(--m14-ink)!important}
body.et24-light .et24-seo-main .et24-seo-cta p,body.et24-light .et24-pricing-cta p{color:var(--m14-copy)!important}
body.et24-light .et24-signup-intro{background:linear-gradient(135deg,#fff,#f0f5fc)!important;border:1px solid var(--m14-line)!important;color:var(--m14-ink)!important}
body.et24-light .et24-signup-intro :is(h1,h2,h3,p,div):not([class*="text-emerald"]){color:var(--m14-ink)!important}
body.et24-light .et24-signup-intro :is(p,small){color:var(--m14-copy)!important}
/* Dashboard feedback/finance controls are intentionally unaffected by checkout process. */
body.et24-role-admin :is(.admin-card,.admin-content),body.et24-role-merchant :is(.merchant-card,.merchant-shell main),body.et24-role-reseller :is(.reseller-card,.reseller-content){color:var(--m14-ink)!important}
body.et24-light :is(.admin-content,.merchant-shell,.reseller-content) :is(table,thead,tbody,tr,td,th){border-color:#d5e0ea!important}
body.et24-light :is(.admin-content,.merchant-shell,.reseller-content) thead{background:#eef3f9!important}
body.et24-light :is(.admin-content,.merchant-shell,.reseller-content) :is(.text-white,.text-slate-100,.text-slate-200,.text-slate-300):not(a):not(button){color:var(--m14-ink)!important}
body.et24-light :is(.admin-content,.merchant-shell,.reseller-content) :is(a,button)[class*="bg-blue"],body.et24-light :is(.admin-content,.merchant-shell,.reseller-content) :is(a,button)[class*="bg-emerald-500"]{color:#fff!important}
/* Blog index, categories, tags, single articles, and stored rich-text posts. */
body.et24-light .et24-blog-prose{color:#2b4057!important;font-size:1rem;line-height:1.82;overflow-wrap:anywhere}
body.et24-light .et24-blog-prose :is(h1,h2,h3,h4,h5,strong,b):not(pre *){color:#162d45!important}
body.et24-light .et24-blog-prose :is(p,li,th,td,blockquote,summary,span,div):not(pre *):not([class*="text-emerald"]){color:#344961!important}
body.et24-light .et24-blog-prose :is(h1,h2,h3){font-weight:750;letter-spacing:-.02em;line-height:1.27}
body.et24-light .et24-blog-prose h2{font-size:clamp(1.35rem,3vw,1.7rem);margin:2rem 0 .8rem}
body.et24-light .et24-blog-prose h3{font-size:1.2rem;margin:1.5rem 0 .6rem}
body.et24-light .et24-blog-prose p{margin:1rem 0}
body.et24-light .et24-blog-prose :is(ul,ol){margin:1rem 0 1rem 1.75rem;list-style-position:outside}
body.et24-light .et24-blog-prose ul{list-style-type:disc}
body.et24-light .et24-blog-prose ol{list-style-type:decimal}
body.et24-light .et24-blog-prose li{margin:.4rem 0}
body.et24-light .et24-blog-prose a{color:var(--m14-link)!important;text-decoration:underline;text-underline-offset:3px}
body.et24-light .et24-blog-prose blockquote{background:#f3f7fb!important;border-left:4px solid #8babc9!important;padding:12px 20px;margin:1.5rem 0;color:#364b62!important}
body.et24-light .et24-blog-prose :is(section,aside,figure){background:#f6f8fc!important;border-color:#d9e3ed!important;color:#263c52!important;border-radius:14px}
body.et24-light .et24-blog-prose :is([style*="color:"],[style*="color :"]):not(pre *):not(a):not(pre):not(code):not(svg):not(path){color:#263d54!important}
body.et24-light .et24-blog-prose [style*="background"]:not(pre):not(code):not(img):not(svg){background:#f3f7fb!important;color:#263d54!important}
body.et24-light .et24-blog-prose :is(table){width:100%;border-collapse:collapse;display:block;overflow:auto;margin:1.5rem 0;max-width:100%}
body.et24-light .et24-blog-prose :is(th,td){border:1px solid #d9e3ed!important;padding:11px 13px;color:#243950!important;background:#fff!important}
body.et24-light .et24-blog-prose th{background:#edf3f9!important;font-weight:750}
body.et24-light .et24-blog-prose :not(pre)>code{background:#edf2f7!important;color:#204b79!important;padding:2px 5px;border-radius:5px}
body.et24-light .et24-blog-prose pre,body.et24-light .et24-blog-prose pre code,body.et24-light .et24-blog-prose pre *{background:#162d44!important;color:#f7fbff!important;border-color:#344d65!important}
body.et24-light .et24-blog-prose pre{overflow-x:auto;padding:18px;border-radius:12px;margin:1.3rem 0}
body.et24-light .et24-blog-prose img{max-width:100%;height:auto;border-radius:12px}
/* Checkout has strict validation and existing state colors: limit repair to clearly unreadable secondary/UI text. */
body.et24-checkout :is(a,button,input[type="submit"])[class*="bg-emerald-500"]{background:#194aa9!important;color:#fff!important}
body.et24-checkout :is(.text-slate-400,.text-slate-500){color:#53667b!important}
body.et24-checkout :is(input,textarea)::placeholder{color:#64748b!important}
@media(max-width:767px){body.et24-light .et24-blog-prose table{display:block;overflow-x:auto}body.et24-light .et24-seo-main :is(a,button){max-width:100%;text-align:center}body.et24-light :is(input,select,textarea){font-size:16px!important}body.et24-light .et24-seo-main .et24-seo-cta{padding:24px!important}}
@media(prefers-reduced-motion:reduce){body.et24-light *{scroll-behavior:auto!important}}
