/* Banner zgody na pliki cookies – zob. scripts/zgoda-cookies.js */

.ogz-cookies {
  position: fixed;
  z-index: 100000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  color: #333333;
  border-top: 4px solid #ED1C24;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  font-family: raleway, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.ogz-cookies p {
  margin: 0 0 8px;
}

.ogz-cookies .ogz-cookies__tytul {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.ogz-cookies .ogz-cookies__maly {
  margin-bottom: 0;
  font-size: 13px;
  color: #555555;
}

.ogz-cookies a {
  color: #c4161d;
  text-decoration: underline;
}

/* Drugi ekran: osobne zgody */
.ogz-cookies__wybor[hidden] {
  display: none;
}

.ogz-serwis {
  padding: 10px 0 2px;
  border-top: 1px solid #e3e3e3;
}

.ogz-serwis p {
  margin: 4px 0 6px 30px;
  font-size: 13px;
  color: #555555;
}

.ogz-serwis__naglowek {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ogz-serwis__naglowek label {
  font-weight: 700;
  color: #111111;
  cursor: pointer;
}

.ogz-serwis__naglowek input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #ED1C24;
  cursor: pointer;
}

.ogz-serwis__naglowek input:disabled,
.ogz-serwis__naglowek input:disabled + label {
  cursor: default;
}

.ogz-serwis__zawsze {
  margin-left: 6px;
  font-weight: 400;
  font-size: 12px;
  color: #777777;
}

/* Przyciski */
.ogz-cookies__przyciski {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* "Odrzucam" i "Akceptuję" tej samej wielkości i równie widoczne */
.ogz-btn {
  min-width: 128px;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

.ogz-btn--akceptuj {
  background: #ED1C24;
}

.ogz-btn--akceptuj:hover {
  background: #c4161d;
}

.ogz-btn--odrzuc {
  background: #3a3a3a;
}

.ogz-btn--odrzuc:hover {
  background: #1f1f1f;
}

.ogz-btn--wybor {
  background: #ffffff;
  border-color: #3a3a3a;
  color: #3a3a3a;
}

.ogz-btn--wybor:hover {
  background: #f1f1f1;
}

.ogz-btn:focus-visible,
.ogz-pasek a:focus-visible,
.ogz-pasek button:focus-visible,
.ogz-serwis__naglowek input:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

/* Pasek w lewym dolnym rogu, gdy decyzja już zapadła */
.ogz-pasek {
  position: fixed;
  z-index: 100000;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-family: raleway, Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.ogz-pasek a,
.ogz-pasek button {
  padding: 3px 6px;
  border: 0;
  background: none;
  color: #444444;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ogz-pasek a::after {
  content: "·";
  margin-left: 10px;
  color: #999999;
}

.ogz-pasek a:hover,
.ogz-pasek button:hover {
  color: #ED1C24;
}

/* Zastępnik w miejscu mapy / wtyczki Facebooka przed zgodą */
.ogz-zastepnik {
  box-sizing: border-box;
  max-width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f1f1f1;
  border: 1px dashed #bdbdbd;
  color: #444444;
  font-family: raleway, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.ogz-zastepnik p {
  margin: 0;
}

.ogz-zastepnik .ogz-zastepnik__tytul {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
}

.ogz-zastepnik a {
  color: #555555;
  font-size: 13px;
  text-decoration: underline;
}
