/* sitepins — pixel-pin design/content feedback widget. */

.sitepins-fixed-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483000;
}

.sitepins-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  pointer-events: auto;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.sitepins-toggle:hover {
  background: #333;
}

.sitepins-toggle.sitepins-unavailable::after {
  content: " (comments unavailable)";
  opacity: 0.7;
}

.sitepins-toggle-sub {
  opacity: 0.75;
  text-decoration: underline;
}

body.sitepins-mode-active {
  cursor: crosshair;
}

.sitepins-doc-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2147483000;
}

.sitepins-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  background: #e0524b;
  color: #fff;
  border: none;
  font: 12px/26px -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.sitepins-pin-resolved {
  background: #8a8a8a;
}

.sitepins-popover {
  position: absolute;
  transform: translate(-8px, 8px);
  pointer-events: auto;
  background: #fff;
  color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 12px;
  width: 240px;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  z-index: 2147483001;
}

.sitepins-popover-text {
  margin: 0 0 6px;
  white-space: pre-wrap;
}

.sitepins-popover-meta {
  margin: 0 0 8px;
  font-size: 11px;
  opacity: 0.6;
}

.sitepins-resolve-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sitepins-close {
  float: right;
  border: none;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.sitepins-name-input,
.sitepins-text-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

.sitepins-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sitepins-popover-actions button {
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
  background: #eee;
}

.sitepins-save {
  background: #1a1a1a !important;
  color: #fff;
}
