.lpc-actions {
  --lpc-border: rgba(53, 86, 98, .22);
  --lpc-bg: #fff;
  --lpc-text: #355662;
  --lpc-hover-bg: #355662;
  --lpc-hover-text: #fff;
  --lpc-accent: #f79722;
  --lpc-shadow: 0 16px 42px rgba(53, 86, 98, .2);
  align-items: stretch;
  color: var(--lpc-text);
  display: inline-flex;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  position: relative;
  z-index: 99990;
}

.lpc-actions--floating { position: fixed; }
.lpc-actions--top-right { right: var(--lpc-offset-x); top: var(--lpc-offset-y); }
.lpc-actions--top-left { left: var(--lpc-offset-x); top: var(--lpc-offset-y); }
.lpc-actions--bottom-right { bottom: var(--lpc-offset-y); right: var(--lpc-offset-x); }
.lpc-actions--bottom-left { bottom: var(--lpc-offset-y); left: var(--lpc-offset-x); }
.lpc-control {
  align-items: stretch;
  border-radius: 10px;
  display: inline-flex;
}
.lpc-control:hover { box-shadow: 0 0 0 1px #fff; }

.lpc-actions button {
  appearance: none;
  background: var(--lpc-bg);
  border: 1px solid var(--lpc-border);
  box-shadow: none;
  color: var(--lpc-text);
  cursor: pointer;
  font: inherit;
  margin: 0;
  min-height: 36px;
}

.lpc-actions button:hover {
  background: var(--lpc-hover-bg) !important;
  border-color: var(--lpc-hover-bg) !important;
  color: var(--lpc-hover-text) !important;
}
.lpc-actions button:focus:not(:hover) { background: var(--lpc-bg) !important; color: var(--lpc-text) !important; }
.lpc-actions button:focus-visible { outline: 2px solid var(--lpc-accent); outline-offset: 2px; }
.lpc-actions button:disabled { cursor: wait; opacity: .65; }

.lpc-actions .lpc-copy {
  align-items: center;
  border-radius: 10px 0 0 10px !important;
  display: inline-flex;
  font-weight: 600 !important;
  gap: 11px;
  padding: 7px 12px;
}

.lpc-actions .lpc-icon { align-items: center; display: inline-flex; flex: 0 0 20px; height: 20px; justify-content: center; line-height: 0; width: 20px; }
.lpc-actions .lpc-icon svg { display: block; height: 18px; width: 18px; }
.lpc-actions .lpc-copy > span:last-child { display: block; line-height: 1.35; }
.lpc-actions .lpc-toggle {
  align-items: center;
  border-left: 0 !important;
  border-radius: 0 10px 10px 0 !important;
  display: inline-flex;
  justify-content: center;
  padding: 7px 10px;
  width: 36px;
}
.lpc-actions .lpc-toggle span { display: inline-block; font-size: 20px; line-height: 1; transform: rotate(90deg); }
.lpc-actions .lpc-toggle[aria-expanded="true"] span { transform: rotate(-90deg); }

.lpc-menu {
  background: var(--lpc-bg);
  border: 1px solid var(--lpc-border);
  border-radius: 14px;
  box-shadow: var(--lpc-shadow);
  min-width: 260px;
  overflow: hidden;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}
.lpc-actions--top-left .lpc-menu,
.lpc-actions--bottom-left .lpc-menu { left: 0; right: auto; }
.lpc-actions--bottom-left .lpc-menu,
.lpc-actions--bottom-right .lpc-menu { bottom: calc(100% + 8px); top: auto; }
.lpc-menu[hidden] { display: none !important; }
.lpc-menu button {
  border: 0;
  border-radius: 9px;
  display: block;
  min-height: 0;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}
.lpc-menu button:hover { border-color: transparent !important; }
.lpc-menu strong { font-size: 13px; font-weight: 650; }
.lpc-status {
  background: #0f172a;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  left: 50%;
  max-width: 220px;
  padding: 5px 8px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
}
.lpc-status:empty { display: none; }
.lpc-status.is-error { background: #991b1b; }
.lpc-actions--top-right .lpc-status,
.lpc-actions--top-left .lpc-status { bottom: calc(100% + 8px); top: auto; }
.lpc-actions--bottom-right .lpc-status,
.lpc-actions--bottom-left .lpc-status { bottom: auto; top: calc(100% + 8px); }

@media (max-width: 600px) {
  .lpc-actions .lpc-copy { padding-left: 10px; padding-right: 10px; }
  .lpc-menu { max-width: calc(100vw - 24px); min-width: 240px; }
}

@media (prefers-reduced-motion: no-preference) {
  .lpc-actions button { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
  .lpc-control { transition: box-shadow .16s ease; }
  .lpc-actions .lpc-toggle span { transition: transform .16s ease; }
}
