/* ===========================================================
   Nearbys — Business (partners.html) Chat module styles
   Isolated: every selector is prefixed with .business-chat-
   Does not override or touch any existing styles.
   =========================================================== */

.business-chat-button{
  position:fixed;
  right:14px;
  bottom:79px; /* sits above the 65px .vendor-footer */
  z-index:1001;
  display:none;              /* shown by JS only when a vendor is logged in */
  align-items:center;
  gap:8px;
  padding:11px 16px;
  border:none;
  border-radius:999px;
  background:#16a34a;
  color:#fff;
  font-size:14px;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
  -webkit-tap-highlight-color:transparent;
}
.business-chat-button.business-chat-visible{ display:flex; }
.business-chat-button:active{ transform:scale(.97); }

.business-chat-button .business-chat-badge{
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  font-size:11px;
  line-height:18px;
  text-align:center;
  display:none;
}
.business-chat-button .business-chat-badge.business-chat-badge-on{ display:inline-block; }

.business-chat-window{
  position:fixed;
  right:14px;
  bottom:140px;
  z-index:1002;
  width:340px;
  max-width:calc(100vw - 28px);
  height:440px;
  max-height:calc(100vh - 190px);
  background:#fff;
  border-radius:16px;
  box-shadow:0 14px 40px rgba(0,0,0,.3);
  display:none;
  flex-direction:column;
  overflow:hidden;
  font-family:inherit;
}
.business-chat-window.business-chat-open{
  display:flex;
  animation:businessChatIn .18s ease-out;
}
@keyframes businessChatIn{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

.business-chat-header{
  flex:0 0 auto;
  background:#16a34a;
  color:#fff;
  padding:12px 14px;
  font-size:15px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.business-chat-close{
  background:none;
  border:none;
  color:#fff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  padding:0 2px;
}

.business-chat-messages{
  flex:1 1 auto;
  overflow-y:auto;
  padding:12px;
  background:#f4f5f7;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.business-chat-empty{
  margin:auto;
  text-align:center;
  font-size:13px;
  color:#6b7280;
  padding:10px;
}

.business-chat-row{ display:flex; }
.business-chat-row-me{ justify-content:flex-end; }
.business-chat-row-admin{ justify-content:flex-start; }

.business-chat-bubble{
  max-width:78%;
  padding:8px 11px;
  border-radius:14px;
  font-size:13.5px;
  line-height:1.4;
  word-wrap:break-word;
  white-space:pre-wrap;
  background:#fff;
  color:#111827;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  gap:3px;
}
.business-chat-row-me .business-chat-bubble{
  background:#16a34a;
  color:#fff;
}

.business-chat-time{
  font-size:10.5px;
  opacity:.7;
  align-self:flex-end;
}

.business-chat-input-area{
  flex:0 0 auto;
  display:flex;
  gap:8px;
  padding:10px;
  background:#fff;
  border-top:1px solid #e5e7eb;
}
.business-chat-input{
  flex:1 1 auto;
  min-width:0;
  border:1px solid #d1d5db;
  border-radius:999px;
  padding:9px 13px;
  font-size:14px;
  font-family:inherit;
  outline:none;
}
.business-chat-input:focus{ border-color:#16a34a; }
.business-chat-send{
  flex:0 0 auto;
  border:none;
  border-radius:999px;
  background:#16a34a;
  color:#fff;
  font-size:14px;
  font-weight:600;
  font-family:inherit;
  padding:9px 16px;
  cursor:pointer;
}
.business-chat-send:disabled{ opacity:.6; cursor:default; }

@media (max-width:420px){
  .business-chat-window{
    right:8px;
    left:8px;
    width:auto;
    bottom:132px;
  }
}
