.cms-site-tools { position: fixed; right: 7px; bottom: var(--cms-site-tools-bottom,60px); z-index: 8; display: flex; flex-direction: column; gap: 6px; align-items: center;}
.cms-site-tool { position: relative; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 1px solid rgba(0,0,0,.08); border-radius: 50%; background: #e4e7ea; color: #4f5963; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.14); transition: transform .18s ease, opacity .35s ease, background-color .18s ease, color .18s ease;}
.cms-site-tool:hover, .cms-site-tool:focus-visible { transform: scale(1.06); background: #f2f3f4; color: #303840;}
.cms-site-tool:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #1f4e79, 0 2px 8px rgba(0,0,0,.14);}
.cms-site-tool--push.is-active { background: #dcefe2; color: #247044; border-color: #b8ddc4;}
.cms-site-tool--push.is-blocked { background: #e4e7ea; color: #6d7278;}
.cms-site-tool[disabled] { opacity: .55; cursor: not-allowed; transform: none;}
.cms-site-tool.hide { opacity: 0; pointer-events: none; transform: scale(.82);}
.cms-site-tool::after { content: attr(data-tooltip); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(5px); width: max-content; max-width: min(330px,calc(100vw - 110px)); padding: 9px 11px; border-radius: 5px; background: #222; color: #fff; font-size: 13px; font-weight: 400; line-height: 1.35; text-align: left; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; box-shadow: 0 3px 14px rgba(0,0,0,.25); transition: opacity .15s ease, transform .15s ease, visibility .15s ease;}
.cms-site-tool:hover::after, .cms-site-tool:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);}
.cms-pwa-dialog[hidden], .cms-site-tool[hidden] { display: none !important;}
.cms-pwa-dialog { position: fixed; inset: 0; z-index: 10020; display: flex; align-items: center; justify-content: center; padding: 20px;}
.cms-pwa-dialog__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55);}
.cms-pwa-dialog__window { position: relative; width: min(540px,100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border-radius: 8px; background: #fff; color: #222; box-shadow: 0 18px 55px rgba(0,0,0,.35); text-align: left;}
.cms-pwa-dialog__close { position: absolute; top: 9px; right: 9px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #555; font-size: 20px; cursor: pointer;}
.cms-pwa-dialog__title { margin: 0 38px 12px 0; font-size: 1.35rem; line-height: 1.25; color: inherit;}
.cms-pwa-dialog__text { margin: 0; line-height: 1.55; color: inherit; white-space: pre-line;}
.cms-pwa-dialog__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px;}
.cms-pwa-dialog__button { min-width: 130px; padding: 9px 15px; border: 1px solid #777; border-radius: 5px; background: #fff; color: #222; font: inherit; cursor: pointer;}
.cms-pwa-dialog__button--primary { border-color: #276c3f; background: #276c3f; color: #fff;}
.cms-pwa-dialog__close:focus-visible, .cms-pwa-dialog__button:focus-visible { outline: 3px solid #1f4e79; outline-offset: 2px;}
.cms-pwa-dialog__button[hidden] { display: none !important;}
.cms-pwa-dialog__button:disabled { opacity: .55; cursor: wait;}
body.cms-pwa-dialog-open { overflow: hidden;}
/* Jedna prawa kolumna: PWA i PUSH NAD ikonami social media.
   Wysokosc aktywnych ikon social wyznacza main.js (bez zgadywania ich liczby). */
@media (min-width:768px) and (max-width:1400px) {
.cms-site-tools { right: 9px; bottom: calc(64px + var(--cms-floating-social-height, 0px) + 8px); gap: 5px; }
.cms-site-tool { width: 38px; height: 38px; font-size: 18px; }
}
@media (min-width:768px) and (max-width:1400px) and (max-height:690px) {
.cms-site-tools { right: 56px; }
}
@media (min-width:1401px) {
.cms-site-tools { bottom: calc(60px + var(--cms-floating-social-height, 0px) + 8px); }
}
@media (max-width:767px) {
.cms-site-tools { right: 13px; bottom: 70px; gap: 6px;}
.cms-site-tool { width: 40px; height: 40px; font-size: 19px; box-shadow: 0 2px 6px rgba(0,0,0,.16);}
.cms-site-tool::after { display: none;}
.cms-pwa-dialog { padding: 14px;}
.cms-pwa-dialog__window { max-height: calc(100dvh - 28px); padding: 24px 20px;}
.cms-pwa-dialog__actions { flex-direction: column;}
.cms-pwa-dialog__button { width: 100%;}
}
@media (prefers-reduced-motion:reduce) {
.cms-site-tool, .cms-site-tool::after { transition: none;}
}
 