/* Conversational brief, using the site's Onest font. */
/* Lock the viewport, not the body: a body scroll container breaks sticky sidebars. */
html.pro-chat-open{overflow:hidden}
body.pro-chat-open{overflow:clip}
.chat-origin-hidden{opacity:0!important}
.pro-chat{box-sizing:border-box;position:fixed;inset:auto;left:50%;top:var(--chat-top,50%);transform:translate(-50%,-50%);margin:0;width:min(440px,calc(100vw - 24px));height:min(640px,var(--chat-height,calc(100dvh - 32px)));max-width:none;max-height:none;padding:0;border:0;border-radius:24px;background:#fff;color:#111;box-shadow:0 20px 80px #0002;font-family:Onest,Arial,sans-serif;font-size:16px;line-height:1.35;overflow:hidden}
.pro-chat::backdrop{background:rgba(20,22,24,.22);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.pro-chat{outline:none}
.pro-chat-head,.pro-chat-log,.pro-chat-compose{transition:opacity .22s ease}
.pro-chat-content{position:relative;z-index:3;display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;width:100%;border-radius:inherit;overflow:hidden;clip-path:inset(0 round var(--chat-clip-radius,0px))}
.pro-chat.is-morphing .pro-chat-content{pointer-events:none}
.pro-chat.is-morphing .pro-chat-content>.pro-chat-head,.pro-chat.is-morphing .pro-chat-content>.pro-chat-log,.pro-chat.is-morphing .pro-chat-content>.pro-chat-compose{opacity:0;pointer-events:none;transition:none}
.pro-chat.is-opening .pro-chat-content>.pro-chat-head,.pro-chat.is-opening .pro-chat-content>.pro-chat-log,.pro-chat.is-opening .pro-chat-content>.pro-chat-compose{width:var(--chat-content-width,100%);transform:translateY(12px)}
.pro-chat.is-opening.is-content-visible .pro-chat-content>.pro-chat-head,.pro-chat.is-opening.is-content-visible .pro-chat-content>.pro-chat-log,.pro-chat.is-opening.is-content-visible .pro-chat-content>.pro-chat-compose{opacity:1;transform:none;transition:opacity .32s ease,transform .42s ease}
.pro-chat.is-closing .pro-chat-content>.pro-chat-head,.pro-chat.is-closing .pro-chat-content>.pro-chat-log,.pro-chat.is-closing .pro-chat-content>.pro-chat-compose{width:var(--chat-content-width,100%);opacity:0;transform:translateY(-8px);transition:opacity .18s ease,transform .24s ease}
.pro-chat-origin-echo{overflow:hidden}
.pro-chat.is-fluid-surface{overflow:visible;isolation:isolate;transform:none!important;background:transparent!important;box-shadow:none!important}
.pro-chat-fluid-surface{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:-1;overflow:visible;pointer-events:none}
.pro-chat.is-opening::backdrop{animation:chat-backdrop-in 1.72s ease both}
.pro-chat.is-closing::backdrop{animation:chat-backdrop-out 1.36s ease both}
@keyframes chat-backdrop-out{from{background:rgba(20,22,24,.22);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}55%,to{background:rgba(20,22,24,0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0)}}
@keyframes chat-backdrop-in{from{background:rgba(20,22,24,0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0)}40%{background:rgba(20,22,24,.03);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0)}to{background:rgba(20,22,24,.22);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}}
.pro-chat:not([open]){display:none}
.pro-chat[open]{display:flex;flex-direction:column}
.pro-chat *{box-sizing:border-box}
.pro-chat button,.pro-chat input,.pro-chat textarea{font:inherit;color:inherit;letter-spacing:inherit}
.pro-chat button{cursor:pointer;border:0}
.pro-chat button:disabled{cursor:default;opacity:.28}
.pro-chat button:focus-visible,.pro-chat input[type=checkbox]:focus-visible{outline:2px solid #555;outline-offset:3px}
.pro-chat input[type=text]:focus-visible,.pro-chat input[type=email]:focus-visible,.pro-chat textarea:focus-visible{outline:none;box-shadow:none}
.pro-chat-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;flex:none;padding:18px 20px 12px;gap:12px}
.pro-chat-back,.pro-chat-close{display:grid;place-items:center;background:#efefed;height:36px;padding:0;border-radius:30px;line-height:1}
.pro-chat-back{width:36px;font-size:20px!important}
.pro-chat-close{width:80px;font-size:24px!important;font-weight:300}
.pro-chat-count{justify-self:end;color:#8a8a86;font-size:11px;font-variant-numeric:tabular-nums}
.pro-chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 12px;scrollbar-width:thin;scrollbar-color:#d5d5d1 transparent}
.pro-chat-date{margin:0 0 20px;color:#989893;font-size:12px}
.pro-chat-message{width:fit-content;max-width:100%;margin:0 0 6px;padding:13px 16px;background:#f0f0ee;border-radius:20px;letter-spacing:-.035em;white-space:pre-wrap;overflow-wrap:anywhere}
.pro-chat-message.is-answer{margin:12px 0 16px auto;background:#191919;color:#fff;border-bottom-right-radius:5px;max-width:90%}
.pro-chat-message.is-question{margin-top:18px;border-bottom-left-radius:5px}
.pro-chat-message.is-new{animation:chat-message-in .3s cubic-bezier(.2,.7,.3,1) both}
.pro-chat-message.is-new:nth-child(3){animation-delay:.055s}
.pro-chat-message.is-new:nth-child(4){animation-delay:.11s}
.pro-chat-message[hidden]{display:none}
.pro-chat-typing{display:flex;align-items:center;gap:4px;min-height:21px;padding:0 2px}
.pro-chat-typing i{width:5px;height:5px;border-radius:50%;background:#93938d;animation:chat-typing-dot .9s ease-in-out infinite}
.pro-chat-typing i:nth-child(2){animation-delay:.14s}.pro-chat-typing i:nth-child(3){animation-delay:.28s}
.pro-chat-compose.is-awaiting .pro-chat-input-row,.pro-chat-compose.is-awaiting .pro-chat-choices{opacity:.5;transition:opacity .2s}
.pro-chat-compose{display:flex;flex-direction:column;gap:10px;flex:0 1 auto;margin:0;padding:10px 20px 16px;background:transparent;border:0;min-width:0;min-height:0}
.pro-chat-compose> :not([hidden]){flex-shrink:0}
.pro-chat-compose>.pro-chat-choice{align-self:flex-start;max-width:100%}
.pro-chat-input-row{display:flex;align-items:flex-end;gap:8px;border:1px solid #dadad5;border-radius:18px;padding:7px;background:#fff}
.pro-chat-input-row:focus-within{border-color:#777}
.pro-chat-input-row.is-invalid{border-color:#d54b33}
.pro-chat input[type=text],.pro-chat input[type=email],.pro-chat textarea{min-width:0;flex:1;width:100%;margin:0;padding:11px 8px;background:transparent;border:0;border-radius:10px;box-shadow:none;font-size:16px;line-height:1.4;outline:none;resize:none}
.pro-chat textarea{height:96px;max-height:140px}
.pro-chat input::placeholder,.pro-chat textarea::placeholder{color:#92928d;opacity:1}
.pro-chat-next{flex:none;width:40px;height:40px;border-radius:13px;background:#151515;color:#fff!important;font-size:22px!important;padding:0}
.pro-chat-error{font-size:11px;color:#c7412b;margin:7px 6px 0}
.pro-chat-error[hidden]{display:none}
.pro-chat-note{margin:10px 0 0;text-align:center;font-size:10px;color:#85857f;line-height:1.4}
.pro-chat-choices{display:flex;flex-wrap:wrap;gap:7px}
.pro-chat-choice{min-height:42px;padding:10px 13px;border-radius:14px;background:#efefec;text-align:left;font-size:13px!important;transition:background .2s,color .2s}
.pro-chat-choice:hover,.pro-chat-choice[aria-pressed=true]{background:#1b1b1b;color:#fff}
.pro-chat-finish{display:block;width:100%;min-height:46px;border-radius:15px;background:#181818;color:#fff!important;padding:12px 16px;font-size:14px!important}
.pro-chat-consent{display:flex;align-items:flex-start;gap:9px;margin:0 0 12px;font-size:12px;line-height:1.4}
.pro-chat-consent input{flex:none;width:16px;height:16px;min-height:0;margin:1px 0 0;padding:0;accent-color:#111}
.pro-chat-summary{margin:12px 0 0;padding:5px 14px;background:#f0f0ee;border-radius:18px}
.pro-chat-summary>div{position:relative;padding:10px 48px 10px 0;border-bottom:1px solid #deded9}
.pro-chat-summary>div:last-child{border:0}
.pro-chat-summary dt{font-size:10px;color:#77776f;margin:0 0 4px}
.pro-chat-summary dd{font-size:13px;margin:0;overflow-wrap:anywhere;white-space:pre-wrap;max-height:90px;overflow-y:auto}
.pro-chat-edit{position:absolute;right:0;top:12px;background:transparent;padding:6px 0;font-size:10px!important;text-decoration:underline}
.pro-chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Keep page-wide paragraph scales out of the compact chat UI. */
body.wp-theme-pro-agency .pro-chat .pro-chat-date{font-size:12px!important;line-height:1.4!important}
body.wp-theme-pro-agency .pro-chat .pro-chat-message{font-size:16px!important;line-height:1.45!important}
body.wp-theme-pro-agency .pro-chat .pro-chat-error{font-size:12px!important;line-height:1.4!important}
.pro-chat-compose .pro-chat-consent{margin:0}
@keyframes chat-message-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes chat-typing-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}
@media(min-width:1000px){.pro-chat{width:min(580px,calc(100vw - 48px));height:min(720px,var(--chat-height,calc(100dvh - 32px)))}.pro-chat-head,.pro-chat-log,.pro-chat-compose{padding-left:28px;padding-right:28px}}
@media(max-width:767px){.pro-chat{border-radius:22px;height:min(620px,var(--chat-height,calc(100dvh - 24px)))}.pro-chat-head{padding:16px 16px 8px}.pro-chat-log{padding:14px 16px 10px}.pro-chat-compose{padding:10px 16px 14px}.pro-chat-message{padding:12px 14px}}
@media(max-height:540px){.pro-chat-head{padding-top:10px;padding-bottom:6px}.pro-chat-log{padding-top:6px}.pro-chat-date{margin-bottom:10px}.pro-chat-compose{padding-top:6px;padding-bottom:10px}.pro-chat textarea{height:64px}}
@media(prefers-reduced-motion:reduce){.pro-chat-message.is-new{animation:none}.pro-chat *{scroll-behavior:auto!important;transition:none!important}}
