.driver-chat-card { margin-top: 14px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.driver-chat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.driver-chat-head > span:first-child { display: flex; align-items: center; gap: 8px; }
.driver-chat-head i { color: #ff6b00; }
.driver-chat-head-actions { display: flex; align-items: center; gap: 7px; }
.driver-chat-head-actions > button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #e3e6ea; border-radius: 10px; background: #fff; }
.driver-chat-head-actions > button i { color: #17191c; }
.driver-chat-badge { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #ff3b30; color: #fff; font-size: .72rem; font-weight: 900; }
.driver-chat-messages { display: flex; flex-direction: column; gap: 8px; min-height: 110px; max-height: 230px; overflow-y: auto; padding: 12px; border-radius: 16px; background: #f5f6f7; }
.driver-chat-message { display: grid; align-self: flex-start; max-width: 84%; padding: 9px 11px; border-radius: 15px 15px 15px 5px; background: #fff; box-shadow: 0 3px 12px rgba(15,23,42,.06); }
.driver-chat-message.mine { align-self: flex-end; border-radius: 15px 15px 5px 15px; background: #ff6b00; color: #fff; }
.driver-chat-message strong { font-size: .7rem; opacity: .72; }
.driver-chat-message small { justify-self: end; margin-top: 3px; font-size: .62rem; opacity: .65; }
.driver-chat-empty { margin: auto; color: #667085; font-size: .82rem; text-align: center; }
.driver-chat-empty.danger { color: #b42318; }
.driver-chat-retry {
  display: block;
  margin: 8px auto 0;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: #17191c;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
}
.driver-chat-compose { display: flex; gap: 8px; margin-top: 10px; }
.driver-chat-compose input { flex: 1; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #d0d5dd; border-radius: 14px; outline: none; }
.driver-chat-compose input:focus { border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,.13); }
.driver-chat-compose button { display: grid; flex: 0 0 46px; place-items: center; border: 0; border-radius: 14px; background: #ff6b00; color: #fff; }
.driver-chat-compose button:disabled { cursor: wait; opacity: .55; }
.order-actions .driver-chat-action { border: 1px solid #17191c; background: #17191c; color: #fff; }
