:root {
  --ab-black: #17120f;
  --ab-copper: #b66b42;
  --ab-copper-dark: #8e4e2f;
  --ab-cream: #fff9f1;
  --ab-ivory: #f4eadf;
  --ab-amber: #5a2f1f;
  --ab-white: #ffffff;
  --ab-muted: #7b6e65;
  --ab-shadow: 0 18px 55px rgba(35, 20, 12, 0.22);
}

#ask-belleza-root,
#ask-belleza-root * {
  box-sizing: border-box;
}

#ask-belleza-root {
  position: relative;
  z-index: 2147482000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ab-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ab-black);
  color: var(--ab-white);
  box-shadow: var(--ab-shadow);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.ab-launcher:hover {
  transform: translateY(-2px);
}

.ab-launcher.ab-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.ab-launcher-icon {
  font-size: 19px;
}

.ab-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(390px, calc(100vw - 24px));
  height: min(690px, calc(100vh - 40px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  border: 1px solid rgba(90, 47, 31, .15);
  border-radius: 24px;
  background: var(--ab-cream);
  box-shadow: var(--ab-shadow);
  opacity: 0;
  transform: translateY(15px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.ab-panel.ab-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  background: linear-gradient(135deg, var(--ab-black), var(--ab-amber));
  color: var(--ab-white);
}

.ab-title {
  font-size: 17px;
  font-weight: 800;
}

.ab-subtitle {
  margin-top: 2px;
  font-size: 12px;
  opacity: .76;
}

.ab-header-actions {
  display: flex;
  gap: 7px;
}

.ab-reset,
.ab-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--ab-white);
  line-height: 30px;
  cursor: pointer;
}

.ab-reset {
  font-size: 18px;
}

.ab-close {
  font-size: 24px;
}

.ab-reset:disabled {
  opacity: .55;
  cursor: wait;
}

.ab-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ab-messages {
  flex: 1;
  overflow-y: auto;
  padding: 17px 14px 10px;
  scroll-behavior: smooth;
}

.ab-message-row {
  display: flex;
  margin-bottom: 10px;
}

.ab-message-row.ab-user {
  justify-content: flex-end;
}

.ab-bubble {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.46;
  overflow-wrap: anywhere;
}

.ab-assistant .ab-bubble {
  border-bottom-left-radius: 5px;
  background: var(--ab-white);
  color: var(--ab-black);
  box-shadow: 0 5px 18px rgba(68, 43, 28, .08);
}

.ab-user .ab-bubble {
  border-bottom-right-radius: 5px;
  background: var(--ab-copper);
  color: var(--ab-white);
}

.ab-bubble a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.ab-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 3px 12px 11px;
}

.ab-quick {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(142, 78, 47, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
  color: var(--ab-black);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.ab-quick:hover {
  border-color: var(--ab-copper);
  background: var(--ab-white);
}

/*
 * The standalone Elementor "Find My Combo" floating button uses the same
 * bottom-right position as Ask Belleza. Hide only that launcher; the quiz
 * itself stays available through the featured Find My Combo action inside
 * Ask Belleza.
 */
.bzq-floating,
.bzq-floating.is-visible {
  display: none !important;
}

.ab-quick-featured {
  grid-column: 1 / -1;
  justify-content: center;
  border-color: rgba(182, 107, 66, .42);
  background: linear-gradient(135deg, var(--ab-black), var(--ab-amber));
  color: var(--ab-white);
  font-weight: 800;
  text-align: center;
}

.ab-quick-featured:hover {
  border-color: var(--ab-copper);
  background: linear-gradient(135deg, #211814, #6a3825);
}

.ab-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 9px 12px;
  border-top: 1px solid rgba(90, 47, 31, .08);
  background: var(--ab-ivory);
}

.ab-contact {
  padding: 8px;
  border: 1px solid rgba(142, 78, 47, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  color: var(--ab-amber);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.ab-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 7px;
  border-top: 1px solid rgba(90, 47, 31, .1);
  background: var(--ab-white);
}

.ab-input {
  flex: 1;
  min-width: 0;
  max-height: 110px;
  resize: none;
  padding: 10px 12px;
  border: 1px solid rgba(90, 47, 31, .2);
  border-radius: 16px;
  outline: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
}

.ab-input:focus {
  border-color: var(--ab-copper);
  box-shadow: 0 0 0 3px rgba(182, 107, 66, .12);
}

.ab-send {
  flex: 0 0 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ab-black);
  color: var(--ab-white);
  font-size: 20px;
  cursor: pointer;
}

.ab-send:disabled,
.ab-input:disabled {
  opacity: .65;
  cursor: wait;
}

.ab-privacy {
  padding: 0 13px 10px;
  background: var(--ab-white);
  color: var(--ab-muted);
  font-size: 10px;
  line-height: 1.35;
}

.ab-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 48px;
}

.ab-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ab-copper);
  animation: ab-bounce 1s infinite ease-in-out;
}

.ab-typing span:nth-child(2) { animation-delay: .15s; }
.ab-typing span:nth-child(3) { animation-delay: .30s; }

@keyframes ab-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 520px) {
  .ab-launcher {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 12px 15px;
  }

  /* Compact mobile popup: leaves the website visible behind the chat. */
  .ab-panel {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    height: min(72dvh, 620px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top));
    border-radius: 22px;
  }

  .ab-header {
    padding: 13px 14px;
  }

  .ab-title {
    font-size: 16px;
  }

  .ab-reset,
  .ab-close {
    width: 32px;
    height: 32px;
  }

  .ab-messages {
    padding: 12px 10px 7px;
  }

  .ab-bubble {
    max-width: 92%;
    padding: 10px 11px;
    font-size: 13px;
  }

  .ab-quick-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 2px 9px 8px;
  }

  .ab-quick {
    min-height: 44px;
    padding: 8px;
    font-size: 11px;
  }

  .ab-quick-actions.ab-collapsed {
    display: none;
  }

  .ab-contact-row {
    padding: 7px 9px;
  }

  .ab-contact {
    padding: 7px 5px;
    font-size: 11px;
  }

  .ab-form {
    padding: 8px 9px 6px;
  }

  .ab-input {
    padding: 9px 10px;
    font-size: 13px;
  }

  .ab-send {
    flex-basis: 40px;
    height: 40px;
  }

  .ab-privacy {
    padding: 0 10px 8px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .ab-panel {
    height: min(78dvh, 620px);
  }

  .ab-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 640px) and (max-width: 520px) {
  .ab-panel {
    height: calc(100dvh - 18px - env(safe-area-inset-top));
  }

  .ab-quick-actions {
    max-height: 112px;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-panel,
  .ab-launcher,
  .ab-typing span {
    transition: none;
    animation: none;
  }
}
