/* Shared modern surface: widget, customer designer and public style previews. */
.afc-modern-chat{position:relative;isolation:isolate;border:var(--border-width,1px) solid color-mix(in srgb,var(--theme-accent,#ffb46e) 64%,white)!important;border-radius:var(--radius,28px)!important;background:var(--widget-background,#fff);color:var(--widget-text,var(--surface-ink,#10172b));box-shadow:var(--widget-shadow,0 28px 55px -16px #14203d66);overflow:hidden}.afc-modern-chat .chat-head{position:relative;isolation:isolate;display:flex;align-items:center;gap:13px;padding:22px 20px 29px;min-height:98px;overflow:hidden;border:0!important;color:var(--header-text,inherit)}.afc-modern-chat .chat-head:before{content:'';position:absolute;z-index:-1;right:-24%;top:-125px;width:108%;height:195px;transform:rotate(-18deg);border-radius:0 0 50% 50%;border-bottom:1px solid #ffffff99;background:linear-gradient(160deg,transparent 30%,#ffffff88 65%,#ffffff08);pointer-events:none}.afc-modern-chat .chat-head:after{content:'';position:absolute;inset:1px;border:1px solid #ffffff55;border-radius:inherit;pointer-events:none}.afc-modern-chat .chat-head>div:not(.afc-header-controls){min-width:0;flex:1;background:none!important;padding:0!important;border:0!important;border-radius:0!important}.afc-modern-chat .chat-head strong,.afc-modern-chat .chat-head h1,.afc-modern-chat #preview-title{position:relative;background:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0;min-width:0;font-size:calc(var(--font-size,16px) + 4px)!important;font-weight:750!important;letter-spacing:-.55px;line-height:1.3;overflow-wrap:anywhere}.afc-modern-chat #connection-status{font-size:12px;opacity:.9;line-height:1.45;margin-top:4px}.afc-modern-chat :is(.chat-symbol,.bubble-icon,.afc-demo-mark){position:relative;flex:none;display:grid;place-items:center;width:44px;height:44px;padding:9px!important;border:0!important;border-radius:14px!important;background:var(--surface-badge,var(--surface-primary,#ff6200))!important;color:var(--badge-foreground,#fff)!important;box-shadow:0 7px 13px #43220835,inset 0 1px 1px #ffffff99;line-height:1!important}.afc-modern-chat :is(.chat-symbol,.bubble-icon,.afc-demo-mark) svg{display:block;width:27px;height:27px;background:none!important;padding:0!important;border-radius:0!important}.afc-modern-chat :is(#business-logo,#preview-business-logo,.afc-demo-business-logo){flex:none;width:46px;height:46px;object-fit:contain;border-radius:12px;background:transparent;box-shadow:0 4px 12px #17223818}.afc-modern-chat .afc-header-controls{display:flex;gap:8px;margin-left:auto;flex:none;background:none!important;padding:0!important;position:relative;z-index:1}.afc-modern-chat .chat-head>button,.afc-modern-chat .afc-header-controls>*{display:grid;place-items:center;flex:none;width:33px;height:33px;border:1px solid #ffffff77!important;border-radius:13px!important;padding:0!important;background:#ffffff44!important;color:inherit;font:400 23px/1 system-ui,sans-serif;box-shadow:0 4px 9px #201b2020}.afc-modern-chat .chat-head>button:focus-visible{outline:3px solid var(--secondary,#124bff);outline-offset:2px}.afc-modern-chat .widget-body{position:relative;margin-top:-13px;border-radius:25px 25px 0 0;background:var(--widget-background,#fff);padding-top:4px}.afc-modern-chat :is(.call-start,.preview-channel,.afc-demo-channels){position:relative;display:flex;align-items:center;justify-content:center;gap:15px;flex:none;margin:0;padding:13px 14px;border:0;border-bottom:1px solid color-mix(in srgb,var(--theme-accent,#ffb46e) 24%,transparent);background:var(--widget-background,#fff);color:var(--widget-text,var(--surface-ink,#25334b));font:500 14px/1.5 system-ui,sans-serif}.afc-modern-chat .call-start button{flex:none;padding:5px 7px;font-size:13px;background:transparent;border:0;border-radius:0;color:inherit}.afc-modern-chat .widget-channel-current,.afc-modern-chat .afc-demo-channels strong{position:relative;color:var(--secondary,var(--surface-secondary,#124bff));font-weight:700}.afc-modern-chat .widget-channel-current:after,.afc-modern-chat .afc-demo-channels strong:after{content:'';position:absolute;bottom:-13px;left:0;right:0;height:3px;border-radius:4px;background:currentColor}.afc-modern-chat .messages{position:relative;padding:24px 18px 20px;display:flex;flex-direction:column;gap:18px;min-height:160px;background-color:transparent;background-position:center}.afc-modern-chat :is(.bubble,.preview-bubble,.preview-outgoing){width:fit-content;max-width:86%;margin:0!important;min-width:0;padding:13px 16px;border-radius:20px;font-size:var(--font-size,15px);line-height:1.55;box-shadow:0 7px 18px #1722380c}.afc-modern-chat :is(.bubble.agent,.preview-bubble){align-self:flex-start;background:var(--agent-bubble,#eff0f9);color:var(--agent-text,#172238);border-bottom-left-radius:9px;border:1px solid #ffffff44}.afc-modern-chat :is(.bubble.visitor,.preview-outgoing){align-self:flex-end;margin-left:auto!important;border-bottom-right-radius:9px;background:linear-gradient(150deg,#ffffff14,transparent 75%),var(--secondary,var(--surface-secondary,#124bff));color:var(--visitor-text,#fff);box-shadow:0 10px 22px color-mix(in srgb,var(--secondary,var(--surface-secondary,#124bff)) 20%,transparent)}.afc-modern-chat .bubble time{font-size:10px;opacity:.85}.afc-modern-chat .composer{position:relative;display:flex;align-items:center;gap:8px;flex:none;padding:8px 9px 8px 14px;margin:10px 13px 7px;border:1px solid color-mix(in srgb,var(--theme-accent,#ffb46e) 50%,white)!important;border-radius:30px!important;background:var(--widget-background,#fff);box-shadow:0 13px 25px -12px #14203d3d,inset 0 1px 0 #fff8}.afc-modern-chat .composer textarea{resize:none;flex:1;min-width:0;max-height:100px;padding:9px 3px;border:0!important;outline-offset:1px;background:transparent;color:inherit;font-size:var(--font-size,15px);line-height:1.5}.afc-modern-chat .composer button:not(.afc-compose-attach){display:grid;place-items:center;flex:none;width:42px;height:42px;padding:10px;border:1px solid #ffffffbb;border-radius:50%!important;background:linear-gradient(150deg,#ffffff33,transparent 48%),var(--secondary,var(--surface-secondary,#124bff));color:var(--visitor-text,#fff);box-shadow:0 5px 11px color-mix(in srgb,var(--secondary,var(--surface-secondary,#124bff)) 30%,transparent),inset 0 1px 1px #ffffffbb}.afc-modern-chat .composer button svg{display:block;width:21px;height:21px}.afc-modern-chat .afc-compose-attach{display:grid;place-items:center;flex:none;width:28px;height:36px;border:0;background:transparent;color:var(--widget-text,var(--surface-ink,#596078));padding:2px;box-shadow:none}.afc-modern-chat>footer,.afc-modern-chat>.afc-preview-credit,.afc-modern-chat>small{flex:none;text-align:center;padding:8px 12px 13px;font-size:11px;background:transparent;color:var(--widget-text,var(--surface-ink,#314365));line-height:1.5}.afc-modern-chat>footer a,.afc-modern-chat>.afc-preview-credit a{color:inherit;text-underline-offset:3px}.afc-modern-chat .afc-internal-ad{position:relative;flex:none;margin:8px 18px 0;color:var(--widget-text,var(--surface-ink,#172238));font:600 13px/1.45 system-ui,sans-serif;min-width:0}.afc-internal-ad[hidden]{display:none!important}.afc-internal-ad .afc-ad-label{display:block;font:400 10px/1.2 system-ui,sans-serif;opacity:.8;padding:0 12px 4px;text-align:left;background:transparent;color:inherit}.afc-internal-ad .afc-ad-content{display:flex;align-items:center;gap:10px;min-height:39px;padding:8px 13px;border-radius:24px;color:inherit;text-decoration:none;background:linear-gradient(155deg,transparent 40%,#ffffff55 60%,transparent 77%),color-mix(in srgb,var(--theme-accent,#ffb46e) 26%,var(--widget-background,#fff));border:1px solid #ffffff55;overflow-wrap:anywhere}.afc-internal-ad a.afc-ad-content:hover{text-decoration:underline}.afc-internal-ad a.afc-ad-content:focus-visible{outline:3px solid var(--secondary,#124bff);outline-offset:2px}.afc-ad-icon{display:flex;flex:none;color:var(--surface-primary,#ff6200)}.afc-ad-text{min-width:0;flex:1;white-space:normal}.afc-ad-chevron{flex:none;font:400 22px/1 system-ui,sans-serif}.afc-launcher{position:relative;isolation:isolate;border:1px solid #ffffffcc!important;border-radius:50%;color:var(--badge-foreground,#fff);box-shadow:0 16px 32px #14203d55,inset 0 1px 2px #ffffffcc}.afc-launcher:before{content:'';position:absolute;inset:3px;border:1px solid #ffffff77;border-radius:inherit;pointer-events:none}.afc-launcher>svg{width:34px!important;height:34px!important;background:none!important;padding:0!important;filter:drop-shadow(0 1px 1px #0003)}.afc-theme-stage .afc-launcher,.preview-panel .afc-launcher{width:68px;min-height:68px;margin-top:20px}.preview-panel .widget-preview.afc-modern-chat{width:100%;max-width:380px;min-height:485px;margin:24px auto 12px}.preview-panel .widget-preview.afc-modern-chat .messages{flex:1;min-height:215px;gap:18px;padding:24px 17px}.preview-panel .widget-preview.afc-modern-chat .preview-channel{margin-top:-13px;border-radius:24px 24px 0 0}.preview-panel .widget-preview.afc-modern-chat .preview-outgoing{margin-left:auto!important}.afc-modern-chat .afc-preview-composer{min-height:58px}.afc-preview-placeholder{min-width:0;flex:1;color:var(--input-placeholder,var(--surface-ink,#626a7a));font-size:14px}.afc-preview-attach{flex:none;font-size:21px;opacity:.7}.afc-style-preview.afc-modern-chat .afc-demo-channels{margin-top:-13px;border-radius:24px 24px 0 0}.afc-style-preview.afc-modern-chat .messages{min-height:215px;gap:18px}.afc-theme-stage .afc-modern-chat .chat-head{padding:20px 17px 28px;gap:10px}.afc-theme-stage .afc-modern-chat .chat-head strong{font-size:18px!important}.afc-theme-stage .afc-modern-chat .chat-head small{font-size:11px}.afc-logo-try{margin:0 0 15px;padding:10px 0;border:0}.afc-logo-try summary{font-size:13px}.afc-logo-try input{display:block;max-width:100%;font-size:13px;margin:10px 0}.afc-logo-try button{padding:7px 11px;border:1px solid #a5afc2;background:#fff;border-radius:9px;font:600 12px system-ui;color:#25334b}.afc-logo-try p{font-size:12px;line-height:1.5;margin:8px 0;color:#526078}.afc-ad-settings{border:1px solid #d1d8e4;border-radius:16px;padding:16px;background:#f8faff}.afc-ad-settings summary{font-size:17px}.afc-ad-settings p{font-size:14px;line-height:1.6}.afc-mini-head svg{background:var(--sample-badge,#495367);color:#fff;border-radius:5px;padding:2px}.hero-signature{border:1px solid #ffd1a8!important;border-radius:24px!important;box-shadow:0 28px 55px -18px #68370e88,0 11px 22px -12px #68370e55!important}.hero-signature .demo-head{position:relative;overflow:hidden;background:linear-gradient(105deg,#ffd6b8,#ffb17b 48%,#ff760f)!important;padding:17px 14px 22px;color:#10172b;gap:8px}.hero-signature .hero-chat-title{background:none!important;padding:0!important;font-weight:750;letter-spacing:-.25px}.hero-signature .bubble-icon{display:grid;place-items:center;background:linear-gradient(145deg,#ffb46e,#d64800)!important;color:white;border:0!important;border-radius:10px!important;box-shadow:0 4px 8px #68370e35;width:29px;height:29px;padding:5px!important}.hero-signature .bubble-icon svg{width:20px;height:20px}.hero-signature .demo-tabs{position:relative;background:#fffcfa!important;margin-top:-8px;border-radius:17px 17px 0 0;border-bottom:1px solid #f4dfd0;padding-top:10px}.hero-signature .demo-tabs span{border:0!important;background:transparent!important;border-radius:0!important;color:#5b6280!important}.hero-signature .demo-tabs span:first-child{color:#124bff!important;border-bottom:2px solid #124bff!important}.hero-signature .demo-messages{background-color:#fffaf6!important;gap:13px}.hero-signature .mock-message{border-radius:14px;padding:11px;max-width:88%;background:#eff0f9!important}.hero-signature .mock-message.outgoing{background:linear-gradient(155deg,#185bff,#0037e7)!important;box-shadow:0 7px 15px #124bff22}.hero-signature .mock-call{background:#fffdfb}.hero-signature .mock-call .mini-button{background:linear-gradient(155deg,#185bff,#0037e7)!important;box-shadow:0 5px 11px #124bff22}.hero-signature .mock-composer{position:relative;margin:9px 10px 10px;padding:12px;border-radius:23px;box-shadow:0 9px 20px -10px #68370e55;background:white!important;border:1px solid #f2d5c4!important}.hero-signature .afc-internal-ad{margin:3px 12px 0;font-size:10px;--surface-primary:#e04c00;--theme-accent:#ffb46e;--widget-background:#fff8f0;--surface-ink:#10172b}.hero-signature .afc-internal-ad .afc-ad-label{font-size:8px}.hero-signature .afc-internal-ad .afc-ad-content{min-height:26px;padding:4px 9px;font-size:10px}.hero-signature .afc-ad-icon svg{width:15px;height:15px}.hero-signature .afc-ad-chevron{font-size:15px}.designer-mini .demo-head{background:linear-gradient(105deg,#ffd6b8,#ffb17b 48%,#ff760f)!important;color:#10172b!important}.designer-mini #designer-title{padding:0!important;background:none!important}.designer-mini .bubble-icon{border:0!important;color:white;background:linear-gradient(145deg,#ffad5b,#d64800);border-radius:8px;padding:4px!important;width:27px;height:27px}.designer-mini .mock-message{border-radius:14px;background:#eff0f9!important}.designer-mini .mock-composer{border-radius:20px;margin:8px!important;border:1px solid #f0d6c8;box-shadow:0 7px 15px #14203d15}.afc-modern-chat [hidden]{display:none!important}@media(max-width:760px){.afc-modern-chat .chat-head{padding:18px 15px 25px;gap:10px}.afc-modern-chat .chat-head h1,.afc-modern-chat .chat-head strong{font-size:18px!important}.afc-modern-chat .messages{padding:20px 14px}.afc-modern-chat .composer{margin-left:10px;margin-right:10px}.afc-modern-chat .afc-internal-ad{margin-left:13px;margin-right:13px}.afc-modern-chat .afc-header-controls{gap:5px}.afc-modern-chat .afc-header-controls>*{width:29px;height:29px;font-size:20px}.hero-signature .demo-head{padding:12px 10px 18px}.hero-signature .afc-internal-ad{margin:2px 9px 0}}@media(prefers-reduced-motion:reduce){.afc-launcher{transition:none}}
.afc-modern-chat .composer .afc-preview-attach{flex:0 0 22px;width:22px;display:grid;place-items:center}.afc-modern-chat .composer .afc-preview-attach svg{display:block;width:22px;height:22px}.afc-modern-chat .afc-preview-composer button:disabled,.afc-style-preview .composer button:disabled{opacity:1;cursor:default}
.designer-mini .demo-head{background:var(--surface-header,linear-gradient(105deg,#ffd6b8,#ffb17b 48%,#ff760f))!important;color:var(--surface-header-ink,#10172b)!important}.designer-mini .bubble-icon{background:var(--surface-badge,linear-gradient(145deg,#ffad5b,#d64800))}
.afc-modern-chat .widget-channel-current,.afc-modern-chat .afc-demo-channels strong{color:var(--channel-active,var(--secondary,#124bff))}
.afc-modern-chat .call-start{flex-wrap:wrap;column-gap:10px;row-gap:4px}.afc-modern-chat .call-start button{max-width:100%;overflow-wrap:anywhere}

/* Reserve the full illustration height and keep its caption in document flow. */
.hero-art{height:630px}.hero-illustration-note{grid-column:2;margin:16px 0 0;padding:0 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6;position:relative}.designer-grid{align-items:start}.designer-mini{display:flex;flex-direction:column;min-width:0;min-height:300px;align-self:start}.designer-mini .designer-label{align-self:flex-start;font-size:11px}.designer-mini .demo-head{padding:16px 14px;font-size:15px;justify-content:flex-start;gap:10px}.designer-mini #designer-title{margin-left:0!important;font-size:15px!important}.designer-mini .mock-message{font-size:13px;line-height:1.6;padding:13px 14px;margin:16px 6px 24px;max-width:90%}.designer-mini .mock-composer{font-size:12px;min-height:45px;margin-top:auto!important}
@media(min-width:1101px){.setup-section{grid-template-columns:38% 62%}}
@media(min-width:761px){.designer-grid{grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:20px}}
@media(max-width:760px){.hero-art{height:540px}.hero-illustration-note{grid-column:1;margin:0;padding:0;font-size:11px}.designer-grid{grid-template-columns:minmax(0,1fr);gap:20px}.designer-mini{display:flex;width:100%;max-width:440px;margin:0 auto;min-height:300px}.designer-mini .demo-head{font-size:15px;padding:16px 14px}.designer-mini .mock-message{font-size:13px}.designer-mini .designer-label{font-size:11px}}

/* The same bounded logo placement is used in the editor and the installed widget. */
.afc-modern-chat .afc-business-logo-frame{position:relative;display:block;flex:0 1 112px;width:112px;max-width:30%;height:88px;min-width:44px;background:none;overflow:visible;align-self:center}
.afc-modern-chat .afc-business-logo-frame[hidden]{display:none!important}
.afc-modern-chat .afc-business-logo-frame :is(#business-logo,#preview-business-logo,.afc-demo-business-logo){position:absolute;object-fit:contain;max-width:none;max-height:none;border-radius:0;box-shadow:none;background:none;user-select:none}

/* Visual settings must win over presentation defaults in every preview. */
.afc-modern-chat :is(.bubble,.preview-bubble,.preview-outgoing,.afc-preview-placeholder){font-size:var(--font-size,16px)!important;font-family:var(--font,system-ui,sans-serif)}
.afc-modern-chat .composer textarea{font-size:var(--font-size,16px)}

.afc-modern-chat .chat-head :is(h1,strong,#preview-title){font-size:calc(var(--font-size,16px) + 4px)!important}
