/* CSS-01: warstwy w zmiennych (koniec magicznych liczb). Wartosci wysokie
   celowo: widgety musza wyjsc ponad pasek WP (99999) i naglowki motywow;
   banery CMP (zwykle 999999) zostaja na wierzchu — zgoda najpierw. */
:root{--wmc-z-widget:99999;--wmc-z-toast:100000}
/* BUG-CSS-01: izolacja od agresywnych motywow (p margin 2rem, button uppercase
   itd.). all:initial + jawne font-family:inherit (czcionka motywu zostaje,
   smieci nie przechodza); reset * tylko box/marginesy — wlasne reguly
   (pille, przyciski) maja wyzsza specyficznosc i wygrywaja. */
.wmc-push-banner,.wmc-push-drawer,.wmc-push-bell{all:initial;display:block;font-family:inherit}
.wmc-push-banner *,.wmc-push-drawer *{box-sizing:border-box;margin:0;padding:0}
.wmc-push-bell{position:fixed;width:52px;height:52px;border:0;background:transparent;color:var(--wmc-banner-ink,#111);font-size:24px;cursor:pointer;z-index:var(--wmc-z-widget);display:flex;align-items:center;justify-content:center;padding:0}
.wmc-push-bell[hidden]{display:none}
.wmc-push-banner[hidden]{display:none}
.wmc-push-bell:focus-visible{outline:2px solid #2271b1;outline-offset:2px}
.wmc-push-bell svg{display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
/* Pozycja dzwonka (4 rogi). */
.wmc-push-bell.pos-br{right:18px;bottom:18px}
.wmc-push-bell.pos-bl{left:18px;bottom:18px}
.wmc-push-bell.pos-tr{right:18px;top:18px}
.wmc-push-bell.pos-tl{left:18px;top:18px}
/* Wariant wypelniony (kolo) — dla chetnych. */
.wmc-push-bell.style-filled{background:var(--wmc-banner-accent,#111);color:#fff;border-radius:50%;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.wmc-push-bell.style-filled svg{filter:none}
.wmc-push-banner{position:fixed;top:12px;left:50%;transform:translateX(-50%);width:calc(100% - 24px);max-width:520px;margin:0;background:var(--wmc-banner-bg,#fff);border:1px solid #ddd;border-radius:12px;padding:14px 16px;z-index:var(--wmc-z-widget);box-shadow:0 8px 30px rgba(0,0,0,.18);color:var(--wmc-banner-ink,#222);font-family:inherit;animation:wmc-push-slide-down .45s ease-out;contain:layout;will-change:transform,opacity}
@keyframes wmc-push-slide-down{from{transform:translate(-50%,-130%);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@media (prefers-reduced-motion:reduce){.wmc-push-banner{animation:none}}
.wmc-push-banner p{margin:0 0 8px;font-size:14px;line-height:1.5}
.wmc-push-topics{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;padding:0;border:0}
/* Wlasne pille zamiast natywnych checkboxow (odporne na style motywu). */
.wmc-push-pill{position:relative;display:inline-block;margin:0}
.wmc-push-pill input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer;-webkit-appearance:none;appearance:none}
.wmc-push-pill span{display:inline-block;padding:6px 14px;border:1px solid #bbb;border-radius:999px;font-size:13px;line-height:1.4;cursor:pointer;background:#f4f4f4;color:#222;user-select:none}
.wmc-push-pill input:checked + span{background:var(--wmc-banner-accent,#111);color:#fff;border-color:var(--wmc-banner-accent,#111)}
.wmc-push-pill input:focus-visible + span{outline:2px solid #2271b1;outline-offset:2px}
.wmc-push-btn{background:var(--wmc-banner-accent,#111);color:#fff;border:0;border-radius:8px;padding:8px 14px;cursor:pointer;font-size:14px}
.wmc-push-btn-ghost{background:transparent;border:0;color:#555;cursor:pointer;margin-left:8px;font-size:14px}
.wmc-push-msg{font-size:13px;color:#b3261e;min-height:1.2em;margin:8px 0 0}
/* Toast bledow gdy baner ukryty (sam dzwonek na mobile). */
#wmc-push-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);max-width:min(92vw,480px);background:#111;color:#fff;font-size:13.5px;line-height:1.5;border-radius:12px;padding:12px 16px;z-index:var(--wmc-z-toast);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.wmc-push-preview{border:1px solid #ddd;border-radius:12px;padding:12px;max-width:360px;background:#f9f9f9}
/* T9: szuflada "Twoje powiadomienia" — panel boczny, na waskim bottom-sheet. */
.wmc-push-drawer{position:fixed;top:50%;right:18px;transform:translateY(-50%);width:min(92vw,340px);max-height:86vh;overflow-y:auto;margin:0;background:var(--wmc-banner-bg,#fff);border:1px solid #ddd;border-radius:12px;padding:16px 18px;z-index:var(--wmc-z-widget);box-shadow:0 8px 30px rgba(0,0,0,.18);color:var(--wmc-banner-ink,#222);font-family:inherit;contain:layout}
.wmc-push-drawer[hidden]{display:none}
.wmc-push-drawer h2{margin:0 0 4px;font-size:16px}
.wmc-push-drawer .description{font-size:13px;color:#555;margin:0 0 8px}
.wmc-push-drawer .wmc-push-topics{margin:10px 0}
.wmc-push-drawer .wmc-push-pill span{padding:10px 16px;font-size:14px}
.wmc-push-drawer .wmc-push-btn,.wmc-push-drawer .wmc-push-btn-ghost{min-height:44px;font-size:15px}
.wmc-push-drawer .wmc-push-btn:focus-visible,.wmc-push-drawer .wmc-push-btn-ghost:focus-visible,.wmc-push-drawer .wmc-push-btn-link:focus-visible{outline:2px solid #2271b1;outline-offset:2px}
.wmc-push-drawer #wmc-push-unsubscribe{font-size:14px}
/* A11Y-03: wypis to akcja (button), nie nawigacja (link) — wyglad linku zostaje. */
.wmc-push-btn-link{background:none;border:0;padding:0;color:#2271b1;text-decoration:underline;cursor:pointer;font:inherit}
.wmc-push-btn-link:hover{color:#135e96}
@media (max-width:480px){
  .wmc-push-drawer{top:auto;bottom:0;right:0;left:0;width:auto;transform:none;border-radius:16px 16px 0 0;max-height:80vh}
}
@media (prefers-reduced-motion:reduce){.wmc-push-drawer{scroll-behavior:auto}}
/* T11: przycisk shortcode [wmc_push_button] — dwa style, stany, spinner. */
.wmc-push-shortcode-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:10px;font-size:15px;cursor:pointer;font-family:inherit;contain:layout}
.wmc-push-shortcode-btn.style-filled{background:var(--wmc-banner-accent,#111);color:#fff;border:0}
.wmc-push-shortcode-btn.style-outline{background:transparent;color:var(--wmc-banner-accent,#111);border:2px solid var(--wmc-banner-accent,#111)}
.wmc-push-shortcode-btn:focus-visible{outline:2px solid #2271b1;outline-offset:2px}
.wmc-push-shortcode-btn[disabled]{cursor:wait;opacity:.65}
.wmc-push-shortcode-btn[aria-busy="true"] span::after{content:"..."}
@media (prefers-reduced-motion:reduce){.wmc-push-shortcode-btn{scroll-behavior:auto}}
