.driver-chat-launcher,.driver-chat-unread,.driver-chat-panel{--chat-forest: #16332b;--chat-paper: #f8f6ef;--chat-panel: #fffdf8;--chat-border: #d5d9cc;--chat-muted: #475c52;--chat-peach: #f5b28b}.driver-chat-launcher{position:fixed;z-index:25;inset:auto max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) auto;display:inline-flex;align-items:center;gap:.55rem;min-height:46px;padding:.55rem .85rem;border:1px solid #35574b;border-radius:.5rem;background:var(--chat-forest);color:var(--chat-panel);box-shadow:0 4px 18px #16332b26;font:var(--type-control, 600 .88rem/1.4 system-ui);cursor:pointer}.driver-chat-launcher:hover{background:#224638}body:has(.driver-chat-launcher) footer{padding-bottom:5rem}body:has(.driver-chat-launcher):has(input:focus,textarea:focus,select:focus) .driver-chat-launcher{visibility:hidden}body:has(.driver-chat-panel[open]) .driver-chat-launcher{visibility:hidden}.driver-chat-unread{display:inline-grid;place-items:center;min-width:1.4rem;min-height:1.4rem;padding-inline:.25rem;border-radius:50%;background:var(--chat-peach);color:var(--chat-forest);font:var(--type-control, 600 .88rem/1.4 system-ui);font-size:.72rem}.driver-chat-panel{box-sizing:border-box;position:fixed;inset:auto max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) auto;width:min(27rem,calc(100% - 2rem));height:min(36rem,calc(100dvh - 2rem));max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:1px solid var(--chat-border);border-radius:.85rem;box-shadow:0 14px 55px #14281f3d;background:var(--chat-paper);color:var(--chat-forest);font:var(--type-body, 1rem/1.5 system-ui)}.driver-chat-panel::backdrop{background:#14281f38}body:has(.driver-chat-panel[open]){overflow:hidden}.driver-chat-panel *,.driver-chat-panel *:before,.driver-chat-panel *:after{box-sizing:border-box}.driver-chat-panel [hidden],.driver-chat-unread[hidden]{display:none}.driver-chat-panel :is(button,input,textarea,[tabindex]):focus-visible,.driver-chat-launcher:focus-visible{outline:2px solid #93713f;outline-offset:2px}.driver-chat-panel .driver-chat-identity h2:focus{outline:none}.driver-chat-panel p{margin:0}.driver-chat-content,.driver-chat-shell,.driver-chat-thread{display:grid;height:100%;min-height:0}.driver-chat-shell,.driver-chat-content{grid-template-rows:auto minmax(0,1fr)}.driver-chat-content{align-content:stretch}.driver-chat-message img{display:block;max-width:100%;max-height:13rem;border-radius:.3rem}.driver-chat-message time{display:block;margin-top:.25rem;font-size:.72rem;color:var(--chat-muted)}.driver-trip-details{display:grid;gap:.5rem;margin-top:.5rem}.driver-chat-file-row{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .6rem;margin-top:.55rem}.driver-chat-panel .driver-chat-file-picker{position:relative;display:inline-flex;align-items:center;gap:.4rem;max-width:min(100%,15rem);min-height:2rem;padding:.35rem .65rem;overflow:hidden;border:1px solid var(--chat-border);border-radius:999px;background:var(--chat-panel);color:var(--chat-forest);font-size:.78rem;font-weight:600;cursor:pointer}.driver-chat-file-picker svg,.driver-chat-file-clear svg{width:.95rem;height:.95rem;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.driver-chat-file-picker span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.driver-chat-file-picker:focus-within{outline:2px solid #93713f;outline-offset:2px}.driver-chat-panel .driver-chat-file-picker input{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;opacity:0;cursor:pointer;border:0}.driver-chat-file-hint{color:var(--chat-muted);font-size:.72rem}.driver-chat-file-clear{display:inline-grid;place-items:center;width:1.8rem;height:1.8rem;padding:.35rem;border:1px solid var(--chat-border);border-radius:50%;background:transparent;color:var(--chat-muted);cursor:pointer}.driver-chat-file-clear:hover{background:#edf0e8;color:var(--chat-forest)}.driver-chat-header{display:flex;align-items:center;gap:.55rem;padding:.8rem 1rem;border-bottom:1px solid var(--chat-border);background:var(--chat-panel);box-shadow:0 1px 2px #16332b08}.driver-chat-avatar{display:grid;place-items:center;flex:0 0 2.55rem;aspect-ratio:1;border-radius:.45rem;background:var(--chat-forest);color:var(--chat-panel);font:700 1.05rem/1 var(--type-heading)}.driver-chat-identity{min-width:0;flex:1}.driver-chat-identity h2{margin:0;font:700 1rem/1.25 var(--type-heading);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.driver-chat-identity p,.driver-chat-panel .driver-chat-note{color:var(--chat-muted);font-size:var(--type-small);line-height:1.4}.driver-chat-presence{display:flex;align-items:center;gap:.35rem}.driver-chat-presence:before{content:"";width:.42rem;height:.42rem;flex:none;border-radius:50%;background:#a6aaa0}.driver-chat-presence[data-presence=online]:before{background:#39835f;box-shadow:0 0 0 3px #39835f18}.driver-chat-presence[data-presence=away]:before{background:#b68134}.driver-chat-welcome{padding:.2rem 0 .35rem}.driver-chat-welcome>span{color:#738477;font-size:.63rem;font-weight:700;letter-spacing:.14em}.driver-chat-welcome h3{margin:.35rem 0 .2rem;color:var(--chat-forest);font:600 1.15rem/1.25 var(--type-heading)}.driver-chat-welcome p{max-width:30rem;color:var(--chat-muted);font-size:.86rem}.driver-chat-icon{display:inline-grid;place-items:center;flex:0 0 44px;min-height:44px;padding:0;border:0;border-radius:.35rem;background:transparent;color:inherit;cursor:pointer}.driver-chat-icon:hover{background:#edf0e7}.driver-chat-start{display:grid;align-content:start;gap:.75rem;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1rem 1rem max(1rem,env(safe-area-inset-bottom))}.driver-chat-panel label{display:grid;gap:.25rem;font:var(--type-control, 600 .88rem/1.4 system-ui)}.driver-chat-panel :is(input,textarea){min-width:0;width:100%;min-height:44px;border:1px solid #a5b3a5;border-radius:.4rem;padding:.55rem .65rem;background:var(--chat-panel);color:var(--chat-forest);font:var(--type-input-font, 1rem/1.4 system-ui)}.driver-chat-panel textarea{resize:vertical}.driver-chat-submit{justify-self:start;min-height:44px;border:0;border-radius:.4rem;padding:.55rem .85rem;background:var(--chat-peach);color:var(--chat-forest);font:var(--type-control, 600 .88rem/1.4 system-ui);cursor:pointer}.driver-chat-submit:hover{background:#ffcca9}.driver-chat-panel button:disabled{opacity:.65;cursor:wait}.driver-chat-panel .driver-chat-error{color:#8d2927;font-size:var(--type-small)}.driver-chat-panel :is(.driver-chat-error,.driver-chat-status):empty{display:none}.driver-chat-thread{grid-template-rows:minmax(0,1fr) auto auto auto}.driver-chat-history{overflow-y:auto;overscroll-behavior:contain;padding:.9rem 1rem}.driver-chat-history:focus-visible{outline-offset:-3px}.driver-chat-messages{display:grid;gap:.55rem}.driver-chat-message{justify-self:end;min-width:3.25rem;max-width:87%;padding:.55rem .7rem;border-radius:.65rem .65rem .16rem;background:#e1eadc;color:var(--chat-forest);overflow-wrap:anywhere;white-space:pre-wrap;box-shadow:0 1px 2px #16332b08}.driver-chat-message[data-pending-message=true]{opacity:.78}.driver-chat-message.from-driver{justify-self:start;border:1px solid var(--chat-border);border-radius:.65rem .65rem .65rem .16rem;background:var(--chat-panel)}.driver-chat-message strong{display:block;margin-bottom:.1rem;color:var(--chat-muted);font-size:var(--type-small)}.driver-chat-status{padding:.2rem 1rem}.driver-chat-status button{min-height:44px;border:0;padding:.3rem 0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer}.driver-chat-reply{display:grid;gap:.35rem;padding:.75rem 1rem max(.8rem,env(safe-area-inset-bottom));border-top:1px solid var(--chat-border);background:var(--chat-panel)}.driver-chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;align-items:end}.driver-chat-composer textarea{resize:none}.driver-chat-composer textarea{min-height:46px;max-height:8rem}.driver-chat-start input:focus,.driver-chat-start textarea:focus,.driver-chat-reply textarea:focus{border-color:#6f8d76;box-shadow:0 0 0 3px #53745b1a;outline:none}.driver-chat-panel details{padding:.65rem .75rem;border:1px solid #e0e5dc;border-radius:.55rem;background:#fffdf8}.driver-chat-panel summary{color:#405b49;font-size:.84rem;font-weight:650;cursor:pointer}@media(max-width:48rem){.driver-chat-launcher.above-booking{bottom:5.75rem}}@media(max-width:40rem){.driver-chat-panel{inset:auto 0 var(--chat-keyboard-inset, 0px);width:100%;height:min(var(--chat-viewport-height, 100dvh),100dvh);min-height:0;border-radius:0;border:0}.driver-chat-panel[open]{animation:driver-chat-slide-in .2s ease-out}.driver-chat-reply{gap:.45rem;padding:.65rem .85rem max(.75rem,env(safe-area-inset-bottom))}.driver-chat-composer{grid-template-columns:minmax(0,1fr) auto;gap:.5rem}.driver-chat-composer textarea{min-height:2.8rem;padding:.6rem .7rem;font-size:16px}.driver-chat-composer .driver-chat-submit{min-height:2.8rem;padding:.55rem .8rem;white-space:nowrap}.driver-chat-file-row{gap:.4rem .5rem;margin-top:.15rem}.driver-chat-panel .driver-chat-file-picker{max-width:min(72vw,16rem);min-height:2.15rem}.driver-chat-file-hint{flex-basis:100%;padding-left:.15rem;font-size:.7rem}.driver-chat-file-clear{width:2rem;height:2rem}}@keyframes driver-chat-slide-in{0%{transform:translateY(1.1rem)}}@media(prefers-reduced-motion:reduce){.driver-chat-panel[open]{animation:none}}
