﻿/* Customer care and admin live support */
.chat-thread{--chat-ink:#20392f;--chat-muted:#718078;--chat-line:#e1e7df;--chat-soft:#f5f7f2;--chat-orange:#df6b3f;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--chat-line);border-radius:18px;background:#fff;box-shadow:0 12px 34px #20392f0c}.chat-topbar{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--chat-line);background:linear-gradient(135deg,#f5f8f2,#fff)}.chat-team-avatar,.chat-bubble-avatar{display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#dcebe0;color:var(--chat-ink);flex:0 0 auto}.chat-team-avatar{width:42px;height:42px}.chat-topbar h2{margin:0;font-size:16px;color:var(--chat-ink)}.chat-topbar p{margin:3px 0 0;color:var(--chat-muted);font-size:12px}.chat-status-dot{width:9px;height:9px;margin-left:auto;border-radius:50%;background:#c3cbc3}.chat-status-dot.online{background:#3ca064;box-shadow:0 0 0 4px #3ca0641d}.chat-conversation-label{display:flex;justify-content:space-between;gap:10px;padding:12px 22px 0;color:var(--chat-muted);font-size:10px;letter-spacing:.13em;font-weight:800}.chat-transport{letter-spacing:0;font-weight:400;text-transform:none}.chat-messages{display:flex;flex-direction:column;gap:17px;height:470px;overflow:auto;padding:22px;background:#fbfcfa;overscroll-behavior:contain}.chat-message{display:flex;align-items:flex-end;gap:9px;max-width:min(78%,620px);align-self:flex-start}.chat-message.from-self{align-self:flex-end;flex-direction:row-reverse}.chat-bubble-avatar{width:30px;height:30px;font-size:12px;font-weight:800}.chat-bubble-avatar img{width:100%;height:100%;object-fit:cover}.chat-message-content{min-width:0}.chat-message header{display:flex;align-items:center;gap:9px;margin:0 5px 5px;color:var(--chat-muted);font-size:11px}.chat-message.from-self header{justify-content:flex-end}.chat-message time{font-size:10px}.chat-bubble{padding:11px 14px;border-radius:16px 16px 16px 4px;background:#e9f0e8;color:#26372f;overflow-wrap:anywhere;line-height:1.52}.chat-message.from-self .chat-bubble{border-radius:16px 16px 4px 16px;background:#df6b3f;color:#fff}.chat-bubble p{margin:0;white-space:pre-wrap}.chat-bubble .chat-order-ref{margin-bottom:7px;font-size:11px;opacity:.78}.chat-file{display:flex;align-items:center;gap:9px;margin-top:9px;padding:8px 9px;border-radius:9px;background:#ffffffa8;color:inherit;text-decoration:none;font-size:12px}.chat-message.from-self .chat-file{background:#ffffff22}.chat-file img{display:block;width:150px;height:120px;object-fit:cover;border-radius:6px}.chat-file svg{width:25px;flex:0 0 25px}.chat-file span{min-width:0;overflow-wrap:anywhere}.chat-file small{display:block;margin-top:2px;font-size:10px;opacity:.74}.chat-empty{margin:auto;text-align:center;max-width:330px;color:var(--chat-muted);font-size:13px}.chat-empty h3{margin:11px 0 5px;color:var(--chat-ink)}.chat-empty p{line-height:1.5}.chat-empty-icon{display:grid;place-items:center;width:50px;height:50px;margin:auto;border-radius:50%;background:#e9f0e8;color:var(--chat-ink)}.chat-new{align-self:center;margin:8px;border:1px solid var(--chat-orange);border-radius:20px;padding:8px 13px;background:#fff;color:var(--chat-orange);cursor:pointer}.chat-older{align-self:center;margin:15px 0 0;border:1px solid var(--chat-line);border-radius:20px;padding:7px 13px;background:#fff;color:var(--chat-ink);cursor:pointer}.chat-thread form{padding:15px 20px 12px;border-top:1px solid var(--chat-line);background:#fff}.chat-message-label{display:block;color:var(--chat-ink);font-size:11px;font-weight:800}.chat-thread textarea{display:block;width:100%;box-sizing:border-box;min-height:46px;max-height:140px;margin-top:7px;padding:12px 13px;border:1px solid #cbd7cc;border-radius:11px;resize:none;color:var(--chat-ink);font:inherit;line-height:1.45}.chat-thread textarea:focus{outline:3px solid #df6b3f29;border-color:var(--chat-orange)}.chat-composer-toolbar{display:flex;align-items:center;gap:10px;margin-top:10px}.chat-upload{display:inline-flex;align-items:center;gap:6px;color:var(--chat-ink);font-size:12px;cursor:pointer}.chat-upload input{position:absolute;width:1px;height:1px;opacity:0}.chat-upload:focus-within{outline:2px solid var(--chat-orange);outline-offset:3px}.chat-keyboard-hint{margin-right:auto;color:var(--chat-muted);font-size:11px}.chat-send{display:inline-flex!important;align-items:center;gap:7px}.chat-send svg{width:16px}.chat-error{margin:8px 0 0;color:#a52d1c;font-size:12px}.chat-file-help{margin:7px 0 0;color:var(--chat-muted);font-size:10px}.chat-attachment-preview{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.chat-pending-file{display:flex;align-items:center;gap:7px;max-width:230px;padding:6px 8px;border:1px solid var(--chat-line);border-radius:8px;background:var(--chat-soft);font-size:11px}.chat-pending-file img{width:35px;height:35px;object-fit:cover;border-radius:5px}.chat-pending-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-pending-file small{display:block;color:var(--chat-muted);font-size:10px}.chat-pending-file button{border:0;background:transparent;color:var(--chat-muted);font-size:18px;cursor:pointer}.chat-privacy-note{padding:10px 20px 15px;color:var(--chat-muted);font-size:10px;text-align:center}.customer-chat-page{max-width:980px}.chat-admin{margin-top:10px}.support-customer-profile{margin:0 0 12px;border:1px solid #dfe6dd;border-radius:12px;background:#fff}.support-customer-profile summary{display:flex;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;list-style:none}.support-customer-profile summary::-webkit-details-marker{display:none}.support-profile-avatar{display:grid;place-items:center;width:40px;height:40px;overflow:hidden;border-radius:50%;background:#e9d6c8;color:#20392f;font-weight:800}.support-profile-avatar img{width:100%;height:100%;object-fit:cover}.support-customer-profile summary small{display:block;margin-top:2px;color:#718078;font-size:11px}.support-profile-toggle{margin-left:auto;color:#df6b3f;font-size:12px}.support-customer-profile dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;padding:0 14px;border-top:1px solid #edf0eb}.support-customer-profile dl div{padding:10px 0;border-bottom:1px solid #edf0eb}.support-customer-profile dt{color:#718078;font-size:10px}.support-customer-profile dd{margin:3px 12px 0 0;color:#20392f;font-size:13px;overflow-wrap:anywhere}.support-customer-profile>p{padding:0 14px;color:#718078;font-size:10px}.support-workspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px}.support-sidebar{background:#fff;border:1px solid #dce2dc;border-radius:14px;padding:16px}.support-list{display:grid;gap:9px;margin-top:16px}.support-item{text-align:left;border:1px solid #e0e5df;background:#f8faf6;border-radius:9px;padding:12px;cursor:pointer;font:inherit}.support-item.selected{border-color:#db6b3f;background:#fffaf7}.support-item span,.support-item small{display:block;margin-top:4px}.support-orders{margin-top:18px;background:#fff;padding:18px;border:1px solid #dce2dc;border-radius:12px;overflow-wrap:anywhere}.support-order{padding:14px 0;border-bottom:1px solid #e1e5df}.support-order p{font-size:13px}.support-empty{padding:36px;background:#fff;border-radius:12px}.chat-thread button:disabled{opacity:.5;cursor:wait}@media(max-width:700px){.chat-messages{height:390px;padding:16px}.chat-message{max-width:91%}.chat-thread form{padding:13px}.chat-keyboard-hint{display:none}.support-workspace{grid-template-columns:1fr}.support-customer-profile dl{grid-template-columns:1fr}.chat-composer-toolbar{justify-content:space-between}}
.support-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.support-controls h2{margin:0}.support-controls>span{font-size:12px;color:#718078}.support-controls label{font-size:12px}.support-controls select{padding:6px}.chat-thread .chat-send{background:#df6b3f;border:1px solid #df6b3f;color:#fff;border-radius:9px;padding:11px 15px;font-size:12px;cursor:pointer;font-weight:700;white-space:nowrap}.chat-thread .chat-send:hover{background:#ca5c31}.chat-file{flex-wrap:wrap}.chat-message .chat-file img{max-width:100%}.chat-thread [hidden]{display:none!important}.chat-intro{color:#718078;font-size:14px;margin-bottom:22px}.chat-thread a:focus-visible,.chat-thread button:focus-visible{outline:3px solid #df6b3f;outline-offset:3px}
