.assist { --v: #c4161c; --n: #f6f4f4; --t: #211a1b; --m: #675d5e; --l: #e4dede; font: 400 16px/1.45 "Instrument Sans", system-ui, sans-serif; color: var(--t); letter-spacing: 0; }
.assist * { box-sizing: border-box; }
.assist__abrir { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 8px; border: 0; border-radius: 99px; background: #fff; color: var(--t); font: 600 16px/1 "Instrument Sans", system-ui, sans-serif; box-shadow: 0 0 0 1px rgba(45, 22, 22, .07), 0 14px 44px rgba(45, 22, 22, .2); cursor: pointer; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.assist__abrir:hover { transform: translateY(-3px); }
.assist__abrir img { width: 44px; height: 44px; padding: 7px; border-radius: 50%; background: var(--n); object-fit: contain; }
.assist__cx { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 130; display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 40px)); overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(45, 22, 22, .06), 0 40px 110px rgba(45, 22, 22, .32); transform-origin: 100% 100%; animation: assist-abre .4s cubic-bezier(.22, 1, .36, 1); }
.assist__cx[hidden], .assist__abrir[hidden] { display: none; }
@keyframes assist-abre { from { opacity: 0; transform: translateY(20px) scale(.94); } }
.assist__topo { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--v); color: #fff; }
.assist__topo img { width: 42px; height: 42px; padding: 6px; border-radius: 50%; background: #fff; object-fit: contain; }
.assist__topo div { flex: 1; line-height: 1.2; } .assist__topo strong { display: block; font-weight: 600; font-size: 17px; } .assist__topo span { font-size: 14px; }
.assist__topo button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; cursor: pointer; }
.assist__msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--n); }
.assist__m { max-width: 88%; padding: 12px 16px; border-radius: 20px; background: #fff; overflow-wrap: anywhere; white-space: pre-line; animation: assist-msg .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes assist-msg { from { opacity: 0; transform: translateY(10px); } }
.assist__m--eu { align-self: flex-end; background: var(--v); color: #fff; }
.assist__m strong { font-weight: 600; } .assist__m img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 0 0 10px; background: var(--n); }
.assist__m audio { width: 100%; margin-top: 8px; }
.assist__m--card { width: 88%; }
.assist__acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.assist__acoes a, .assist__acoes button, .assist__ops button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--v); color: #fff; font: 600 15px/1 "Instrument Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.assist__ops { display: flex; flex-wrap: wrap; gap: 8px; }
.assist__ops button { background: #fff; color: var(--t); font-weight: 500; box-shadow: 0 0 0 1px var(--l) inset; } .assist__ops button:hover { box-shadow: 0 0 0 1.5px var(--v) inset; color: var(--v); }
.assist__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--l); }
.assist__form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 1px solid var(--l); border-radius: 99px; font: 400 16px "Instrument Sans", system-ui, sans-serif; color: var(--t); background: #fff; } .assist__form input:focus { outline: 2px solid var(--v); outline-offset: -1px; }
.assist__form button { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--v); color: #fff; font-size: 20px; cursor: pointer; }
.assist__pedido { display: grid; gap: 10px; width: 100%; } .assist__pedido label { display: grid; gap: 4px; font-size: 14px; color: var(--m); } .assist__pedido input:not([type=checkbox]), .assist__pedido textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--l); border-radius: 14px; font: 400 16px/1.35 "Instrument Sans", system-ui, sans-serif; color: var(--t); background: #fff; } .assist__pedido .ok { display: flex; align-items: flex-start; gap: 10px; color: var(--t); line-height: 1.35; } .assist__pedido .ok input { width: 20px; height: 20px; margin: 0; accent-color: var(--v); flex: none; } .assist__pedido .isca { position: absolute; left: -9999px; } .assist__pedido [role=alert] { color: var(--v); font-weight: 600; font-size: 15px; } .assist__pedido button { min-height: 48px; border: 0; border-radius: 99px; background: var(--v); color: #fff; font: 600 16px/1 "Instrument Sans", system-ui, sans-serif; cursor: pointer; }
.assist :focus-visible { outline: 3px solid color-mix(in srgb, var(--v) 45%, transparent); outline-offset: 2px; }
@media (max-width: 560px) { .assist__abrir { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 0; width: 60px; justify-content: center; } .assist__abrir span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .assist__cx { right: 0; left: 0; bottom: 0; width: 100%; height: 92dvh; border-radius: 28px 28px 0 0; } }
@media (prefers-reduced-motion: reduce) { .assist * { animation: none !important; transition: none !important; } }
