.cookie-banner {
  position: fixed;
  inset: auto 0 0 0; /* bottom bar */
  width: 100%;
  background: #f8f0b0;
  color: #333;
  padding: 10px 15px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  border-top: 1px solid #ccc;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}

.cookie-banner a {
  color: #333;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #e6c400;
  color: #000;
  border: none;
  padding: 7px 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-banner button:hover { background-color: #d5b400; }

/* drobna responsywność */
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner button { width: 100%; }
}

.cookie-details {
  margin-left: auto; /* trzyma „Szczegóły” bliżej przycisku na szerokich ekranach */
}

.cookie-details summary {
  cursor: pointer;
  list-style: none; /* ukrycie domyślnego trójkąta w części przeglądarek */
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff6c7;
}

.cookie-details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.cookie-details .cookie-details-body {
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fffdf0;
  padding: 10px 12px;
  max-width: 460px;
}

.cookie-details code {
  background: #f3f3f3;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 90%;
}

/* na wąskich ekranach schodzimy do kolumny – „Szczegóły” będą pod tekstem */
@media (max-width: 640px) {
  .cookie-details { margin-left: 0; width: 100%; }
  .cookie-details .cookie-details-body { max-width: none; }
}
