.chat-toggle{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9999;
  width:64px;
  height:64px;
  border:none;
  border-radius:50%;
  background:#d90b3f;
  color:#fff;
  font-size:28px;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  transition:.2s ease;
}

.chat-toggle:hover{
  transform:translateY(-2px) scale(1.03);
  background:#b00835;
}

.chat-widget{
  position:fixed;
  right:22px;
  bottom:98px;
  width:360px;
  max-width:calc(100vw - 24px);
  height:560px;
  max-height:75vh;
  background:#fff;
  border:1px solid #ececec;
  border-radius:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
  overflow:hidden;
  display:none;
  flex-direction:column;
  z-index:9999;
}

.chat-widget.open{
  display:flex;
}

.chat-header{
  background:linear-gradient(135deg, #d90b3f 0%, #ef335f 100%);
  color:#fff;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.chat-header-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.chat-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:14px;
  flex-shrink:0;
}

.chat-title{
  font-size:16px;
  font-weight:700;
  line-height:1.1;
}

.chat-subtitle{
  font-size:12px;
  opacity:.95;
  margin-top:2px;
}

.chat-close{
  background:transparent;
  border:none;
  color:#fff;
  font-size:26px;
  cursor:pointer;
  line-height:1;
}

.chat-body{
  flex:1;
  background:#fafafa;
  padding:14px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.chat-message{
  max-width:85%;
  padding:12px 14px;
  border-radius:16px;
  font-size:14px;
  line-height:1.45;
  white-space:pre-line;
}

.chat-message.bot{
  background:#fff;
  border:1px solid #ececec;
  color:#171717;
  align-self:flex-start;
}

.chat-message.user{
  background:#d90b3f;
  color:#fff;
  align-self:flex-end;
}

.chat-quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}

.chat-quick button{
  border:1px solid #ececec;
  background:#fff;
  color:#171717;
  padding:9px 12px;
  border-radius:999px;
  font-size:13px;
  cursor:pointer;
  transition:.2s ease;
}

.chat-quick button:hover{
  border-color:#d90b3f;
  color:#d90b3f;
}

.chat-footer{
  border-top:1px solid #ececec;
  background:#fff;
  padding:12px;
}

.chat-form{
  display:flex;
  gap:8px;
}

.chat-input{
  flex:1;
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  outline:none;
}

.chat-input:focus{
  border-color:#d90b3f;
}

.chat-send{
  border:none;
  background:#d90b3f;
  color:#fff;
  border-radius:12px;
  padding:0 16px;
  font-weight:700;
  cursor:pointer;
}

.chat-links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}

.chat-link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#d90b3f;
  color:#fff !important;
  padding:10px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.chat-link-btn.secondary{
  background:#fff;
  color:#d90b3f !important;
  border:1px solid #d90b3f;
}

@media (max-width: 640px){
  .chat-widget{
    right:12px;
    bottom:86px;
    width:calc(100vw - 24px);
    height:70vh;
  }

  .chat-toggle{
    right:12px;
    bottom:12px;
  }
}