.copy-float-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-float-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.copy-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line, #cfd8e3);
  background: rgba(255,255,255,0.96);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.copy-content-btn {
  appearance: none;
  border: 1px solid var(--line, #cfd8e3);
  background: var(--panel, #ffffff);
  color: var(--text, #1b2430);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.copy-content-btn:hover {
  background: #eef3f8;
}

.copy-content-btn:active {
  transform: translateY(1px);
}

.copy-content-btn[disabled] {
  opacity: 0.72;
  cursor: default;
}

.copy-status {
  color: var(--muted, #5d6978);
  font-size: 0.94rem;
  min-height: 1.2em;
  white-space: nowrap;
}

.copy-only {
  display: none !important;
}

@media (max-width: 640px) {
  .copy-float-wrap {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }

  .copy-float-pill {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
  }

  .copy-content-btn {
    padding: 10px 14px;
  }

  .copy-status {
    font-size: 0.88rem;
    white-space: normal;
    text-align: right;
  }
}
