.polanger-shield-hidden-element {
  display: none !important;
}

.polanger-shield-note-marker {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000020;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(234, 88, 12, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: polangerShieldNotePulse 1.8s infinite;
}

.polanger-shield-note-marker:hover,
.polanger-shield-note-marker:focus-visible {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 18px 36px rgba(234, 88, 12, 0.34),
    0 0 0 3px rgba(255, 255, 255, 0.94);
}

.polanger-shield-note-marker:focus-visible {
  outline: 0;
}

.polanger-shield-note-marker .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.polanger-shield-note-marker::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.polanger-shield-note-popover {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, calc(100vw - 24px));
  z-index: 1000021;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  overflow: hidden;
}

.polanger-shield-note-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.polanger-shield-note-popover__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(255, 247, 237, 0.9);
}

.polanger-shield-note-popover__badge {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  flex: 0 0 auto;
}

.polanger-shield-note-popover__badge .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.polanger-shield-note-popover__title {
  display: block;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.polanger-shield-note-popover__hint {
  display: block;
  margin-top: 2px;
  color: #9a3412;
  font-size: 11px;
  line-height: 1.4;
}

.polanger-shield-note-popover__body {
  padding: 14px;
  color: #111827;
  font-size: 13px;
  line-height: 1.65;
}

.polanger-shield-note-popover__body > :first-child {
  margin-top: 0;
}

.polanger-shield-note-popover__body > :last-child {
  margin-bottom: 0;
}

@keyframes polangerShieldNotePulse {
  0% {
    box-shadow:
      0 14px 30px rgba(234, 88, 12, 0.28),
      0 0 0 0 rgba(245, 158, 11, 0.28),
      0 0 0 3px rgba(255, 255, 255, 0.9);
  }

  70% {
    box-shadow:
      0 14px 30px rgba(234, 88, 12, 0.28),
      0 0 0 10px rgba(245, 158, 11, 0),
      0 0 0 3px rgba(255, 255, 255, 0.9);
  }

  100% {
    box-shadow:
      0 14px 30px rgba(234, 88, 12, 0.28),
      0 0 0 0 rgba(245, 158, 11, 0),
      0 0 0 3px rgba(255, 255, 255, 0.9);
  }
}

.polanger-shield-context-menu {
  position: fixed;
  z-index: 1000022;
  min-width: 190px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  padding: 8px;
  display: grid;
  gap: 4px;
  backdrop-filter: blur(10px);
}

.polanger-shield-context-menu button,
.polanger-shield-context-menu a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 9px 10px;
  text-decoration: none;
  color: #1d2327;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.polanger-shield-context-menu button:hover,
.polanger-shield-context-menu button:focus-visible,
.polanger-shield-context-menu a:hover,
.polanger-shield-context-menu a:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
  outline: 0;
}

@media (max-width: 782px) {
  .polanger-shield-note-popover {
    width: min(280px, calc(100vw - 16px));
  }
}
