#vendy-widget-root {
  position: fixed;
  bottom: 0;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#vendy-widget-root.vendy-pos-right {
  right: 20px;
}
#vendy-widget-root.vendy-pos-left {
  left: 20px;
}

/* --- Floating launcher button --- */
.vendy-launcher {
  position: absolute;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 0;
  transition: transform 0.15s ease;
}
.vendy-pos-right .vendy-launcher { right: 0; }
.vendy-pos-left .vendy-launcher { left: 0; }

.vendy-launcher:hover {
  transform: scale(1.06);
}

.vendy-launcher img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vendy-launcher .vendy-launcher-emoji {
  font-size: 28px;
  line-height: 1;
}

.vendy-launcher .vendy-launcher-close {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}

/* --- Greeting bubble --- */
.vendy-greeting-bubble {
  position: absolute;
  bottom: 32px;
  max-width: 180px;
  background: #fff;
  color: #1e1b2e;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  animation: vendy-bubble-in 0.25s ease-out;
}
.vendy-pos-right .vendy-greeting-bubble {
  right: 74px;
}
.vendy-pos-left .vendy-greeting-bubble {
  left: 74px;
}
.vendy-greeting-bubble::after {
  content: "";
  position: absolute;
  bottom: 18px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.vendy-pos-right .vendy-greeting-bubble::after {
  right: -7px;
  border-left: 8px solid #fff;
}
.vendy-pos-left .vendy-greeting-bubble::after {
  left: -7px;
  border-right: 8px solid #fff;
}

@keyframes vendy-bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Chat panel (loads /widget in an iframe) --- */
.vendy-panel {
  position: absolute;
  bottom: 92px;
  width: 380px;
  height: 640px;
  max-height: 80vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #020617;
  display: none;
  flex-direction: column;
}
.vendy-panel.vendy-open {
  display: flex;
}
.vendy-pos-right .vendy-panel { right: 0; }
.vendy-pos-left .vendy-panel { left: 0; }

.vendy-panel iframe {
  border: none;
  width: 100%;
  height: 100%;
  flex: 1;
}

/* --- Small screens: panel takes over most of the viewport --- */
@media (max-width: 480px) {
  .vendy-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 130px);
    bottom: 88px;
  }
  .vendy-pos-right .vendy-panel,
  .vendy-pos-left .vendy-panel {
    right: 12px;
    left: 12px;
  }
}
