.order-chat-btn{width:100%;margin-top:10px;border:1px solid #20d66b;background:#101713;color:#59ff9a;border-radius:12px;padding:11px 14px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}.order-chat-btn:hover{background:#14261b}.order-chat-btn .order-chat-badge{min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#ff3b30;color:#fff;display:inline-grid;place-items:center;font-size:11px}.order-chat-layer{position:fixed;inset:0;z-index:2147483600;display:none;align-items:center;justify-content:center;padding:14px;background:rgba(0,0,0,.72)}.order-chat-layer.show{display:flex}.order-chat-window{width:min(460px,100%);height:min(620px,90vh);background:#101411;border:1px solid #275d3b;border-radius:20px;overflow:hidden;display:grid;grid-template-rows:auto 1fr auto;box-shadow:0 30px 90px rgba(0,0,0,.55)}.order-chat-head{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border-bottom:1px solid #26342b}.order-chat-head h3{margin:0;color:#fff;font-size:17px}.order-chat-head p{margin:3px 0 0;color:#9aab9f;font-size:12px}.order-chat-head button{border:0;background:#202b24;color:#fff;width:34px;height:34px;border-radius:50%;font-size:22px;cursor:pointer}.order-chat-messages{padding:14px;overflow:auto;display:flex;flex-direction:column;gap:9px}.order-chat-message{max-width:82%;padding:10px 12px;border-radius:14px;background:#242c27;color:#fff;align-self:flex-start;word-break:break-word}.order-chat-message.mine{background:#176b38;align-self:flex-end}.order-chat-message small{display:block;margin-top:4px;opacity:.65;font-size:10px}.order-chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-top:1px solid #26342b}.order-chat-compose textarea{resize:none;min-height:42px;max-height:100px;background:#171d19;border:1px solid #35483b;color:#fff;border-radius:12px;padding:11px;font:inherit}.order-chat-compose button{border:0;border-radius:12px;background:#20d66b;color:#07130b;font-weight:900;padding:0 17px;cursor:pointer}.order-chat-empty{text-align:center;color:#8fa096;margin:auto}.order-chat-inline{margin-top:12px;display:flex;gap:8px;align-items:center}.order-chat-inline .order-chat-btn{margin:0;width:auto}.order-chat-new{animation:orderChatPulse .8s ease 2}@keyframes orderChatPulse{50%{transform:scale(1.05);box-shadow:0 0 0 8px rgba(32,214,107,.12)}}

/* Ícone compacto do chat somente no card resumido */
.compact-order{position:relative}
.order-chat-icon{position:absolute;right:12px;bottom:56px;width:36px;height:36px;padding:0;border:1px solid rgba(64,255,139,.55);border-radius:11px;background:#101914;color:#65ff9f;display:grid;place-items:center;font-size:17px;line-height:1;cursor:pointer;z-index:4;box-shadow:0 8px 20px rgba(0,0,0,.24);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.order-chat-icon:hover{background:#16271d;border-color:#65ff9f;box-shadow:0 0 0 3px rgba(64,255,139,.10)}
.order-chat-icon .order-chat-badge{position:absolute;right:-6px;top:-7px;min-width:18px;height:18px;padding:0 4px;border:2px solid #101411;border-radius:999px;background:#ff3b30;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:900}
.order-chat-icon.order-chat-new{animation:orderChatIconPulse .75s ease 2}
@keyframes orderChatIconPulse{50%{transform:scale(1.12);box-shadow:0 0 0 9px rgba(32,214,107,.16)}}
.order-chat-message small{min-height:13px}
@media(max-width:680px){.order-chat-icon{right:10px;bottom:54px;width:34px;height:34px}}

.order-chat-layer{z-index:30050!important}.operation-order-chat-layer{z-index:40000!important}.op99-chat{background:#10251a!important;border:1px solid #21c66b!important;color:#fff!important}.op99-chat:hover{filter:brightness(1.08)}

/* O chat do cliente deve permanecer acima do acompanhamento e do suporte. */
#orderChatLayer.order-chat-layer{z-index:2147483647!important}
