/* Baner zgody na cookies.
   [ZMIANA] Wyciag z style.css. Na stronach statycznych motyw wyrejestrowuje
   caly style.css (handle hogs-landing-child), wiec baner pojawialby sie bez stylow.
   Ten plik ladujemy osobno tylko tam. Blok nie uzywa zadnej zmiennej CSS,
   wiec dziala samodzielnie. Zrodlo prawdy dla stron niestatycznych zostaje w style.css. */

.hogs-cookie-consent[hidden],
.hogs-cookie-consent__panel[hidden],
.hogs-cookie-consent__actions[hidden] {
  display: none !important;
}

.hogs-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 620;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
  color: #212121;
  font-family: 'Poppins', sans-serif;
  background: rgba(251,251,251,0.62);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.hogs-cookie-consent *,
.hogs-cookie-consent *::before,
.hogs-cookie-consent *::after {
  box-sizing: border-box;
}

.hogs-cookie-consent__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  width: min(720px, 100%);
  max-height: calc(100vh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 22px;
  overflow-y: auto;
  border: 1px solid rgba(31,31,31,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 22px 56px rgba(18, 26, 40, 0.16);
  pointer-events: auto;
}

.hogs-cookie-consent__summary {
  min-width: 0;
}

.hogs-cookie-consent__eyebrow {
  margin: 0 0 8px;
  color: #854CDB;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hogs-cookie-consent h2,
.hogs-cookie-consent h3 {
  margin: 0;
  color: #1f1f1f;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.hogs-cookie-consent h2 {
  font-size: 20px;
}

.hogs-cookie-consent h3 {
  font-size: 18px;
}

.hogs-cookie-consent p {
  max-width: 760px;
  margin: 9px 0 0;
  color: #535353;
  font-size: 14px;
  line-height: 1.55;
}

.hogs-cookie-consent a {
  color: #0C6DFF;
  font-weight: 700;
  text-decoration: none;
}

.hogs-cookie-consent a:hover {
  text-decoration: underline;
}

.hogs-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.hogs-cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid rgba(31,31,31,0.16);
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hogs-cookie-consent__button:hover,
.hogs-cookie-consent__button:focus-visible {
  border-color: rgba(133,76,219,0.48);
  box-shadow: 0 8px 24px rgba(39, 22, 78, 0.10);
  outline: none;
}

.hogs-cookie-consent__button--primary {
  border-color: #854CDB;
  background: #854CDB;
  color: #fff;
}

.hogs-cookie-consent__button--primary:hover,
.hogs-cookie-consent__button--primary:focus-visible {
  background: #7540c7;
  color: #fff;
}

.hogs-cookie-consent__button--plain {
  background: transparent;
}

.hogs-cookie-consent__panel {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(31,31,31,0.10);
}

.hogs-cookie-consent__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.hogs-cookie-consent__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31,31,31,0.12);
  border-radius: 8px;
  background: #fff;
  color: #535353;
  cursor: pointer;
}

.hogs-cookie-consent__close:hover,
.hogs-cookie-consent__close:focus-visible {
  color: #1f1f1f;
  border-color: rgba(133,76,219,0.48);
  outline: none;
}

.hogs-cookie-consent__option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  padding: 14px 0;
  border-top: 1px solid rgba(31,31,31,0.08);
}

.hogs-cookie-consent__option strong,
.hogs-cookie-consent__option span span {
  display: block;
}

.hogs-cookie-consent__option strong {
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.hogs-cookie-consent__option span span,
.hogs-cookie-consent__option div > span {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

.hogs-cookie-consent__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(12,109,255,0.08);
  color: #0C6DFF;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.hogs-cookie-consent__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hogs-cookie-consent__switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #dedede;
  transition: background 0.18s ease;
}

.hogs-cookie-consent__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(18, 26, 40, 0.22);
  transition: transform 0.18s ease;
}

.hogs-cookie-consent__option input:checked + .hogs-cookie-consent__switch {
  background: #854CDB;
}

.hogs-cookie-consent__option input:checked + .hogs-cookie-consent__switch::after {
  transform: translateX(20px);
}

.hogs-cookie-consent__option input:focus-visible + .hogs-cookie-consent__switch {
  outline: 3px solid rgba(133,76,219,0.24);
  outline-offset: 3px;
}

.hogs-cookie-consent__panel-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

@media (max-width: 760px) {
  .hogs-cookie-consent {
    padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom));
  }

  .hogs-cookie-consent__card {
    max-height: calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 18px;
  }

  .hogs-cookie-consent h2 {
    font-size: 18px;
  }

  .hogs-cookie-consent p {
    font-size: 13px;
  }

  .hogs-cookie-consent__actions,
  .hogs-cookie-consent__panel-actions {
    width: 100%;
  }

  .hogs-cookie-consent__button,
  .hogs-cookie-consent__panel-actions .hogs-cookie-consent__button {
    width: 100%;
  }

  .hogs-cookie-consent__option {
    gap: 12px;
  }

  .hogs-cookie-consent__badge {
    white-space: normal;
    text-align: center;
  }
}
