/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #f0f0f0;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.visible {
  transform: translateY(0);
}

#cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
  color: #ccc;
}

#cookie-banner a {
  color: #B8973A;
  text-decoration: underline;
}

.consent-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-consent {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-consent:hover { opacity: 0.85; }

.btn-accept {
  background: #B8973A;
  color: #fff;
}

.btn-reject {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
}

.btn-settings {
  background: transparent;
  color: #B8973A;
  border: 1px solid #B8973A;
}

/* ===== MODAL USTAWIEŃ ===== */
#consent-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#consent-modal.open {
  display: flex;
}

.modal-box {
  background: #1a1a2e;
  color: #f0f0f0;
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  font-family: 'Inter', sans-serif;
}

.modal-box h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}

.modal-box p {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 20px;
}

.consent-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #2e2e4a;
}

.consent-toggle-row:last-of-type {
  border-bottom: none;
}

.toggle-label { font-size: 14px; }
.toggle-label span {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle input:checked + .toggle-slider { background: #B8973A; }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
}