#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 400px;
  font-family: Arial, sans-serif;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.chat-header {
  background: linear-gradient(135deg, #08432a 0%, #0b5d3b 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.header-logo img { width: 100%; height: 100%; object-fit: cover; }

.header-info { flex: 1; }

.header-info .name {
  font-size: 15px; font-weight: 700;
  color: #fff;
}

.header-info .status {
  font-size: 12px; color: rgba(255,255,255,.8);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5ef087; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.close-btn {
  background: rgba(255,255,255,.15);
  border: none; color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer;
  font-size: 20px; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}

.close-btn:hover { background: rgba(255,255,255,.28); }

.chat-messages {
  background: #f7f7f7;
  padding: 16px;
  overflow-y: auto;
  min-height: 120px;
  max-height: 420px;
}

.bot-msg {
  background: #fff; color: #1a1a18;
  padding: 10px 14px; margin: 0 0 8px 0;
  border-radius: 4px 14px 14px 14px;
  font-size: 14px; line-height: 1.5;
  max-width: 90%;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.user-msg {
  background: #0b5d3b; color: #fff;
  padding: 10px 14px;
  margin: 0 0 8px auto;
  border-radius: 14px 4px 14px 14px;
  font-size: 14px; line-height: 1.5;
  max-width: 90%; text-align: right;
}

.quick-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }

.quick-buttons button {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 20px;
  border: 1.5px solid #0b5d3b;
  background: #fff; color: #0b5d3b; cursor: pointer;
}

.quick-buttons button:hover { background: #0b5d3b; color: #fff; }

.chat-form {
  background: #fff;
  padding: 14px 16px 10px;
  border-top: 1px solid #eee;
}

.chat-input {
  width: 100%; border: 1.5px solid #ddd;
  border-radius: 8px; padding: 11px 14px;
  font-size: 14px; margin-bottom: 10px;
  outline: none; box-sizing: border-box;
}

.chat-input:focus { border-color: #0b5d3b; }

.next-btn {
  width: 100%; background: #0b5d3b;
  color: #fff; border: none;
  border-radius: 8px; padding: 13px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
}

.next-btn:hover { opacity: .9; }

.powered-by {
  text-align: center; font-size: 11px;
  color: #aaa; padding: 8px 0 4px;
}

.powered-by a { color: #0b5d3b; font-weight: 600; text-decoration: none; }

#chat-toggle {
  position: fixed; bottom: 20px; right: 20px;
  height: 52px; padding: 0 20px;
  border-radius: 26px; background: #0b5d3b;
  border: none; color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(11,93,59,.35);
  display: none; align-items: center;
  justify-content: center; gap: 8px;
  z-index: 9999; white-space: nowrap;
}

@keyframes blink-attention {
  0%   { box-shadow: 0 4px 20px rgba(11,93,59,.35), 0 0 0 0 rgba(11,93,59,.5); transform: scale(1); }
  50%  { box-shadow: 0 4px 20px rgba(11,93,59,.35), 0 0 0 14px rgba(11,93,59,0); transform: scale(1.06); }
  100% { box-shadow: 0 4px 20px rgba(11,93,59,.35), 0 0 0 0 rgba(11,93,59,.5); transform: scale(1); }
}
#chat-toggle.blink {
  animation: blink-attention 1.6s ease-in-out infinite;
}

.quick-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 8px;
}

.quick-buttons button {
  font-size: 13px;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 10px;
  border: 2px solid #0b5d3b;
  background: #fff;
  color: #0b5d3b;
  cursor: pointer;
  text-align: center;
}

.quick-buttons button:hover {
  background: #0b5d3b;
  color: #fff;
}

.quick-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 8px; }
.quick-buttons button { padding: 12px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; }

@media (max-width: 480px) {
  #chat-widget {
    width: 92%;
    right: 4%;
    left: 4%;
    bottom: 70px;
    border-radius: 16px;
  }

  #chat-toggle {
    right: 10px;
    bottom: 10px;
    font-size: 13px;
    padding: 0 14px;
    height: 46px;
  }

  .chat-header {
    padding: 12px;
  }

  .header-logo {
    width: 36px;
    height: 36px;
  }

  .header-info .name {
    font-size: 13px;
  }

  .header-info .status {
    font-size: 11px;
  }

  .bot-msg, .user-msg {
    font-size: 13px;
    padding: 9px 12px;
    max-width: 100%;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-form {
    padding: 12px;
  }

  .chat-input {
    font-size: 13px;
    padding: 10px 12px;
  }

  .next-btn {
    padding: 12px;
    font-size: 14px;
  }

  .quick-buttons {
    gap: 6px;
  }

  .quick-buttons button {
    font-size: 12px;
    padding: 7px 10px;
  }
}