/* assets/css/cookie-consent.css */

/* Banner fixed bottom (wymuszone, żeby nic z style.css tego nie przestawiło) */
.cc-banner{
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  transform: none !important;
  z-index: 99999 !important;
  background: rgba(20,20,20,.96);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,.35);
  font-size: 14px;
}

/* wrapper (zgodny z cookie-consent.php) */
.cc-container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cc-text{
  flex: 1 1 520px;
  line-height: 1.35;
}

.cc-title{
  font-weight: 800;
  margin-bottom: 4px;
}

.cc-desc{
  opacity: .92;
}

.cc-link{
  color: #9ad7ff;
  text-decoration: underline;
}

.cc-actions{
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-btn{
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.cc-primary{
  background: #1f8fff;
  color: #fff;
}

.cc-ghost{
  background: rgba(255,255,255,.10);
  color: #fff;
}

.cc-btn:hover{
  filter: brightness(1.06);
}

/* Modal overlay */
.cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 18px;
  display: none; /* domyślnie ukryte */
}

.cc-modal:not([hidden]) {
  display: flex; /* pokaż dopiero gdy JS zdejmie hidden */
}


/* Panel (teraz zgodne z cookie-consent.php) */
.cc-modal__inner{
  width: 100%;
  max-width: 520px;
  background: #111;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  overflow: hidden;
}

.cc-modal__head,
.cc-modal__foot{
  padding: 14px 16px;
  background: #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-modal__title{
  font-weight: 800;
}

.cc-modal__body{
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

/* checkboxy normalne rozmiary */
.cc-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.cc-row input{
  width: 16px;
  height: 16px;
  margin: 0;
}

.cc-x{
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile */
@media (max-width: 520px){
  .cc-actions{ justify-content: stretch; }
  .cc-btn{ width: 100%; }
}
