/* Noolabs Consent Banner — GCM v2 */
:root {
  --ncb-accent: #2e4cf4;
  --ncb-bg:     #ffffff;
  --ncb-text:   #111827;
  --ncb-muted:  #6b7280;
  --ncb-border: rgba(17,24,39,.12);
  --ncb-shadow: 0 8px 40px rgba(0,0,0,.18);
}

#noolabs-consent-root {
  all: initial;
  position: fixed;
  inset: 0;
  z-index: 999990;
  pointer-events: none;
}
#noolabs-consent-root * {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
#noolabs-consent-root.ncb-hidden {
  display: none;
}

/* ==== BANER ==== */
.ncb-banner {
  pointer-events: all;
  position: fixed;
  bottom: 16px;
  left: 12px; right: 12px;
  max-width: 740px;
  margin: 0 auto;
  background: var(--ncb-bg);
  color: var(--ncb-text);
  border: 1px solid var(--ncb-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--ncb-shadow);
  z-index: 999991;
}

.ncb-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--ncb-text);
}

.ncb-msg {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ncb-text);
  margin: 0;
}

.ncb-link {
  color: var(--ncb-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.ncb-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ==== PRZYCISKI ==== */
.ncb-btn {
  appearance: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  min-height: 44px;
  border: 1.5px solid var(--ncb-border);
  transition: opacity .15s, transform .1s;
  user-select: none;
}
.ncb-btn:active { transform: scale(.97); }
.ncb-btn:focus-visible {
  outline: 3px solid var(--ncb-accent);
  outline-offset: 2px;
}

.ncb-btn-primary {
  background: var(--ncb-accent);
  color: #fff;
  border-color: transparent;
  margin-left: auto;
}
.ncb-btn-ghost {
  background: transparent;
  color: var(--ncb-text);
}
.ncb-btn-muted {
  background: #f3f4f6;
  color: var(--ncb-text);
}

/* ==== FAB ==== */
.ncb-fab {
  position: fixed;
  left: 16px; bottom: 14px;
  z-index: 999990;
  background: var(--ncb-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--ncb-shadow);
  min-height: 44px;
  pointer-events: all;
}
.ncb-fab:focus-visible {
  outline: 3px solid var(--ncb-accent);
  outline-offset: 2px;
}

/* ==== BACKDROP ==== */
.ncb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: all;
}

/* ==== MODAL ==== */
.ncb-modal {
  width: 100%;
  max-width: 740px;
  background: var(--ncb-bg);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--ncb-border);
  box-shadow: var(--ncb-shadow);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.ncb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ncb-border);
  position: sticky;
  top: 0;
  background: var(--ncb-bg);
  z-index: 1;
  flex-shrink: 0;
}

.ncb-modal-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--ncb-accent);
}

.ncb-close {
  appearance: none;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  width: 34px; height: 34px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ncb-text);
  display: flex; align-items: center; justify-content: center;
}
.ncb-close:focus-visible {
  outline: 3px solid var(--ncb-accent);
  outline-offset: 2px;
}

.ncb-modal-body {
  padding: 14px 14px 0 14px;
  flex: 1;
}

/* ==== SEKCJE ==== */
.ncb-section {
  border: 1px solid var(--ncb-border);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
}

.ncb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  cursor: pointer;
  gap: 10px;
  user-select: none;
}

.ncb-section-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ncb-chevron {
  font-size: 18px;
  color: var(--ncb-muted);
  transition: transform .2s;
  flex-shrink: 0;
  line-height: 1;
}
.ncb-section.open .ncb-chevron {
  transform: rotate(90deg);
}

.ncb-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ncb-text);
}

.ncb-section-body {
  display: none;
  padding: 0 14px 14px 14px;
}
.ncb-section.open .ncb-section-body {
  display: block;
}

.ncb-section-desc {
  font-size: 13px;
  color: var(--ncb-muted);
  line-height: 1.5;
  margin: 0 0 10px 0;
}

/* ==== TOGGLE ==== */
.ncb-switch {
  position: relative;
  width: 48px; height: 28px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1.5px solid var(--ncb-border);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  transition: background .18s;
}
.ncb-switch:focus-visible {
  outline: 3px solid var(--ncb-accent);
  outline-offset: 2px;
}
.ncb-switch::before {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .18s;
  z-index: 2;
}
.ncb-sw-x {
  font-size: 9px;
  font-weight: 800;
  color: var(--ncb-muted);
  position: relative;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}
.ncb-switch.on,
.ncb-switch[aria-checked="true"] {
  background: var(--ncb-accent);
  border-color: transparent;
  justify-content: flex-start;
  padding-left: 5px; padding-right: 0;
}
.ncb-switch.on::before,
.ncb-switch[aria-checked="true"]::before {
  transform: translateX(20px);
}
.ncb-switch[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
}

/* ==== TABELA ==== */
.ncb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ncb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ncb-table th {
  text-align: left;
  font-weight: 700;
  padding: 6px 8px 6px 0;
  color: var(--ncb-text);
  border-bottom: 1px solid var(--ncb-border);
}
.ncb-table td {
  padding: 5px 8px 5px 0;
  color: var(--ncb-muted);
  vertical-align: top;
  line-height: 1.35;
}
.ncb-table td:last-child { color: var(--ncb-text); }

/* ==== STOPKA MODALA ==== */
.ncb-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 14px 20px 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--ncb-bg);
  border-top: 1px solid var(--ncb-border);
  margin-top: 8px;
}
.ncb-modal-footer .ncb-btn { flex: 1 1 auto; margin-left: 0; }
.ncb-modal-footer .ncb-btn-primary { background: var(--ncb-accent); }

/* ==== DESKTOP ==== */
@media (min-width: 640px) {
  .ncb-backdrop {
    align-items: center;
    padding: 16px;
  }
  .ncb-modal {
    border-radius: 20px;
    max-height: 85vh;
  }
  .ncb-banner { padding: 20px; }
  .ncb-title  { font-size: 17px; }
}