/* Public Verdiqe Concierge — scoped so dashboard/auth stay untouched. */

body.public-page .vq-whatsapp-toggle {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  background: rgba(18, 40, 30, 0.88);
  color: #f4f7f0;
  padding: 0.7rem 1.05rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

body.public-page .vq-whatsapp-toggle .vq-icon {
  color: #25d366;
}

body.public-page .vq-concierge-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 62;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  background: rgba(18, 40, 30, 0.88);
  color: #f4f7f0;
  padding: 0.7rem 1.05rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

body.public-page .vq-concierge-toggle.is-open {
  background: rgba(198, 217, 106, 0.22);
  border-color: rgba(198, 217, 106, 0.55);
}

body.public-page .vq-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

body.public-page .vq-concierge-panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(4.6rem, calc(env(safe-area-inset-bottom) + 4.4rem));
  z-index: 61;
  display: none;
  width: min(22.5rem, calc(100vw - 1.6rem));
  max-height: min(36rem, calc(100vh - 7.5rem));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.35rem;
  background: rgba(16, 36, 28, 0.94);
  color: #f4f7f0;
}

body.public-page .vq-concierge-panel.is-open {
  display: flex;
}

body.public-page .vq-concierge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.public-page .vq-concierge-head h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.public-page .vq-concierge-head p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(244, 247, 240, 0.72);
}

body.public-page .vq-concierge-close {
  border: 0;
  background: transparent;
  color: #f4f7f0;
  font-size: 1.2rem;
  cursor: pointer;
}

body.public-page .vq-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.7rem 1rem 0;
}

body.public-page .vq-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  background: transparent;
  color: rgba(244, 247, 240, 0.78);
  padding: 0.45rem 0.6rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

body.public-page .vq-mode.is-active {
  background: rgba(198, 217, 106, 0.22);
  border-color: rgba(198, 217, 106, 0.55);
  color: #f4f7f0;
}

body.public-page .vq-concierge-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

body.public-page .vq-msg {
  max-width: 92%;
  border-radius: 1rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

body.public-page .vq-msg p {
  margin: 0;
  flex: 1;
}

body.public-page .vq-msg-speak {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(198, 217, 106, 0.18);
  color: #c6d96a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.public-page .vq-msg-assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
}

body.public-page .vq-msg-user {
  align-self: flex-end;
  background: rgba(198, 217, 106, 0.22);
}

body.public-page .vq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

body.public-page .vq-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  background: transparent;
  color: #f4f7f0;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

body.public-page .vq-chip-category,
body.public-page .vq-chip-product,
body.public-page .vq-chip-whatsapp {
  background: rgba(198, 217, 106, 0.16);
  border-color: rgba(198, 217, 106, 0.4);
  text-decoration: none;
}

body.public-page .vq-concierge-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.public-page .vq-concierge-form input {
  flex: 1;
  min-width: 0;
}

body.public-page .vq-mic-btn {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.public-page .vq-voice-stage {
  padding: 0.35rem 1rem 0.85rem;
  text-align: center;
}

body.public-page .vq-voice-talk {
  width: 100%;
  border: 1px solid rgba(198, 217, 106, 0.45);
  border-radius: 1.15rem;
  background: rgba(198, 217, 106, 0.12);
  color: #f4f7f0;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

body.public-page .vq-voice-orb {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 9999px;
  background: rgba(198, 217, 106, 0.28);
  color: #10241c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.public-page .vq-voice-orb .vq-icon {
  width: 1.35rem;
  height: 1.35rem;
}

body.public-page .vq-voice-talk strong {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.public-page .vq-voice-talk.is-listening .vq-voice-orb {
  animation: vq-pulse 1.1s ease-in-out infinite;
  background: #c6d96a;
}

body.public-page .vq-voice-status {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(244, 247, 240, 0.74);
}

body.public-page .pdp-voice,
body.public-page .pdp-ask-card {
  margin-top: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
}

body.public-page .pdp-voice-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  border: 1px solid rgba(198, 217, 106, 0.45);
  border-radius: 0.95rem;
  background: rgba(198, 217, 106, 0.16);
  color: #f4f7f0;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
}

body.public-page .pdp-voice-btn.is-playing {
  background: rgba(198, 217, 106, 0.28);
}

body.public-page .pdp-voice-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 9999px;
  background: #c6d96a;
  color: #10241c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.public-page .pdp-voice-icon .vq-icon {
  width: 1.3rem;
  height: 1.3rem;
}

body.public-page .pdp-voice-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.public-page .pdp-voice-copy strong {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.public-page .pdp-voice-copy em {
  font-style: normal;
  font-size: 0.86rem;
  color: rgba(244, 247, 240, 0.78);
}

body.public-page .pdp-voice-title,
body.public-page .pdp-ask-card h2 {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c6d96a;
}

body.public-page .pdp-ask-card {
  cursor: pointer;
  text-align: left;
}

body.public-page .pdp-ask-card p,
body.public-page .pdp-voice p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(244, 247, 240, 0.82);
}

body.public-page .pdp-voice-progress {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(244, 247, 240, 0.7);
}

@keyframes vq-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-page .vq-concierge-toggle,
  body.public-page .vq-whatsapp-toggle,
  body.public-page .vq-concierge-panel,
  body.public-page .vq-voice-talk.is-listening .vq-voice-orb {
    transition: none;
    animation: none;
  }
}
