.gzc-consent[hidden],
.gzc-consent [hidden] {
  display: none !important;
}

.gzc-consent__backdrop {
  display: none;
}

/* Przyciemnienie strony tylko wtedy, gdy baner jest otwarty. */
.gzc-consent:not([hidden]) + .gzc-consent__backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #000;
  opacity: .5;
}

.gzc-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  color: #1c1c1c;
  border-top: 1px solid #d8d8d8;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .14);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.gzc-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
}

.gzc-consent__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.gzc-consent__text p {
  margin: 0 0 8px;
}

.gzc-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.gzc-consent__options {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.gzc-consent__options label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gzc-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.gzc-consent__button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #1c1c1c;
  border-radius: 4px;
  background: #fff;
  color: #1c1c1c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.gzc-consent__button--primary {
  background: #1c1c1c;
  color: #fff;
}

.gzc-consent__button:hover,
.gzc-consent__button:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: 2px;
}

.gzc-consent__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 600px) {
  .gzc-consent {
    max-height: 55vh;
  }

  .gzc-consent__inner {
    padding: 12px 14px;
  }

  .gzc-consent__title {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .gzc-consent__text {
    font-size: 12px;
    line-height: 1.4;
  }

  .gzc-consent__text p {
    margin-bottom: 4px;
  }

  .gzc-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .gzc-consent__button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
  }

  .gzc-consent__button--primary {
    grid-column: 1 / -1;
  }

  /* Na stronie polityki zostają same przyciski, żeby nie zasłaniać czytanego tekstu. */
  .gzc-consent--policy {
    max-height: 45vh;
  }

  .gzc-consent--policy .gzc-consent__title,
  .gzc-consent--policy .gzc-consent__text {
    display: none;
  }
}
