/* Cookie Consent (Infracom) */
:root { --cc-accent: #1c587d; --cc-bg: #fff; --cc-fg: #1a1a1a; --cc-muted: #555; --cc-border: #d0d5dd; }
#cc-banner, #cc-modal, #cc-reopen { font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 1.5; color: var(--cc-fg); box-sizing: border-box; }
#cc-banner *, #cc-modal *, #cc-reopen * { box-sizing: border-box; }
#cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; background: var(--cc-bg); border-top: 3px solid var(--cc-accent); box-shadow: 0 -4px 20px rgba(0, 0, 0, .18); }
#cc-banner .cc-inner { max-width: 1170px; margin: 0 auto; padding: 16px 20px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
#cc-banner .cc-text { flex: 1 1 460px; }
#cc-banner .cc-text p { margin: 4px 0 0; color: var(--cc-muted); }
#cc-banner a, #cc-modal a { color: var(--cc-accent); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* przyciski "odrzuc" i "akceptuj" maja identyczny wyglad (rowna waga wyboru) */
.cc-btn { cursor: pointer; border: 2px solid var(--cc-accent); background: var(--cc-accent); color: #fff; padding: 9px 18px; font: inherit; font-weight: 600; border-radius: 4px; min-height: 40px; }
.cc-btn:hover { filter: brightness(1.12); }
.cc-btn-link { background: transparent; color: var(--cc-accent); }
.cc-btn:focus-visible, #cc-reopen:focus-visible, .cc-switch input:focus-visible + .cc-slider { outline: 3px solid #ffbf47; outline-offset: 2px; }
#cc-reopen { position: fixed; left: 12px; bottom: 12px; z-index: 99980; background: var(--cc-bg); color: var(--cc-fg); border: 1px solid var(--cc-border); border-radius: 20px; padding: 6px 12px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); display: flex; gap: 6px; align-items: center; font-size: 13px; }
#cc-reopen:hover { border-color: var(--cc-accent); }
#cc-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 12px; }
#cc-modal .cc-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
#cc-modal .cc-box { position: relative; background: var(--cc-bg); max-width: 640px; width: 100%; max-height: 92vh; overflow: auto; border-radius: 6px; padding: 22px 24px; border-top: 4px solid var(--cc-accent); outline: none; }
#cc-modal h2 { margin: 0 0 8px; font-size: 20px; color: var(--cc-fg); }
#cc-modal .cc-lead { color: var(--cc-muted); margin: 0 0 12px; }
#cc-modal .cc-row { border-top: 1px solid var(--cc-border); padding: 12px 0; }
#cc-modal .cc-row p { margin: 6px 0 0; color: var(--cc-muted); font-size: 13px; }
#cc-modal .cc-row code { background: #f2f4f7; padding: 0 4px; border-radius: 3px; font-size: 12px; }
#cc-modal .cc-row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#cc-modal .cc-m-actions { border-top: 1px solid var(--cc-border); padding-top: 14px; justify-content: flex-end; }
#cc-modal .cc-foot { margin: 12px 0 0; font-size: 12px; }
.cc-switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-slider { position: absolute; inset: 0; background: #98a2b3; border-radius: 26px; transition: background .2s; }
.cc-slider:before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.cc-switch input:checked + .cc-slider { background: var(--cc-accent); }
.cc-switch input:checked + .cc-slider:before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { opacity: .6; }
html.cc-lock, html.cc-lock body { overflow: hidden; }
.cc-map-ph { background: #f2f4f7; border: 1px dashed var(--cc-border); padding: 40px 20px; text-align: center; min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--cc-fg); font-family: 'Open Sans', Arial, sans-serif; }
.cc-map-ph p { margin: 0; }
@media (max-width: 600px) {
    #cc-banner .cc-actions .cc-btn { flex: 1 1 100%; }
    #cc-modal .cc-m-actions .cc-btn { flex: 1 1 100%; }
    #cc-reopen .cc-reopen-txt { display: none; }
    #cc-reopen { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .cc-slider, .cc-slider:before { transition: none; } }
