#lin-chat-root {
  font-family: Arial, sans-serif;
}

#lin-chat-trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform 0.2s ease;
}

#lin-chat-trigger:hover {
  transform: translateY(-2px);
}

#lin-chat-box {
  position: fixed;
  right: 20px;
  bottom: 78px;
  width: 360px;
  height: 580px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.lin-hidden {
  display: none !important;
}

.lin-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 14px;
}

.lin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.lin-info {
  flex: 1;
}

.lin-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.lin-status {
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.2;
}

.lin-close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

#lin-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #fafafa;
}

.lin-msg {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}

.lin-bot {
  background: #f1f1f1;
  color: #111;
}

.lin-user {
  background: #111;
  color: #fff;
  margin-left: auto;
}

#lin-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #eee;
}

.lin-quick-btn {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f4f4;
  cursor: pointer;
  border: 1px solid #ececec;
}

.lin-quick-btn:hover {
  background: #ededed;
}

.lin-input-box {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #eee;
}

#lin-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 10px 12px;
  outline: none;
  font-size: 13px;
}

#lin-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}

.lin-cta-btn {
  display: block;
  margin-top: 10px;
  background: #111;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.lin-typing {
  font-style: italic;
  opacity: 0.8;
}

@media (max-width: 768px) {
  #lin-chat-trigger {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
    font-size: 13px;
  }

  #lin-chat-box {
    width: calc(100% - 16px);
    right: 8px;
    bottom: 8px;
    height: 72vh;
    border-radius: 18px;
  }

  .lin-msg {
    max-width: 86%;
  }
}