/* ============================================================
   WORKROCKS RECEPTION AI — Concierge Widget Styles
   משתמש במשתני CSS הקיימים של התבנית (Navy / Gold)
============================================================ */
.wr-cc-wrap { max-width: 900px; margin: 0 auto; padding: 16px 20px 0; position: relative; z-index: 500; }

.wr-cc-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--wr-card, #141f35);
  border: 1.5px solid var(--wr-gold-border, rgba(201,168,76,0.25));
  border-radius: var(--wr-radius-lg, 14px);
  padding: 12px 16px;
  transition: var(--wr-transition, 0.2s ease);
  cursor: text;
}
.wr-cc-bar:focus-within, .wr-cc-bar.wr-cc-active {
  border-color: var(--wr-gold, #C9A84C);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.wr-cc-icon { font-size: 18px; flex-shrink: 0; }
.wr-cc-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--wr-text, #f0f0f0); font-size: 15px; padding: 4px 0; direction: rtl;
}
.wr-cc-input::placeholder { color: var(--wr-muted, #7A8AAA); }
.wr-cc-send {
  background: var(--wr-gold, #C9A84C); color: var(--wr-bg, #0A1628);
  border: none; border-radius: 8px; padding: 9px 18px;
  font-weight: 700; font-size: 13px; cursor: pointer; flex-shrink: 0;
  transition: var(--wr-transition, 0.2s ease);
}
.wr-cc-send:hover { background: var(--wr-gold-light, #e8c96a); }

/* ---- Panel ---- */
.wr-cc-panel {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 4px); right: 20px; left: 20px;
  background: var(--wr-surface, #111f38);
  border: 1px solid var(--wr-border, rgba(201,168,76,0.15));
  border-radius: var(--wr-radius-lg, 14px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 599; max-height: 75vh; overflow: hidden;
}
.wr-cc-panel.open { display: flex; }

.wr-cc-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--wr-border, rgba(201,168,76,0.15));
  color: var(--wr-text, #f0f0f0); font-size: 14px;
}
.wr-cc-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--wr-green, #4ade80); margin: 0 6px;
}
.wr-cc-panel-header small { color: var(--wr-muted, #7A8AAA); font-weight: 400; }
.wr-cc-close {
  background: none; border: none; color: var(--wr-muted, #7A8AAA);
  font-size: 16px; cursor: pointer; padding: 4px 8px;
}
.wr-cc-close:hover { color: var(--wr-gold, #C9A84C); }

.wr-cc-messages {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.wr-cc-msg { display: flex; }
.wr-cc-msg-ai { justify-content: flex-start; }
.wr-cc-msg-user { justify-content: flex-end; }
.wr-cc-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.55; white-space: pre-line;
}
.wr-cc-msg-ai .wr-cc-bubble {
  background: var(--wr-card, #141f35); color: var(--wr-text, #f0f0f0);
  border: 1px solid var(--wr-border, rgba(201,168,76,0.15));
  border-bottom-left-radius: 4px;
}
.wr-cc-msg-user .wr-cc-bubble {
  background: var(--wr-gold, #C9A84C); color: var(--wr-bg, #0A1628);
  font-weight: 600; border-bottom-right-radius: 4px;
}
.wr-cc-feature-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  background: var(--wr-gold-dim, rgba(201,168,76,0.12));
  border: 1px solid var(--wr-gold-border, rgba(201,168,76,0.25));
  color: var(--wr-gold, #C9A84C); border-radius: 50px;
  padding: 6px 14px; font-size: 12px; font-weight: 700; text-decoration: none;
}
.wr-cc-feature-chip:hover { background: var(--wr-gold, #C9A84C); color: var(--wr-bg, #0A1628); }

.wr-cc-typing { display: flex; gap: 4px; padding: 10px 14px; }
.wr-cc-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--wr-muted, #7A8AAA);
  animation: wrCcBounce 1.2s infinite ease-in-out;
}
.wr-cc-typing span:nth-child(2) { animation-delay: 0.15s; }
.wr-cc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wrCcBounce { 0%,80%,100%{transform:scale(0.6);opacity:0.5;} 40%{transform:scale(1);opacity:1;} }

/* ---- Lead form ---- */
.wr-cc-lead-form {
  padding: 14px 18px; border-top: 1px solid var(--wr-border, rgba(201,168,76,0.15));
  background: var(--wr-card, #141f35);
}
.wr-cc-lead-form p { margin: 0 0 10px; font-size: 13px; color: var(--wr-text, #f0f0f0); }
.wr-cc-lead-form input {
  width: 100%; box-sizing: border-box; margin-bottom: 8px;
  background: var(--wr-surface, #111f38); border: 1px solid var(--wr-border, rgba(201,168,76,0.15));
  border-radius: 8px; padding: 9px 12px; color: var(--wr-text, #f0f0f0); font-size: 13px; direction: rtl;
}
.wr-cc-lead-actions { display: flex; gap: 8px; }
.wr-cc-primary-btn {
  flex: 1; background: var(--wr-gold, #C9A84C); color: var(--wr-bg, #0A1628);
  border: none; border-radius: 8px; padding: 9px 14px; font-weight: 700; cursor: pointer;
}
.wr-cc-skip-btn {
  background: none; border: 1px solid var(--wr-border, rgba(201,168,76,0.15));
  color: var(--wr-muted, #7A8AAA); border-radius: 8px; padding: 9px 14px; cursor: pointer;
}

/* ---- Input bar ---- */
.wr-cc-input-bar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid var(--wr-border, rgba(201,168,76,0.15));
}
.wr-cc-input-bar textarea {
  flex: 1; resize: none; max-height: 90px;
  background: var(--wr-surface, #111f38); border: 1px solid var(--wr-border, rgba(201,168,76,0.15));
  border-radius: 10px; padding: 10px 12px; color: var(--wr-text, #f0f0f0); font-size: 14px;
  direction: rtl; outline: none; font-family: inherit;
}
.wr-cc-input-bar textarea:focus { border-color: var(--wr-gold, #C9A84C); }
.wr-cc-send-btn {
  background: var(--wr-gold, #C9A84C); color: var(--wr-bg, #0A1628);
  border: none; border-radius: 10px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transform: scaleX(-1);
}
.wr-cc-send-btn:hover { background: var(--wr-gold-light, #e8c96a); }

@media (max-width: 640px) {
  .wr-cc-wrap { padding: 10px 12px 0; }
  .wr-cc-panel { right: 12px; left: 12px; max-height: 80vh; }
  .wr-cc-bubble { max-width: 90%; }
}
