:root {
  --rw-ai-float-border: rgba(255, 255, 255, 0.15);
  --rw-ai-float-shadow: rgba(0, 0, 0, 0.35);
}

.rw-ai-float-btn {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 197, 66, 0.9);
  background: rgba(244, 197, 66, 0.95);
  color: #151515;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 6px 16px var(--rw-ai-float-shadow);
}

.rw-ai-float-panel {
  position: fixed;
  border: 1px solid var(--rw-ai-float-border);
  background: rgba(18, 20, 24, 0.35);
  box-shadow: 0 10px 24px var(--rw-ai-float-shadow);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 9997;
}

.rw-ai-float-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rw-ai-float-panel.mode-side {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(42vw, 520px);
  height: 100vh;
  border-radius: 0;
}

.rw-ai-float-panel.mode-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100vw;
  height: 33vh;
  min-height: 180px;
  max-height: 50vh;
  border-radius: 12px 12px 0 0;
}

.rw-ai-float-panel.mode-center {
  border-radius: 12px;
  background: rgba(16, 18, 22, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.rw-ai-float-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
