/* AI conversational wizard — pre-launch Q&A panel (storefront). */

.threedpc-wizard-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.7em 1.3em;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 10px;
  color: #7c3aed;
  background: #fff;
  margin: 0 0 1em 0.6em;
  transition: transform 0.15s ease, background 0.15s ease;
}

.threedpc-wizard-trigger:hover {
  background: #faf5ff;
  transform: translateY(-1px);
}

.threedpc-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  padding: 20px;
}

.threedpc-wizard-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.threedpc-wizard-card {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.threedpc-wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.2em;
  border-bottom: 1px solid #eee;
}

.threedpc-wizard-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.threedpc-wizard-close {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  padding: 0.2em;
}

.threedpc-wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.threedpc-wizard-msg {
  max-width: 88%;
  padding: 0.7em 0.95em;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.threedpc-wizard-msg.from-ai {
  align-self: flex-start;
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.threedpc-wizard-msg.from-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0a84ff, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.threedpc-wizard-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-self: flex-start;
  max-width: 100%;
}

.threedpc-wizard-option {
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.55em 0.95em;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  background: #fff;
  color: #1e293b;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.threedpc-wizard-option:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}

.threedpc-wizard-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.7em 0.95em;
  background: #f1f5f9;
  border-radius: 12px;
}

.threedpc-wizard-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: threedpc-wizard-bounce 1s infinite ease-in-out;
}

.threedpc-wizard-typing span:nth-child(2) { animation-delay: 0.15s; }
.threedpc-wizard-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes threedpc-wizard-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.threedpc-wizard-footer {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1em;
  border-top: 1px solid #eee;
}

.threedpc-wizard-input {
  flex: 1;
  font: inherit;
  font-size: 14px;
  padding: 0.65em 0.9em;
  border: 1px solid #d8dee9;
  border-radius: 999px;
  outline: none;
}

.threedpc-wizard-input:focus {
  border-color: #7c3aed;
}

.threedpc-wizard-mic,
.threedpc-wizard-send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff, #7c3aed);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.threedpc-wizard-mic.is-listening {
  background: linear-gradient(135deg, #ef4444, #f97316);
  animation: threedpc-wizard-pulse 1.2s infinite;
}

@keyframes threedpc-wizard-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.threedpc-wizard-mic:hover,
.threedpc-wizard-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.threedpc-wizard-error {
  align-self: center;
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.6em 0.9em;
  border-radius: 8px;
}