/* AI Web Agent Widget - D&L Project56 / dlproject.io */
.webai-widget {
  position: fixed;
  right: 22px;
  bottom: 104px;
  z-index: 9998;
  font-family: "Outfit", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.webai-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  border-radius: 999px;
  padding: 14px 18px;
  background: #16161a;
  color: #c9a84c;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1.1px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.webai-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  background: #1f1f25;
}

.webai-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6ee7a8;
  box-shadow: 0 0 0 5px rgba(110, 231, 168, 0.18);
}

.webai-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(410px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 155px));
  display: none;
  overflow: hidden;
  border-radius: 24px;
  background: #faf8f4;
  color: #1a1a1a;
  border: 1px solid rgba(201, 168, 76, 0.26);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.34);
}

.webai-panel.is-open {
  display: flex;
  flex-direction: column;
}

.webai-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, #16161a, #2a2a31);
  color: #fff;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.webai-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #c9a84c;
}

.webai-subtitle {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.86;
}

.webai-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.webai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scroll-behavior: smooth;
}

.webai-message {
  max-width: 88%;
  margin: 0 0 12px;
  padding: 12px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.webai-message.bot {
  background: #fff;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-top-left-radius: 6px;
}

.webai-message.user {
  margin-left: auto;
  background: #16161a;
  color: #fff;
  border-top-right-radius: 6px;
}

.webai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}

.webai-suggestion {
  border: 1px solid rgba(201, 168, 76, 0.32);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.webai-suggestion:hover {
  background: #f5f0e8;
  color: #8d6f25;
}

.webai-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  background: #fff;
}

.webai-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  outline: none;
  background: #faf8f4;
  color: #1a1a1a;
}

.webai-input:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.14);
}

.webai-send {
  border: 0;
  border-radius: 14px;
  padding: 0 15px;
  background: #c9a84c;
  color: #16161a;
  font-weight: 900;
  cursor: pointer;
}

.webai-send:hover {
  background: #e8c97a;
}

.webai-note {
  padding: 0 14px 12px;
  background: #fff;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.webai-actions {
  display: flex;
  gap: 8px;
  margin: -2px 0 14px;
}

.webai-action-primary,
.webai-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.webai-action-primary {
  background: #c9a84c;
  color: #16161a;
}

.webai-action-primary:hover {
  background: #e8c97a;
}

.webai-action-secondary {
  background: #fff;
  color: #16161a;
  border: 1px solid rgba(201, 168, 76, 0.34);
}

.webai-action-secondary:hover {
  border-color: #c9a84c;
  color: #8d6f25;
}

@media (max-width: 680px) {
  .webai-widget {
    right: 14px;
    bottom: 88px;
  }

  .webai-button {
    padding: 13px 15px;
    font-size: 12px;
  }

  .webai-panel {
    right: -2px;
    bottom: 58px;
    height: min(620px, calc(100vh - 132px));
    border-radius: 20px;
  }
}
