#infin-apply-chat {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 550px;
  background: #fff;
  border: 2px solid #0e3c61;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  font-family: 'Open Sans', sans-serif;
  z-index: 9999;
}
.infin-chat-inner { display: flex; flex-direction: column; height: 100%; }
.infin-chat-header {
  background: #0e3c61;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px 8px 0 0;
  display: flex; justify-content: space-between; align-items: center;
}
.infin-chat-body {
  padding: 15px;
  overflow-y: auto;
  max-height: 400px;
}
.bot, .user { padding: 8px 12px; border-radius: 8px; margin-bottom: 8px; }
.bot { background: #f1f5f9; color: #333; }
.user { background: #cce5ff; text-align: right; color: #004080; }
.infin-btn-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.infin-btn {
  background: #d70032;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s;
}
.infin-btn:hover { background: #0e3c61; }
.infin-close { cursor: pointer; font-size: 18px; }


#infin-apply-chat .infin-reset {
  float: right;
  margin-right: 8px;
  background: #0e3c61;
  border: none;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#infin-apply-chat .infin-reset:hover {
  background: #0e3c61;
  color: #fff;
}
.infin-chat-header {
  position: relative;
}
.infin-chat-header .infin-reset,
.infin-chat-header .infin-close {
  cursor: pointer;
  margin-left: 10px;
  font-size: 16px;
  line-height: 1;
  background: #ffffff26;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.infin-chat-header .infin-reset:hover,
.infin-chat-header .infin-close:hover {
  background: #ffffff40;
}

/* ====== MOBILE RESPONSIVE ENHANCEMENTS ====== */
@media (max-width: 1024px) {
  #infin-apply-chat {
    right: 30px;
    bottom: 60px;
    width: 340px;
    max-height: 560px;
  }
}

@media (max-width: 768px) {
  #infin-apply-chat {
    width: 90%;
    right: 5%;
    bottom: 8%;
    max-height: 80%;
    border-radius: 12px;
  }
  .infin-chat-body {
    font-size: 13px;
    padding: 10px;
  }
  .infin-btn-group {
    flex-direction: column;
  }
  .infin-btn {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  #infin-apply-chat {
    width: 95%;
    right: 2.5%;
    bottom: 5%;
    max-height: 85%;
    border-radius: 10px;
  }
  .infin-chat-header strong {
    font-size: 14px;
  }
  .infin-chat-body {
    font-size: 12.5px;
  }
  .infin-btn {
    font-size: 12px;
    padding: 7px 10px;
  }
}


