/* Baner zgody na pliki cookie — bez zewnętrznych bibliotek */
#cookie-consent-banner {
  position: fixed;
  z-index: 10050;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: rgba(23, 23, 23, 0.97);
  color: #f5f5f5;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

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

#cookie-consent-banner .cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

#cookie-consent-banner .cookie-text {
  flex: 1 1 280px;
}

#cookie-consent-banner .cookie-text a {
  color: #7dcea0;
  text-decoration: underline;
}

#cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

#cookie-consent-banner button {
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

#cookie-consent-banner .btn-accept {
  background: #04a777;
  color: #fff;
}

#cookie-consent-banner .btn-reject {
  background: transparent;
  color: #f5f5f5;
  border: 2px solid #666;
}

#cookie-consent-banner .btn-settings {
  background: #333;
  color: #fff;
}

#cookie-settings-panel {
  position: fixed;
  z-index: 10051;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#cookie-settings-panel.is-open {
  display: flex;
}

#cookie-settings-panel .panel-dialog {
  background: #fff;
  color: #232323;
  max-width: 480px;
  width: 100%;
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

#cookie-settings-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

#cookie-settings-panel .panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

#cookie-settings-panel .panel-row:last-of-type {
  border-bottom: none;
}

#cookie-settings-panel label {
  margin: 0;
  cursor: pointer;
}

#cookie-settings-panel .panel-footer {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

#cookie-settings-panel .panel-footer button {
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

#cookie-settings-panel .btn-save {
  background: #04a777;
  color: #fff;
}

#cookie-settings-panel .btn-cancel {
  background: #e8e8e8;
  color: #232323;
}
