// Visual element picker overlay. Only ever loaded on the special
// ai1wpsa_picker request handled in Enqueue::frontend_scripts() - never
// shipped to a normal page load. Max z-index so it always wins against the
// host site's own stacking contexts.

#ai1wpsa-picker-highlight {
  position: fixed;
  z-index: 2147483647;
  pointer-events: none;
  display: none;
  background: rgba(0, 75, 203, 0.15);
  outline: 2px solid #004bcb;
  outline-offset: -1px;
  border-radius: 2px;
  transition: outline-color 0.15s ease-in-out;
  box-sizing: border-box;
}

#ai1wpsa-picker-tooltip {
  position: fixed;
  z-index: 2147483647;
  pointer-events: none;
  display: none;
  max-width: 80vw;
  padding: 3px 8px;
  background: #1e1e1e;
  color: #fff;
  font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ai1wpsa-picker-toolbar {
  position: fixed;
  z-index: 2147483647;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1e1e1e;
  color: #fff;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);

  #ai1wpsa-picker-hint {
    opacity: 0.85;
  }

  button {
    font: inherit;
    color: #fff;
    background: #004bcb;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;

    &:hover {
      opacity: 0.9;
    }

    &#ai1wpsa-picker-cancel {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.3);
    }
  }
}
