*,:before,:after{box-sizing:border-box}body{background:#f3f7f5;margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0}button:disabled{cursor:default}a{color:inherit;text-decoration:none}.customer-chat{--chat-green:#14634d;--chat-ink:#19352c;height:100vh;max-width:640px;height:100dvh;color:var(--chat-ink);background:#f3f7f5;flex-direction:column;margin-inline-start:auto;margin-inline-end:auto;font-family:system-ui,-apple-system,sans-serif;display:flex;overflow:hidden}.customer-chat-header{padding:calc(10px + env(safe-area-inset-top)) 15px 10px;background:#fff;border-bottom:1px solid #e0ebe6;align-items:center;gap:11px;display:flex}.customer-chat-avatar{width:41px;height:41px;color:var(--chat-green);background:#def2e8;border-radius:13px;place-items:center;display:grid}.customer-chat-header h1{margin:0;font-size:17px;line-height:1.3}.customer-chat-header small,.customer-chat-muted{color:#557267;font-size:12px}.customer-chat-tools{gap:6px;margin-left:auto;display:flex}.customer-chat-tools button{white-space:nowrap;color:var(--chat-green);align-items:center;gap:5px;padding:6px;font-size:13px;display:flex}.customer-chat-feedback{background:#fff;gap:7px;padding:10px 14px;display:grid}.customer-chat-feedback label{align-items:center;gap:8px;display:flex}.customer-chat-feedback select,.customer-chat-feedback textarea{border:1px solid #dce9e3;border-radius:6px;padding:6px}.customer-chat-feedback button,.customer-chat-feedback-status{color:var(--chat-green);font-size:13px}.customer-chat-feedback-status{margin:5px 14px}.customer-chat-entry{flex:1;place-items:start center;padding:min(14vh,100px) 16px 16px;display:grid}.customer-chat-entry>div{background:#fff;border:1px solid #e0ebe6;border-radius:20px;width:min(100%,380px);padding:25px}.customer-chat-entry svg{color:var(--chat-green)}.customer-chat-entry h2{margin:12px 0 4px;font-size:21px}.customer-chat-entry p{color:#557267;margin:0 0 16px}.customer-chat-entry a,.customer-chat-entry button{text-align:center;background:var(--chat-green);color:#fff;border-radius:10px;width:100%;padding:12px;display:block}.customer-chat-messages{overscroll-behavior:contain;flex:1;min-height:0;padding:14px 13px;overflow:auto}.customer-chat-row{margin-bottom:10px;display:flex}.customer-chat-row.user{justify-content:flex-end}.customer-chat-row.system{justify-content:center}.customer-chat-bubble{overflow-wrap:anywhere;white-space:pre-wrap;background:#fff;border-radius:6px 16px 16px;max-width:min(84%,460px);padding:9px 11px;line-height:1.55}.customer-chat-row.user .customer-chat-bubble{background:#d9f3e4;border-radius:16px 6px 16px 16px}.customer-chat-row.system .customer-chat-bubble{color:#557267;text-align:center;background:0 0;font-size:12px}.customer-chat-bubble img,.customer-chat-bubble video{border-radius:9px;max-width:100%;max-height:54dvh;display:block}.customer-chat-bubble blockquote{color:#426257;border-left:2px solid #a2bdb0;margin:0 0 5px;padding-left:7px;font-size:12px}.customer-chat-quote{color:#426257;padding:0;font-size:12px;display:block}.customer-chat-card{gap:8px;display:grid}.customer-chat-card p{margin:0}.customer-chat-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;display:grid}.customer-chat-images img{aspect-ratio:1;object-fit:cover;width:100%}.customer-chat-card-action{color:var(--chat-green);background:#e3f4eb;border-radius:8px;margin-top:3px;padding:8px 10px;display:block}.customer-chat-footer{padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e0ebe6}.customer-chat-composer{align-items:flex-end;gap:8px;display:flex}.customer-chat-composer textarea{resize:none;background:#f0f5f2;border:1px solid #dce9e3;border-radius:10px;flex:1;min-width:0;min-height:41px;padding:9px 10px;font-size:16px;line-height:21px}.customer-chat-attach,.customer-chat-send{border-radius:10px;place-items:center;width:42px;height:42px;display:grid}.customer-chat-attach{color:var(--chat-green)}.customer-chat-send{background:var(--chat-green);color:#fff}.customer-chat button:disabled{opacity:.5}.customer-chat-error{color:#9f312e;margin:0 0 5px;font-size:13px}.customer-chat-error button,.customer-chat-retry button{color:var(--chat-green);padding:4px 8px}.customer-chat-retry{color:#426257;align-items:center;gap:6px;padding:2px 0 5px;font-size:13px;display:flex}.customer-chat-retry span{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}
