/* Cookie consent - baner zgód (samodzielny, bez zależności od klas motywu) */
#cookie-consent-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  margin-right: auto;
  padding: 30px;
  background: #fff;
  color: #575757;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(23, 23, 23, 0.25);
  font-size: 14px;
  line-height: 24px;
  z-index: 999999;
  display: none;
}

#cookie-consent-bar .cc-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: #232323;
}

#cookie-consent-bar p {
  margin: 0 0 20px;
}

#cookie-consent-bar .cc-link {
  text-decoration: underline;
  color: #232323;
}

#cookie-consent-bar .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-consent-bar .cc-btn {
  flex: 1 1 auto;
  padding: 9px 16px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #232323;
  background: transparent;
  color: #232323;
  transition: 0.3s;
}

#cookie-consent-bar .cc-btn:hover {
  background: #232323;
  color: #fff;
}

#cookie-consent-bar .cc-btn-dark {
  background: #232323;
  color: #fff;
}

#cookie-consent-bar .cc-btn-dark:hover {
  background: #000;
  border-color: #000;
}

#cookie-consent-bar .cc-settings-panel {
  display: none;
  margin: 0 0 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(35, 35, 35, 0.1);
}

#cookie-consent-bar .cc-settings-panel.active {
  display: block;
}

#cookie-consent-bar .cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(35, 35, 35, 0.08);
}

#cookie-consent-bar .cc-category:last-of-type {
  border-bottom: none;
}

#cookie-consent-bar .cc-category-title {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #232323;
}

#cookie-consent-bar .cc-category-desc {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
}

#cookie-consent-bar .cc-settings-panel .cc-actions {
  margin-top: 20px;
}

/* Przełączniki */
#cookie-consent-bar .cc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

#cookie-consent-bar .cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#cookie-consent-bar .cc-switch .cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(35, 35, 35, 0.25);
  transition: 0.3s;
  border-radius: 24px;
}

#cookie-consent-bar .cc-switch .cc-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

#cookie-consent-bar .cc-switch input:checked + .cc-slider {
  background-color: #232323;
}

#cookie-consent-bar .cc-switch input:checked + .cc-slider::before {
  transform: translateX(18px);
}

#cookie-consent-bar .cc-switch input:disabled + .cc-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ikonka do ponownego otwarcia (lewy dolny róg, żeby nie zasłaniać strzałki "do góry") */
#cookie-consent-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #232323;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999998;
  cursor: pointer;
  border: none;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

#cookie-consent-toggle.visible {
  display: flex;
}

#cookie-consent-toggle i {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 480px) {
  #cookie-consent-bar {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
    padding: 20px;
  }

  #cookie-consent-toggle {
    width: 42px;
    height: 42px;
    bottom: 15px;
    left: 15px;
  }
}
