/* Banner zgod na cookies + panel ustawien (js/consent.js). Kolory jak dotychczasowy baner DC Cookies. */
#sc-consent[hidden], #sc-panel[hidden] { display: none; }

#sc-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998;
  background: #24282E; color: #D5D7DA; font: 12px/1.4 Montserrat, Arial, sans-serif;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .35);
}
#sc-consent .sc-inner { max-width: 1100px; margin: 0 auto; padding: 8px 16px; max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#sc-consent #sc-consent-text { min-width: 0; }
#sc-consent h2 { margin: 0; padding: 0; font-size: 13px !important; line-height: 1.3 !important; color: #fff !important; font-weight: 600; text-transform: none; letter-spacing: 0; }
#sc-consent p { margin: 0 0 3px !important; padding: 0 !important; font-size: 11px !important; line-height: 1.4 !important; color: #D5D7DA !important; letter-spacing: 0 !important; }
#sc-consent a, #sc-panel a { color: #fff !important; text-decoration: underline; display: inline; font-size: inherit !important; line-height: inherit !important; letter-spacing: 0 !important; font-weight: 600; }
#sc-consent .sc-buttons { margin-top: 4px; }

.sc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sc-btn {
  cursor: pointer; border: 2px solid #D7192E; background: #D7192E; color: #fff;
  padding: 6px 12px; font: 600 12px/1.2 Montserrat, Arial, sans-serif; border-radius: 4px;
}
#sc-panel .sc-btn { padding: 10px 18px; font-size: 14px; }
.sc-btn:hover { background: #C8102E; border-color: #C8102E; }
/* "Odrzucam" ma ten sam rozmiar i wage co "Akceptuje" - rowna latwosc odmowy */
.sc-btn[data-sc="reject"] { background: #fff; color: #24282E; border-color: #fff; }
.sc-btn[data-sc="reject"]:hover { background: #E8E8E8; border-color: #E8E8E8; }
.sc-btn-link { background: transparent; border-color: #8A8F98; color: #fff; }
.sc-btn-link:hover { background: #3A3F47; border-color: #8A8F98; }
.sc-btn:focus-visible, .sc-switch input:focus-visible + .sc-slider, #sc-consent a:focus-visible, #sc-panel a:focus-visible, a[data-cookie-settings]:focus-visible {
  outline: 3px solid #FFC83D; outline-offset: 2px;
}

#sc-panel {
  position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  font: 14px/1.5 Montserrat, Arial, sans-serif;
}
#sc-panel .sc-box {
  background: #24282E; color: #D5D7DA; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 22px; border-radius: 6px; outline: none;
}
#sc-panel h2 { margin: 0 0 12px; font-size: 18px !important; color: #fff !important; }
#sc-panel .sc-cat { border-top: 1px solid #3A3F47; padding: 12px 0; }
#sc-panel p { color: #D5D7DA !important; font-size: 13px !important; line-height: 1.5 !important; }
#sc-panel .sc-cat p { margin: 6px 0 0; }
#sc-panel .sc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; }
#sc-panel .sc-small { font-size: 12px; margin: 10px 0 0; }
html.sc-lock { overflow: hidden; }

.sc-switch { position: relative; flex: none; width: 46px; height: 26px; }
.sc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sc-switch input:disabled { cursor: not-allowed; }
.sc-slider { position: absolute; inset: 0; background: #5B616B; border-radius: 26px; transition: background .15s; }
.sc-slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sc-switch input:checked + .sc-slider { background: #D7192E; }
.sc-switch input:checked + .sc-slider::before { transform: translateX(20px); }
.sc-switch input:disabled + .sc-slider { opacity: .6; }

.sc-footer-link { text-align: center; margin: 8px 0; }

@media (max-width: 600px) {
  .sc-btn { flex: 1 1 100%; }
}
