/*
 * Website-surface only styles: corner-bubble launcher + fixed-size panel.
 * Reuses shared/styles.css for the inner chat structure (.chat-header /
 * .banner / .messages / .composer / .bubble / thinking). This file deliberately
 * does NOT use .chat-shell (that's the wizard's 100vh full-height column); the
 * panel is a small fixed-size box instead. shared/styles.css is NOT modified.
 */

/* Embeddable: keep the page itself transparent so that when this surface is
 * iframed into the storefront PDP, only the launcher/panel paint — not a
 * full-page rectangle. (shared/styles.css sets body bg to --bg; override here.) */
html, body { background: transparent; }

/* Floating launcher button — bottom-right, above page content. */
.zw-launcher {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483000;
  padding: 12px 18px;
  border: none;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.zw-launcher:hover { background: var(--accent-2); }
.zw-launcher[hidden] { display: none; }

/* The chat panel — a small fixed box (NOT 100vh). Flex column so the shared
 * .messages (flex:1, scroll) and .composer (bottom) lay out correctly inside. */
.zw-panel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  width: 380px;
  height: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  overflow: hidden;
}
/* Higher specificity than the .zw-panel{display:flex} rule so [hidden] wins. */
.zw-panel[hidden] { display: none; }

/* Minimize/close control in the header (header layout comes from shared CSS). */
.zw-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.zw-close:hover { background: #e6e6e6; }

/* On narrow/mobile widths, fill the viewport (minus a small inset) so it stays
 * usable. */
@media (max-width: 480px) {
  .zw-panel {
    width: calc(100vw - 16px);
    height: 66vh;
    bottom: 8px;
    right: 8px;
  }
}
