/* Carrrven CMS footer v1.4: native compact/full morph, DB-controlled content, zero placeholders. */
footer[data-carrrven-footer-native-hidden="1"]{display:none!important}
button[data-carrrven-suppress-native-mini="1"]{display:none!important}
#carrrven-db-footer{position:relative;z-index:1;clear:both}
#carrrven-db-footer a:focus-visible,#carrrven-db-mini:focus-visible{outline:2px solid #c7ac75;outline-offset:3px}
#carrrven-db-mini{position:fixed;right:24px;bottom:24px;left:auto;z-index:90;
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 box-sizing:border-box;width:min(420px,calc(100vw - 48px));min-height:64px;
 padding:13px 18px;background:#141817;border:1px solid #555b56;
 border-radius:4px;color:#f3f0e9;text-align:left;cursor:pointer;
 transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
#carrrven-db-mini.is-merged{opacity:0;transform:translateY(22px);visibility:hidden;pointer-events:none}
#carrrven-db-mini .carrrven-db-mini-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#carrrven-db-mini .carrrven-db-mini-copy strong{color:#c7ac75;font-size:10px;font-weight:650;letter-spacing:.14em;text-transform:uppercase}
#carrrven-db-mini .carrrven-db-mini-copy span{font-size:13px;color:#d0d0cc;overflow-wrap:anywhere;line-height:1.35}
#carrrven-db-mini>.material-symbols-outlined{flex:none}
html[data-carrrven-mini-state="shown"] #carrrven-chat-root{
  right:24px!important;bottom:calc(24px + var(--carrrven-mini-height,64px) + 12px)!important;
}
html[data-carrrven-mini-state="hidden"] #carrrven-chat-root{
  right:24px!important;bottom:24px!important;
}
#carrrven-chat-root .cvchat-panel{max-height:min(680px,calc(100dvh - 200px));overflow:auto}
@media(max-width:899px){
 #carrrven-db-mini{right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:min(420px,calc(100vw - 24px))}
 html[data-carrrven-mini-state="shown"] #carrrven-chat-root{
   right:12px!important;bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--carrrven-mini-height,64px) + 12px)!important;
 }
 html[data-carrrven-mini-state="hidden"] #carrrven-chat-root{right:12px!important;bottom:12px!important}
 #carrrven-chat-root .cvchat-panel{max-height:calc(100dvh - 210px)}
}
@media(max-height:500px){
 #carrrven-chat-root .cvchat-panel{max-height:max(120px,calc(100dvh - var(--carrrven-mini-height,64px) - 108px))}
}
@media(prefers-reduced-motion:reduce){#carrrven-db-mini{transition:none}}

/* Visitor maintenance is hidden; authenticated admin preview has full site access. */
html[data-carrrven-maintenance="1"]:not([data-carrrven-owner-preview="1"]) #carrrven-db-footer,
html[data-carrrven-maintenance="1"]:not([data-carrrven-owner-preview="1"]) #carrrven-db-mini,
html[data-carrrven-maintenance="1"]:not([data-carrrven-owner-preview="1"]) #carrrven-chat-root,
html[data-carrrven-maintenance="1"]:not([data-carrrven-owner-preview="1"]) footer,
html[data-carrrven-maintenance="1"]:not([data-carrrven-owner-preview="1"]) .fixed.bottom-6.right-6,
html:not([data-carrrven-owner-preview="1"]) body:has(.maintenance-screen__background) #carrrven-db-footer,
html:not([data-carrrven-owner-preview="1"]) body:has(.maintenance-screen__background) #carrrven-db-mini,
html:not([data-carrrven-owner-preview="1"]) body:has(.maintenance-screen__background) #carrrven-chat-root,
html:not([data-carrrven-owner-preview="1"]) body:has(.maintenance-screen__background) footer{display:none!important}

/* Avoid late-mounted native footer duplicates while DB-backed full footer exists. */
html:has(#carrrven-db-footer) #app footer:not(#carrrven-db-footer){display:none!important}

/* Owner UI v1.9: one compact footer only; native Vue fallback stays available if the CMS footer does not mount. */
html:has(#carrrven-db-mini) #app .cms-footer-block > button.fixed[class*="md:w-[420px]"]{display:none!important}
