/* Cookie consent — banner + modal */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9000;
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  padding: 20px 24px;
  max-width: 980px;
  margin: 0 auto;
}
.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 760px) {
  .cookie-banner__inner { grid-template-columns: 1fr; }
}
.cookie-banner__text h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f172a;
  font-weight: 700;
}
.cookie-banner__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
.cookie-banner__text a { color: #ea580c; }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-banner__actions .btn {
  /* WAŻNE: 3 przyciski wizualnie równorzędne (RODO) */
  min-width: 150px;
  background: #ea580c;
  color: #fff;
  border: 1px solid #ea580c;
  font-weight: 600;
}
.cookie-banner__actions .btn:hover { background: #c2410c; border-color: #c2410c; color: #fff; }
@media (max-width: 760px) {
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__actions .btn { width: 100%; }
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
}
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.cookie-modal__panel {
  position: relative;
  background: #fff;
  max-width: 600px;
  margin: 60px auto 0;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
}
.cookie-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.cookie-modal__head h2 { margin: 0; font-size: 18px; color: #0f172a; }
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}
.cookie-modal__close:hover { color: #0f172a; }
.cookie-modal__body { padding: 20px 24px; overflow-y: auto; }
.cookie-modal__foot {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}

.cookie-cat {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.cookie-cat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-cat h3 { margin: 0; font-size: 15px; color: #0f172a; }
.cookie-cat p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.55; }

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: 0.2s;
}
.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: #ea580c; }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(20px); }
.cookie-toggle--disabled .cookie-toggle__slider { opacity: 0.6; cursor: not-allowed; }
