/* ===== Popup cookies modal (centralny) ===== */

/* Zaciemnienie tła */
.cookie-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  opacity: 0; 
  visibility: hidden;
  transition: opacity .3s ease;
}

/* Okienko cookies */
.cookie-modal{
  position: fixed;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  background: #fff;
  color: #111;
  max-width: 640px;      /* szerokość desktop */
  width: 92%;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  z-index: 9999;
  opacity: 0; 
  visibility: hidden;
  transition: transform .35s ease, opacity .3s ease;
}

/* Widoczne */
.cookie-modal.is-visible,
.cookie-overlay.is-visible{
  visibility: visible;
  opacity: 1;
}
.cookie-modal.is-visible{
  transform: translate(-50%, -50%) scale(1);
}

/* Teksty */
.cookie-modal h3{
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
}
.cookie-modal p{
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
}
.cookie-modal a{
  color: var(--accent, #f58220);
  font-weight: 600;
  text-decoration: underline;
}

/* Przyciski */
.cookie-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-btn{
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .25s;
}

.cookie-btn:hover{ transform: translateY(-1px); }

.cookie-btn.btn--ghost{
  background: #f7f7f7; 
  color: #111; 
  border: 1px solid #ddd;
}
.cookie-btn.btn--ghost:hover{ background: #eee; }

.cookie-btn{
  background: var(--accent, #f58220);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245,130,32,.25);
}
.cookie-btn:hover{
  background: #ff8f2a;
  box-shadow: 0 6px 16px rgba(245,130,32,.35);
}

/* ===== Responsywność ===== */
@media (max-width: 600px){
  .cookie-modal{
    max-width: 95%;
    width: 95%;
    padding: 24px;
    border-radius: 12px;
  }
  .cookie-modal h3{ font-size: 20px; }
  .cookie-modal p{ font-size: 15px; }
  .cookie-actions{ flex-direction: column; align-items: stretch; }
  .cookie-btn{ width: 100%; }
}

/* Gdy ktoś ma wyłączone animacje */
@media (prefers-reduced-motion: reduce){
  .cookie-modal{ transform: translate(-50%, -50%) scale(1) !important; }
  .cookie-modal, .cookie-overlay{ transition: none; }
}
