html.wpsh-popup-open,
html.wpsh-popup-open body { overflow: hidden; }

.wpsh-popup-backdrop[hidden] { display: none !important; }
.wpsh-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.55);
}
.wpsh-popup {
  position: relative;
  width: min(460px, 100%);
  box-sizing: border-box;
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  color: #222;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  text-align: center;
}
.wpsh-popup h2 { margin: 8px 0 10px; color: inherit; font-size: 24px; line-height: 1.25; }
.wpsh-popup p { margin: 0 0 22px; color: inherit; line-height: 1.55; }
.wpsh-popup-icon { font-size: 40px; line-height: 1; }
.wpsh-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.wpsh-popup-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wpsh-popup-primary,
.wpsh-popup-secondary {
  border-radius: 7px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
}
.wpsh-popup-primary { border: 1px solid #1d4ed8; background: #1d4ed8; color: #fff; }
.wpsh-popup-secondary { border: 1px solid #bbb; background: #fff; color: #222; }
.wpsh-popup-primary:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) {
  .wpsh-popup { padding: 26px 18px 20px; }
  .wpsh-popup-actions { flex-direction: column; }
  .wpsh-popup-primary, .wpsh-popup-secondary { width: 100%; }
}

/* Kompakte Glocke fuer Header / Social-Media-Leiste */
.wpsh-push-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: currentColor;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  appearance: none;
}
.wpsh-push-icon:hover,
.wpsh-push-icon:focus-visible { background: rgba(0,0,0,.055); }
.wpsh-push-icon:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.wpsh-bell { position: relative; display: inline-flex; width: 25px; height: 25px; }
.wpsh-bell svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wpsh-bell-dot { display: none; position: absolute; top: -1px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px #fff; }
.wpsh-push-icon.is-active .wpsh-bell-dot { display: block; }
.wpsh-icon-tooltip {
  position: absolute;
  z-index: 1000000;
  right: 0;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: 230px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.wpsh-icon-tooltip::after { content: ''; position: absolute; right: 14px; top: 100%; border: 5px solid transparent; border-top-color: #222; }
.wpsh-push-icon:hover .wpsh-icon-tooltip,
.wpsh-push-icon:focus-visible .wpsh-icon-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }

/* v0.5: Glocke mit erklärendem Status-Menü */
.wpsh-push-widget {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  overflow: visible !important;
}
.wpsh-push-widget .wpsh-push-icon { z-index: 2; }
.wpsh-push-widget .wpsh-bell-dot {
  display: none;
  position: absolute;
  top: -1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px #fff;
}
.wpsh-push-widget.is-active .wpsh-bell-dot { display: block; }
.wpsh-bell-slash { display:none; position:absolute; left:1px; top:11px; width:27px; height:2px; background:currentColor; transform:rotate(-45deg); transform-origin:center; border-radius:2px; }
.wpsh-push-widget.is-blocked .wpsh-bell-slash { display:block; }

.wpsh-push-panel {
  position: fixed;
  z-index: 2147483000;
  top: 0;
  left: 0;
  right: auto;
  width: 310px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  border: 1px solid rgba(0,0,0,.13);
  border-radius: 9px;
  background: #fff;
  color: #222;
  box-shadow: 0 14px 40px rgba(0,0,0,.20);
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.wpsh-push-panel::before {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 100%;
  border: 8px solid transparent;
  border-bottom-color: #fff;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.12));
}
.wpsh-push-widget:hover .wpsh-push-panel,
.wpsh-push-widget:focus-within .wpsh-push-panel,
.wpsh-push-widget.is-panel-open .wpsh-push-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.wpsh-panel-title { display:block; margin:0 0 5px; font-size:15px; line-height:1.25; color:inherit; }
.wpsh-panel-status { margin:0 0 9px; font-weight:700; }
.wpsh-push-widget.is-active .wpsh-panel-status::before { content:'✓ '; }
.wpsh-push-widget.is-blocked .wpsh-panel-status::before { content:'× '; }
.wpsh-panel-text { margin:0 0 13px !important; color:#444 !important; font-size:13px; line-height:1.45; }
.wpsh-panel-actions { display:flex; gap:8px; }
.wpsh-panel-button {
  border:1px solid #222;
  border-radius:5px;
  background:#222;
  color:#fff;
  padding:8px 12px;
  font:inherit;
  line-height:1.2;
  cursor:pointer;
}
.wpsh-panel-disable { background:#fff; color:#222; }
.wpsh-panel-button:hover { opacity:.82; }
.wpsh-panel-help { margin:12px 0 0 !important; padding-top:10px; border-top:1px solid #e5e5e5; color:#555 !important; font-size:12px; line-height:1.4; }
.wpsh-push-widget[data-push-state="working"] .wpsh-panel-button { opacity:.55; pointer-events:none; }
@media (max-width: 560px) {
  .wpsh-push-panel { max-width: calc(100vw - 24px); }
}
