#ug-header-contact-dialog:not([open]){display:none!important}
#ug-header-contact-dialog{position:fixed;inset:0;margin:auto;padding:0;border:0;border-radius:20px;box-sizing:border-box;width:min(620px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;background:#fff;color:#201d30;font-family:Manrope,Arial,sans-serif;box-shadow:0 20px 70px #201d3040;text-align:left}
#ug-header-contact-dialog::backdrop{background:rgba(32,29,48,.65)}
#ug-header-contact-dialog .ug-hc-body{padding:clamp(20px,4vw,36px)}
#ug-header-contact-dialog .ug-hc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
#ug-header-contact-dialog h2{color:#201d30;font-size:clamp(25px,4vw,34px);line-height:1.15;letter-spacing:-.03em;font-weight:600;margin:0}
#ug-header-contact-dialog .ug-hc-close{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:#f2edf9;color:#201d30}
#ug-header-contact-dialog .ug-hc-close:hover{background:#ff1f8f;color:#fff}
#ug-header-contact-dialog .ug-hc-close svg{width:20px;height:20px}
#ug-header-contact-dialog iframe{display:block;width:100%;height:480px;border:0;background:#fff}
#ug-header-contact-dialog .ug-hc-fallback{display:block;color:#6f65b1;text-decoration:underline;text-underline-offset:3px;font-size:12px;margin:12px 0 0}
#ug-header-contact-dialog,#ug-header-contact-dialog *{cursor:auto!important}
#ug-header-contact-dialog button,#ug-header-contact-dialog button *,#ug-header-contact-dialog a,#ug-header-contact-dialog a *{cursor:pointer!important}
body:has(#ug-header-contact-dialog[open]) #cursorDot,body:has(#ug-header-contact-dialog[open]) #cursorOutline,body:has(#ug-header-contact-dialog[open]) .ug-case-cursor{visibility:hidden!important;opacity:0!important}
@media(max-width:520px){#ug-header-contact-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:16px}#ug-header-contact-dialog .ug-hc-body{padding:18px}}

/* UG contact v2: hide the empty iframe until actual CRM controls exist. */
#ug-header-contact-dialog .ug-hc-slot{position:relative;min-width:0}
#ug-header-contact-dialog .ug-hc-frame-pending{opacity:0;pointer-events:none}
#ug-header-contact-dialog .ug-hc-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#6f65b1;font-size:15px;text-align:center;padding:16px;}
#ug-header-contact-dialog .ug-hc-loading[hidden],#ug-header-contact-dialog .ug-hc-retry[hidden]{display:none!important}
#ug-header-contact-dialog .ug-hc-spinner{width:26px;height:26px;border:2px solid #e8e1f4;border-top-color:#6f65b1;border-radius:50%;animation:ug-hc-spin .8s linear infinite}
#ug-header-contact-dialog .ug-hc-retry{border:1px solid #d5cbe8;border-radius:999px;background:#fff;color:#201d30;padding:8px 18px;font:inherit}
@keyframes ug-hc-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#ug-header-contact-dialog .ug-hc-spinner{animation:none}}
