.amx-chat-widget{position:fixed;z-index:99980;bottom:22px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.amx-chat-pos-right{right:22px}.amx-chat-pos-left{left:22px}.amx-chat-float{position:relative;display:inline-flex;align-items:center;gap:12px;border:0;border-radius:999px;background:var(--amx-chat-primary,#ef111b);color:#fff;padding:12px 20px 12px 12px;min-height:64px;overflow:visible;font-weight:900;cursor:pointer;transition:transform .18s ease}.amx-chat-float:hover{transform:translateY(-2px)}.amx-chat-float-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:999px;background:rgba(255,255,255,.2);font-size:19px}.amx-chat-float-icon i{line-height:1}.amx-chat-float-text{font-size:15px;line-height:1}.amx-chat-float-badge{position:absolute;top:-8px;right:-8px;display:grid;place-items:center;min-width:24px;width:auto;height:24px;padding:0 6px;border-radius:999px;background:#0f172a;color:#fff;border:2px solid #fff;font-style:normal;font-size:11px;font-weight:900;line-height:1;text-align:center;z-index:2;box-shadow:0 6px 16px rgba(15,23,42,.24)}.amx-chat-panel{position:absolute;right:0;bottom:70px;width:min(370px,calc(100vw - 32px));height:min(560px,calc(100vh - 110px));display:flex;flex-direction:column;border-radius:26px;overflow:visible;background:#fff;border:1px solid rgba(226,232,240,.95);box-shadow:0 26px 80px rgba(15,23,42,.22)}.amx-chat-pos-left .amx-chat-panel{left:0;right:auto}.amx-chat-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 18px 16px;background:linear-gradient(135deg,var(--amx-chat-primary,#ef111b),#111827);color:#fff}.amx-chat-header strong{display:block;font-size:17px;line-height:1.15}.amx-chat-header small{display:block;margin-top:5px;opacity:.86;line-height:1.35}.amx-chat-header button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border:0;background:rgba(255,255,255,.18);color:#fff;border-radius:999px;font-size:26px;font-weight:400;line-height:0;cursor:pointer;text-align:center;appearance:none;-webkit-appearance:none}.amx-chat-body{flex:1;overflow:auto;padding:16px;background:#f8fafc;display:flex;flex-direction:column;gap:10px}.amx-chat-system{align-self:center;max-width:92%;padding:9px 12px;border-radius:999px;background:#fff;color:#64748b;border:1px solid #e2e8f0;font-size:12px;text-align:center}.amx-chat-msg{max-width:82%;padding:11px 13px;border-radius:18px;font-size:14px;line-height:1.35;white-space:pre-wrap;word-break:break-word}.amx-chat-msg small{display:block;margin-top:6px;font-size:10px;opacity:.68}.amx-chat-msg.client{align-self:flex-end;background:var(--amx-chat-primary,#ef111b);color:#fff;border-bottom-right-radius:7px}.amx-chat-msg.admin,.amx-chat-msg.system{align-self:flex-start;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-bottom-left-radius:7px}.amx-chat-form{border-top:1px solid #e2e8f0;background:#fff;padding:9px 10px}.amx-chat-hp{position:absolute!important;left:-9999px!important;opacity:0!important}.amx-chat-ident{display:grid;gap:8px;margin-bottom:8px}.amx-chat-ident.is-compact{grid-template-columns:1fr 1fr}.amx-chat-input{display:flex;align-items:center;gap:8px;width:100%;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:0 10px}.amx-chat-input i{font-size:16px;line-height:1;color:#64748b;flex:0 0 auto}.amx-chat-input-whatsapp i{color:#25D366}.amx-chat-input input,.amx-chat-compose textarea{width:100%;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:9px 10px;color:#0f172a;font:inherit;outline:none}.amx-chat-input input{border:0!important;background:transparent!important;padding:10px 0!important;box-shadow:none!important}.amx-chat-input:focus-within{border-color:var(--amx-chat-primary,#ef111b);box-shadow:0 0 0 3px color-mix(in srgb,var(--amx-chat-primary,#ef111b) 14%,transparent)}.amx-chat-compose textarea:focus{border-color:var(--amx-chat-primary,#ef111b);box-shadow:0 0 0 3px color-mix(in srgb,var(--amx-chat-primary,#ef111b) 14%,transparent)}.amx-chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.amx-chat-compose textarea{resize:none;min-height:38px;height:38px;max-height:88px;line-height:1.25;overflow:auto}.amx-chat-compose button{border:0;border-radius:10px;background:var(--amx-chat-primary,#ef111b);color:#fff;font-weight:900;padding:0 14px;height:38px;min-width:74px;cursor:pointer}.amx-chat-compose button[disabled]{opacity:.65;cursor:wait}.amx-chat-status{display:block;margin-top:8px;color:#64748b;font-size:11px;line-height:1.3}.amx-chat-widget.is-open .amx-chat-float{display:none}@media(max-width:520px){.amx-chat-compose textarea{min-height:36px;height:36px}.amx-chat-compose button{height:36px;min-width:70px}.amx-chat-widget{right:14px!important;left:14px!important;bottom:14px}.amx-chat-float{float:right;min-height:58px;padding:10px 18px 10px 10px;overflow:visible}.amx-chat-panel{left:0!important;right:0!important;width:auto;height:min(560px,calc(100vh - 32px));bottom:0}.amx-chat-widget.is-open{inset:14px!important;bottom:14px!important}.amx-chat-widget.is-open .amx-chat-panel{position:fixed;left:14px!important;right:14px!important;bottom:14px!important;width:auto}.amx-chat-ident.is-compact{grid-template-columns:1fr}}
.amx-chat-panel[hidden],.amx-chat-widget:not(.is-open) .amx-chat-panel{display:none!important}.amx-chat-catalog-msg{display:grid;gap:9px;min-width:230px}.amx-chat-catalog-msg p{margin:0;font-weight:800;color:#0f172a}.amx-chat-catalog-grid{display:grid;gap:9px}.amx-chat-catalog-card{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center;padding:9px;border-radius:16px;background:#fff;color:#0f172a;text-decoration:none;border:1px solid #e2e8f0;box-shadow:0 8px 22px rgba(15,23,42,.06)}.amx-chat-catalog-card:hover{border-color:var(--amx-chat-primary,#ef111b)}.amx-chat-catalog-image{display:grid;place-items:center;width:72px;height:58px;border-radius:13px;background:#f1f5f9;overflow:hidden}.amx-chat-catalog-image img{width:100%;height:100%;object-fit:cover}.amx-chat-catalog-info{display:grid;gap:3px;min-width:0}.amx-chat-catalog-info strong{display:block;max-width:100%;font-size:13px;line-height:1.2;white-space:nowrap;overflow:visible;text-overflow:ellipsis}.amx-chat-catalog-info small{font-size:11px;color:#64748b;white-space:nowrap;overflow:visible;text-overflow:ellipsis}.amx-chat-catalog-info em{font-style:normal;font-weight:900;color:var(--amx-chat-primary,#ef111b);font-size:13px}.amx-chat-catalog-info b{font-size:10px;color:#64748b;font-weight:700}.amx-chat-catalog-info u{font-size:11px;color:#0f172a;font-weight:900;text-decoration:none}.amx-chat-msg.admin .amx-chat-catalog-card{border-color:#e2e8f0}.amx-chat-msg.admin .amx-chat-catalog-msg p{color:#0f172a}@media(max-width:520px){.amx-chat-catalog-card{grid-template-columns:64px 1fr}.amx-chat-catalog-image{width:64px;height:54px}}

.amx-chat-header button[data-amx-chat-close]{border-radius:999px!important;display:grid!important;place-items:center!important;align-items:center!important;justify-items:center!important;padding:0!important;line-height:0!important}.amx-chat-header button[data-amx-chat-close]{font-family:Arial,Helvetica,sans-serif!important}.amx-chat-header button[data-amx-chat-close]:hover{background:rgba(255,255,255,.26)}
.amx-chat-availability{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:11px;font-weight:900;line-height:1;color:#fff}.amx-chat-availability i{display:block;flex:0 0 10px;width:10px;height:10px;aspect-ratio:1/1;padding:0;margin:0;border-radius:50%!important;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}.amx-chat-availability-busy i{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.2)}.amx-chat-availability-offline i{background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.22)}

/* Scrollbar suave do chat */
.amx-chat-widget .amx-chat-body,
.amx-chat-widget .amx-chat-compose textarea,
.amx-chat-widget .amx-chat-catalog-grid{scrollbar-width:thin;scrollbar-color:rgba(15,23,42,.24) transparent;scroll-behavior:smooth}
.amx-chat-widget .amx-chat-body::-webkit-scrollbar,
.amx-chat-widget .amx-chat-compose textarea::-webkit-scrollbar,
.amx-chat-widget .amx-chat-catalog-grid::-webkit-scrollbar{width:7px;height:7px}
.amx-chat-widget .amx-chat-body::-webkit-scrollbar-track,
.amx-chat-widget .amx-chat-compose textarea::-webkit-scrollbar-track,
.amx-chat-widget .amx-chat-catalog-grid::-webkit-scrollbar-track{background:transparent;border-radius:999px}
.amx-chat-widget .amx-chat-body::-webkit-scrollbar-thumb,
.amx-chat-widget .amx-chat-compose textarea::-webkit-scrollbar-thumb,
.amx-chat-widget .amx-chat-catalog-grid::-webkit-scrollbar-thumb{background:rgba(15,23,42,.24);border-radius:999px;border:2px solid transparent;background-clip:content-box}
.amx-chat-widget .amx-chat-body::-webkit-scrollbar-thumb:hover,
.amx-chat-widget .amx-chat-compose textarea::-webkit-scrollbar-thumb:hover,
.amx-chat-widget .amx-chat-catalog-grid::-webkit-scrollbar-thumb:hover{background:rgba(15,23,42,.38);border:2px solid transparent;background-clip:content-box}

/* v1.2.13: remove shadows from chat buttons */
.amx-chat-widget button,.amx-chat-float,.amx-chat-float:hover,.amx-chat-compose button,.amx-chat-header button,.amx-chat-float-badge{box-shadow:none!important;}

/* v1.2.15: título do catálogo com reticências */
.amx-chat-widget .amx-chat-catalog-card{min-width:0;max-width:100%;overflow:hidden!important;}
.amx-chat-widget .amx-chat-catalog-info{min-width:0!important;max-width:100%!important;overflow:hidden!important;}
.amx-chat-widget .amx-chat-catalog-info strong,.amx-chat-widget .amx-chat-catalog-info small{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.amx-chat-widget .amx-chat-catalog-info em,.amx-chat-widget .amx-chat-catalog-info b,.amx-chat-widget .amx-chat-catalog-info u{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}


/* v1.2.16 rounded UI refinements */
.amx-chat-panel{border-radius:32px!important;overflow:hidden!important;}
.amx-chat-header{border-radius:32px 32px 0 0!important;padding:20px 22px 18px!important;}
.amx-chat-body{padding:18px!important;}
.amx-chat-form{border-radius:0 0 32px 32px!important;padding:12px 12px 14px!important;}
.amx-chat-ident,.amx-chat-compose{gap:10px!important;}
.amx-chat-input{border-radius:18px!important;padding:0 12px!important;}
.amx-chat-input input{padding:12px 0!important;}
.amx-chat-compose textarea{border-radius:18px!important;min-height:42px!important;height:42px!important;padding:10px 12px!important;}
.amx-chat-compose button{border-radius:18px!important;height:42px!important;padding:0 16px!important;}
.amx-chat-msg{border-radius:22px!important;}
.amx-chat-msg.client{border-bottom-right-radius:12px!important;}
.amx-chat-msg.admin,.amx-chat-msg.system{border-bottom-left-radius:12px!important;}
.amx-chat-catalog-card{border-radius:22px!important;padding:11px!important;}
.amx-chat-catalog-image{border-radius:18px!important;}
.amx-chat-catalog-info strong,.amx-chat-catalog-info small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.amx-chat-system{border-radius:999px!important;}
.amx-chat-header button[data-amx-chat-close]{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:999px!important;}
@media(max-width:520px){
  .amx-chat-panel{border-radius:28px!important;}
  .amx-chat-header{border-radius:28px 28px 0 0!important;padding:18px 18px 16px!important;}
  .amx-chat-form{border-radius:0 0 28px 28px!important;}
  .amx-chat-compose textarea{min-height:40px!important;height:40px!important;}
  .amx-chat-compose button{height:40px!important;border-radius:16px!important;}
  .amx-chat-input,.amx-chat-compose textarea{border-radius:16px!important;}
}


/* v1.2.17 less rounded UI refinements */
.amx-chat-panel{border-radius:22px!important;overflow:hidden!important;}
.amx-chat-header{border-radius:22px 22px 0 0!important;padding:18px 20px 16px!important;}
.amx-chat-form{border-radius:0 0 22px 22px!important;padding:11px 12px 13px!important;}
.amx-chat-input{border-radius:14px!important;}
.amx-chat-compose textarea{border-radius:14px!important;}
.amx-chat-compose button{border-radius:14px!important;}
.amx-chat-msg{border-radius:18px!important;}
.amx-chat-msg.client{border-bottom-right-radius:8px!important;}
.amx-chat-msg.admin,.amx-chat-msg.system{border-bottom-left-radius:8px!important;}
.amx-chat-catalog-card{border-radius:16px!important;}
.amx-chat-catalog-image{border-radius:13px!important;}
.amx-chat-header button[data-amx-chat-close]{border-radius:50%!important;}
@media(max-width:520px){
  .amx-chat-panel{border-radius:20px!important;}
  .amx-chat-header{border-radius:20px 20px 0 0!important;}
  .amx-chat-form{border-radius:0 0 20px 20px!important;}
  .amx-chat-input,.amx-chat-compose textarea{border-radius:13px!important;}
  .amx-chat-compose button{border-radius:13px!important;}
}
