/* OpenClaw floating widget */
#openclaw-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 36px);

  /* glassy deep red */
  background: rgba(74, 11, 16, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  color: #ffe8ea;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  font-family: inherit;

  /* enter animation base */
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

#openclaw-float.oc-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#openclaw-float.oc-hide {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  #openclaw-float {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

#openclaw-float .oc-inner {
  display: flex;
  gap: 12px;
  padding: 14px 14px 12px 14px;
}

#openclaw-float .oc-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}
#openclaw-float .oc-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

#openclaw-float .oc-content { flex: 1 1 auto; min-width: 0; }
#openclaw-float .oc-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 6px 0;
}
#openclaw-float .oc-line {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.95;
  margin: 0;
  word-break: break-word;
}

#openclaw-float .oc-code {
  margin-top: 8px;
  display: flex;
}

#openclaw-float .oc-copy {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #fff5f6;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

#openclaw-float .oc-copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

#openclaw-float .oc-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: #ffe8ea;
  cursor: pointer;
  line-height: 26px;
  text-align: center;
  font-size: 16px;
}
#openclaw-float .oc-close:hover {
  background: rgba(0, 0, 0, 0.28);
}

#openclaw-float.oc-hidden { display: none; }

@media (max-width: 420px) {
  #openclaw-float { width: 92vw; }
  #openclaw-float .oc-icon { width: 50px; height: 50px; }
  #openclaw-float .oc-icon img { width: 40px; height: 40px; }
}
