:root {
  --zc-gold: #b8925a;
  --zc-charcoal: #1f1b16;
  --zc-cream: #faf6ef;
  --zc-text: #2a2420;
  --zc-border: #e7ddcd;
}

.zc-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--zc-charcoal);
  color: var(--zc-gold);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  transition: transform 0.15s ease;
}
.zc-bubble:hover { transform: scale(1.06); }
.zc-bubble svg { width: 26px; height: 26px; }

.zc-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: var(--zc-cream);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  border: 1px solid var(--zc-border);
}
.zc-panel.zc-open { display: flex; }

.zc-header {
  background: var(--zc-charcoal);
  color: var(--zc-cream);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zc-header-title { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.zc-header-sub { font-size: 11px; color: var(--zc-gold); margin-top: 2px; }
.zc-close {
  background: none; border: none; color: var(--zc-cream);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 4px;
}

.zc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zc-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.zc-msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--zc-border); color: var(--zc-text); border-bottom-left-radius: 3px; }
.zc-msg-user { align-self: flex-end; background: var(--zc-charcoal); color: var(--zc-cream); border-bottom-right-radius: 3px; }
.zc-msg-error { align-self: flex-start; background: #fdecec; color: #8a2a2a; border: 1px solid #f3c9c9; }

.zc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; }
.zc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--zc-gold); animation: zc-bounce 1s infinite ease-in-out; }
.zc-typing span:nth-child(2) { animation-delay: 0.15s; }
.zc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes zc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.zc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.zc-chip {
  border: 1px solid var(--zc-gold); color: var(--zc-charcoal); background: #fff;
  border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.zc-chip:hover { background: var(--zc-gold); color: #fff; }

.zc-inputbar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--zc-border); background: #fff; }
.zc-input {
  flex: 1; border: 1px solid var(--zc-border); border-radius: 20px;
  padding: 8px 14px; font-size: 13.5px; outline: none;
}
.zc-input:focus { border-color: var(--zc-gold); }
.zc-send {
  background: var(--zc-charcoal); color: var(--zc-gold); border: none;
  border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.zc-send:disabled { opacity: 0.5; cursor: default; }
.zc-send svg { width: 16px; height: 16px; }

.zc-demo-badge {
  font-size: 10px; background: #fff3cd; color: #7a5c00; border: 1px solid #ffe08a;
  border-radius: 6px; padding: 2px 6px; margin-left: 6px;
}

.zc-msg-assistant a { color: #8a5a1f; text-decoration: underline; font-weight: 500; }
.zc-msg-assistant a:hover { color: var(--zc-charcoal); }

.zc-cards { display: flex; flex-direction: column; gap: 8px; }
.zc-card {
  display: flex; gap: 10px; align-items: center; background: #fff;
  border: 1px solid var(--zc-border); border-radius: 10px; padding: 8px;
  text-decoration: none; color: var(--zc-text); transition: border-color 0.15s;
}
.zc-card:hover { border-color: var(--zc-gold); }
.zc-card-img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 8px;
  flex-shrink: 0; background: #f0e9dd;
}
.zc-card-body { min-width: 0; }
.zc-card-title {
  font-size: 12.5px; font-weight: 500; line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.zc-card-price { font-size: 12px; color: #8a5a1f; margin-top: 2px; }

.zc-footer {
  font-size: 11.5px; color: #6b6155; text-align: center;
  padding: 8px 10px; background: #fff; border-top: 1px solid var(--zc-border);
}
.zc-footer a { color: #8a5a1f; text-decoration: underline; font-weight: 500; }
.zc-footer a:hover { color: var(--zc-charcoal); }
