/* OnlineZarada v6 · bridge for pages that still use v5 templates (v6 header/footer + v5 content). */
html[data-oz-mode=light] body.oz6-legacy,body.oz6-legacy{background:var(--bg)!important;color:var(--text)!important;font-family:"OZ Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-oz-mode=dark] body.oz6-legacy{background:#0A1124!important;color:#F2EEE4!important}
/* v6 chrome owns navigation: hide v5 menus, bottom navs and floating appearance switch */
.oz6-legacy .oz-menu-header,.oz6-legacy .ozl-topbar,.oz6-legacy .oz-mobile-nav,.oz6-legacy .ozl-appearance-menu,.oz6-legacy [class$="-bottom-nav"],.oz6-legacy [class*="-bottom-nav "],.oz6-legacy .ozl-v4-stylebar{display:none!important}
@media(max-width:760px){body.oz6-legacy{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}}
/* headings: navy serif with gold accent instead of v5 cyan shimmer */
html[data-oz-mode=light] body.oz6-legacy:not(.home) main h1,body.oz6-legacy:not(.home) main h1,body.oz6-legacy .ozl-community-title h1{font-family:"OZ Serif",Georgia,serif!important;font-weight:600!important;letter-spacing:-.01em!important;color:var(--text)!important;-webkit-text-fill-color:currentColor!important;background:none!important;animation:none!important;filter:none!important}
body.oz6-legacy:not(.home) main h1:after,body.oz6-legacy .ozl-community-title h1:after{display:none!important}
html[data-oz-mode=dark] body.oz6-legacy main h1{color:#F2EEE4!important}
body.oz6-legacy main h2,body.oz6-legacy main h3{font-family:"OZ Serif",Georgia,serif;letter-spacing:-.005em}
/* links and primary buttons in the champagne palette (light mode) */
html[data-oz-mode=light] body.oz6-legacy main a:not([class*=btn]):not([class*=button]):not([class*=card]):not([class*=tile]){color:#6F5222}
html[data-oz-mode=light] body.oz6-legacy main :is(.ozl-button,.oz2-btn-gold,.button-primary,.ozl-btn-primary,.wp-block-button__link,button[type=submit],input[type=submit]){background:linear-gradient(135deg,#F8EDCF 0%,#E6CD93 32%,#CFAE6A 64%,#B08C4C 100%)!important;color:#1C1406!important;border-color:#B8975A!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 8px 20px rgba(176,140,70,.25)!important}
/* light-mode cards and panels get the warm paper tone */
html[data-oz-mode=light] body.oz6-legacy main :is(.ozl-card,.ozl-panel,.ozl-side-card,.oz2-card){background:linear-gradient(180deg,#FFFEFB,#FBF7EF)!important;border-color:#E5DCCA!important}
/* PMPro, WooCommerce and Contact Form 7 */
body.oz6-legacy .pmpro,body.oz6-legacy .woocommerce,body.oz6-legacy .wpcf7{font-family:"OZ Sans",system-ui,sans-serif}
html[data-oz-mode=light] body.oz6-legacy :is(.pmpro_btn,.woocommerce a.button,.woocommerce button.button,.wpcf7-submit){background:linear-gradient(135deg,#F8EDCF,#CFAE6A 64%,#B08C4C)!important;color:#1C1406!important;border:1px solid #B8975A!important;border-radius:999px!important}
/* no horizontal scroll on old wide blocks */
body.oz6-legacy main{overflow-x:clip}
body.oz6-legacy main img,body.oz6-legacy main iframe,body.oz6-legacy main video{max-width:100%}
body.oz6-legacy main table{max-width:100%}
.oz6-legacy [data-oz6-mode]{display:none!important}
/* the v5 stylesheet redefines --bg/--text on html[data-oz-mode=light]; restore the v6 palette for legacy pages */
html[data-oz-mode=light] body.oz6-legacy,html:not([data-oz-mode]) body.oz6-legacy{--bg:#F6F1E7;--bg2:#F0F2F5;--text:#121829;--muted:#535C72;--line:#E5DCCA;--line2:#D6CBB3;--paper:#FFFDF9}

/* light mode: remap the v5 accent tokens (blue/cyan/violet) on legacy pages to the v6 palette */
html[data-oz-mode=light] body.oz6-legacy main,html[data-oz-mode=light] body.oz6-legacy main *,html[data-oz-mode=light] body.oz6-legacy .ozcourse,html[data-oz-mode=light] body.oz6-legacy .ozcourse *{--ozl-accent:#7A5D27!important;--v4-a:#7A5D27!important;--oz-ui-accent:#7A5D27!important;--oz-ui-cyan:#7A5D27!important;--pa-blue:#7A5D27!important;--ozr-accent:#7A5D27!important;--art-a:#7A5D27!important;--ac-blue:#7A5D27!important;--ozlux-cyan:#7A5D27!important;--ozlux-blue:#7A5D27!important;--ozshell-cyan:#7A5D27!important;--ozshell-blue:#7A5D27!important;--oc-cyan:#7A5D27!important;--oc-cyan2:#7A5D27!important;--accent:#7A5D27!important;--fa-blue:#7A5D27!important;--c-blue:#7A5D27!important;--c-cyan:#7A5D27!important;--ct-blue:#7A5D27!important;--tp-blue:#7A5D27!important;--ozshop-cyan:#7A5D27!important;--bl-blue:#7A5D27!important;--m-blue:#7A5D27!important;--m-cyan:#7A5D27!important;--rs-blue:#7A5D27!important;--pa-cyan:#7A5D27!important;--sv-blue:#7A5D27!important;--sv-cyan:#7A5D27!important;--blue:#7A5D27!important;--ab-blue:#7A5D27!important;--pr-blue:#7A5D27!important;--ozc-blue:#7A5D27!important;--ozc-cyan:#7A5D27!important;--au-blue:#7A5D27!important;--ozl-accent2:#2A4FB8!important;--v4-b:#2A4FB8!important;--v4-c:#2A4FB8!important;--pa-purple:#2A4FB8!important;--oc-violet:#2A4FB8!important;--oz-ui-violet:#2A4FB8!important;--ozlux-violet:#2A4FB8!important;--ozshell-violet:#2A4FB8!important;--fa-purple:#2A4FB8!important;--c-purple:#2A4FB8!important;--tp-purple:#2A4FB8!important;--ozshop-violet:#2A4FB8!important;--m-purple:#2A4FB8!important;--pr-purple:#2A4FB8!important;--ozc-purple:#2A4FB8!important;--st-purple:#2A4FB8!important;--v4-metal3:#CDAE6E!important;--oz-ui-heading:#0A1124!important;--oz-ui-bg:#F6F1E7!important;--oz-ui-bg2:#FBF7EF!important;--oz-ui-surface2:#F3ECDD!important;--oz-ui-text:#121829!important;--oz-ui-muted:#535C72!important;--oz-ui-line:#E5DCCA!important}
/* Premium alati: v5 app bar becomes a light secondary bar (no second logo), buttons in v6 gold/navy */
body.oz6-legacy .oztp-appbar{position:relative!important;top:auto!important;background:rgba(255,253,249,.92)!important;border-bottom:1px solid #E5DCCA!important;box-shadow:none!important}
body.oz6-legacy .oztp-appbar .oztp-logo{display:none!important}
body.oz6-legacy :is(.oztp-primary,.oztp-overview,.oztp-upgrade){background:linear-gradient(135deg,#F8EDCF 0%,#E6CD93 32%,#CFAE6A 64%,#B08C4C 100%)!important;color:#1C1406!important;border-color:#B8975A!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 8px 20px rgba(176,140,70,.25)!important}
body.oz6-legacy :is(.oztp-primary,.oztp-overview,.oztp-upgrade) *{color:#1C1406!important}
html[data-oz-mode=light] body.oz6-legacy main h1 :is(span,em){color:#8A6A2E!important;-webkit-text-fill-color:#8A6A2E!important;background:none!important}
html[data-oz-mode=light] body.oz6-legacy :is(.oztp-kicker,.ozc-kicker,.ozbl-kicker,.ozshop-kicker,[class$="-kicker"]){color:#7A5D27!important}
html[data-oz-mode=light] body.oz6-legacy main h2 :is(span,em){color:#8A6A2E!important;-webkit-text-fill-color:#8A6A2E!important;background:none!important}
/* stronger (id-weighted) accents so page-level v5 rules cannot keep the old blue/violet */
html[data-oz-mode=light] body.oz6-legacy :is(h1,h2):not(#oz6-x) :is(span,em,strong){color:#8A6A2E!important;-webkit-text-fill-color:#8A6A2E!important;background:none!important}
html[data-oz-mode=light] body.oz6-legacy main :is(a,button)[class*="primary"]:not(.oztp-primary):not(#oz6-x){background:#0A1124!important;background-image:none!important;color:#fff!important;border-color:#0A1124!important;box-shadow:0 8px 20px rgba(10,17,36,.18)!important}
html[data-oz-mode=light] body.oz6-legacy main :is(a,button)[class*="primary"]:not(.oztp-primary):not(#oz6-x) *{color:#fff!important}
