/* The editor keeps Hardtech's existing palette and leaves the scene visible. */
#product-gallery #product-actions,
#product-gallery #orbit-controls {
  transform: none;
}
#product-gallery button[data-product-action] {
  white-space: nowrap;
}
.editing-buttons #product-gallery {
  opacity: 0.35;
}
.button-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  color: #eef8f0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.button-editor-overlay::backdrop {
  background: #0002;
  backdrop-filter: none;
}
.button-editor-overlay[hidden],
#capture-error[hidden] {
  display: none;
}
.button-editor-panel,
#capture-error {
  position: fixed;
  right: 16px;
  top: 90px;
  width: min(350px, calc(100vw - 32px));
  max-height: calc(100dvh - 110px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #76eb9b88;
  border-radius: 8px;
  background: #0c1810f5;
  color: #eef8f0;
  box-sizing: border-box;
  font:
    16px/1.4 Arial,
    sans-serif;
}
.button-editor-panel h2 {
  margin: 0 0 4px;
  min-height: 44px;
  padding-left: 42px;
  display: flex;
  align-items: center;
  font-size: 19px;
  font-weight: 500;
}
.button-editor-panel label {
  display: block;
  margin: 8px 0;
}
.button-editor-panel {
  top: 16px;
  padding: 12px;
  font-size: 14px;
  z-index: 2;
}
.button-editor-panel label:first-of-type {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 8px;
}
.button-editor-panel > .floating-handle {
  opacity: 1;
  width: 44px;
  height: 44px;
}
.button-editor-panel > .floating-grip {
  display: none;
}
.button-editor-panel select {
  display: block;
  width: 100%;
}
.button-editor-panel input {
  width: 100%;
  height: 36px;
  accent-color: #76eb9b;
}
.button-editor-panel p {
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.35;
  color: #a7baad;
}
.button-editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 6px;
}
.button-editor-panel .button-editor-actions button {
  padding: 6px;
  font-size: 13px;
}
.button-editor-panel button,
.button-editor-panel select,
#capture-error button {
  min-height: 44px;
  border: 1px solid #8bb29a66;
  border-radius: 4px;
  padding: 8px 12px;
  background: #10271b;
  color: #eef8f0;
  font: inherit;
  cursor: pointer;
}
.button-editor-actions [data-editor-action='done'] {
  background: #245d36;
}
.button-editor-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  border: 2px solid #76eb9b;
  border-radius: 4px;
  background: #10271b;
  color: #eef8f0;
  touch-action: none;
  cursor: move;
  user-select: none;
}
.button-editor-move,
.button-editor-grip {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #76eb9b;
  background: #245d36;
  color: #eef8f0;
  font-size: 22px;
  cursor: move;
  touch-action: none;
}
.button-editor-move {
  top: -34px;
  left: -12px;
}
.button-editor-grip {
  right: -12px;
  bottom: auto;
  cursor: nwse-resize;
}
.button-editor-overlay :focus-visible,
#capture-error button:focus-visible {
  outline: 2px solid #eef8f0;
  outline-offset: 3px;
}
.button-editor-message {
  min-height: 1.4em;
}
.button-editor-message:empty {
  display: none;
}
#capture-error {
  z-index: 25;
  top: auto;
  bottom: 24px;
}
.editing-buttons #capture-error {
  visibility: hidden;
}
