/* InstaBooster PWA – elementy na stronie (okno instalacji, pasek w trybie aplikacji) */
.ib-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Na czas karty/arkusza pływające przyciski (czat, popupy) nie zasłaniają przycisków ani paska Safari */
html.ib-sheet-open .ham-chatbot-floating,
html.ib-sheet-open .elementor-location-popup ~ .dialog-close-button,
html.ib-sheet-open [class*="chat-widget"],
html.ib-sheet-open .back-to-top,
html.ib-sheet-open #scroll-top { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

.ib-offer, .ib-sheet, .ib-tabs { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.ib-btn { min-height: 48px; padding: 0 18px; border-radius: 999px; font: 800 15px/1 'Manrope', system-ui, sans-serif; cursor: pointer; letter-spacing: 0; text-transform: none; }
.ib-pri { background: #ffb020; color: #0a1530; border: 0; box-shadow: 0 6px 18px rgba(255, 176, 32, .35); }
.ib-out { background: transparent; color: #f5f7ff; border: 1.5px solid #2d3d6b; font-weight: 700; }

/* karta na dole strony */
.ib-offer { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 2147483500; animation: ib-up .3s ease-out; }
.ib-offer-in { position: relative; max-width: 560px; margin: 0 auto; background: #0f1d40; color: #f5f7ff; border: 1px solid #22336a; border-radius: 22px; padding: 16px; box-shadow: 0 14px 44px rgba(3, 8, 24, .55); display: flex; gap: 14px; align-items: flex-start; overflow: hidden; }
.ib-offer-in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.ib-offer-i { width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; }
.ib-offer-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ib-offer-b b { font: 800 16px/1.3 'Sora', 'Manrope', system-ui, sans-serif; color: #fff; }
.ib-offer-b span { font-size: 14px; line-height: 1.45; color: #aeb9d6; }
.ib-offer-a { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.ib-offer-a .ib-btn { flex: 1; max-width: 170px; }
/* w aplikacji /app/: nad dolnym paskiem */
.ib-offer.ib-above { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
/* komputer: mała karta w prawym dolnym rogu */
.ib-offer.ib-desk { left: auto; right: 24px; bottom: 24px; width: 400px; }

/* arkusz z instrukcją */
.ib-sheet { position: fixed; inset: 0; z-index: 2147483600; background: rgba(3, 8, 24, .6); display: flex; align-items: flex-end; justify-content: center; animation: ib-fade .2s ease-out; }
.ib-sheet-in { position: relative; width: 100%; max-width: 600px; background: #0f1d40; color: #f5f7ff; border-radius: 26px 26px 0 0; padding: 30px 22px calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: stretch; animation: ib-up .28s ease-out; box-shadow: 0 -10px 40px rgba(3, 8, 24, .5); box-sizing: border-box; }
.ib-sheet.ib-desk { align-items: center; }
.ib-sheet.ib-desk .ib-sheet-in { max-width: 460px; border-radius: 24px; padding-bottom: 26px; }
.ib-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: #1b2b5a; color: #f5f7ff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ib-bigicon { align-self: center; width: 80px; height: 80px; border-radius: 20px; background: #0a1530; border: 1px solid #22336a; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ib-bigicon img { width: 80px; height: 80px; }
.ib-sheet-in h2 { margin: 18px 30px 18px; text-align: center; font: 800 21px/1.3 'Sora', 'Manrope', system-ui, sans-serif; color: #fff; }
.ib-rows { list-style: none; margin: 0; padding: 0; }
.ib-rows li { display: flex; align-items: center; gap: 16px; padding: 14px 0; margin: 0; border-top: 1px solid #22336a; font-size: 16px; line-height: 1.45; color: #e3e8f7; }
.ib-rows li::before { content: none; }
.ib-rows li:first-child { border-top: 0; }
.ib-rows b { color: #fff; font-weight: 800; }
.ib-tile { width: 46px; height: 46px; border-radius: 14px; background: #1b2b5a; color: #ffb020; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.ib-tile img { width: 30px; height: 30px; border-radius: 7px; }
.ib-tile .ib-dots { font-size: 22px; color: #ffb020; }
.ib-tx { flex: 1; }
.ib-note { margin: 14px 0 18px; font-size: 14px; line-height: 1.5; color: #aeb9d6; }
.ib-acts { display: flex; flex-direction: column; gap: 10px; }
.ib-acts .ib-btn, a.ib-btn { width: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none !important; box-sizing: border-box; }
a.ib-pri, a.ib-pri:hover { color: #0a1530 !important; }
a.ib-out, a.ib-out:hover { color: #f5f7ff !important; }
/* strzałka wskazująca przycisk Safari: środek (Udostępnij, iOS ≤18) lub prawy róg (⋯, iOS 26) */
.ib-arrow { position: absolute; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 16px solid #ffb020; animation: ib-bob 1.2s ease-in-out infinite; }
.ib-arrow-c { left: 50%; margin-left: -14px; }
.ib-arrow-r { right: 22px; }

@keyframes ib-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ib-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ib-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ib-offer, .ib-sheet, .ib-sheet-in, .ib-arrow { animation: none; } }

/* ---------- Tryb aplikacji (strony otwarte z ikony): dolny pasek ---------- */
html.ib-standalone body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
.ib-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483400; background: #0f1d40; border-top: 1px solid #22336a; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ib-tab { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-height: 52px; font-size: 11px; font-weight: 700; line-height: 1.2; color: #aeb9d6 !important; text-decoration: none !important; }
.ib-tab.ib-c { color: #fff !important; }
.ib-mid { width: 54px; height: 54px; margin-top: -28px; border-radius: 27px; background: #ffb020; color: #0a1530; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px #0a1530; }
@media (min-width: 900px) { html.ib-standalone body { padding-bottom: 0 !important; } .ib-tabs { display: none; } }
