/* PazNetworks cookie consent banner.
   Brand primary: #882218 (--alt-color-5).  Neutral surface for the
   banner; brand color reserved for the primary action and focus ring. */
.pn-consent,
.pn-consent-modal,
.pn-consent-modal__dialog,
.pn-consent__btn,
.pn-consent-row {
  box-sizing: border-box;
  font-family: "Manrope Variable", "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.pn-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  background: #ffffff;
  color: #1f1e26;
  border: 1px solid #d2d1e9;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 12, 10, 0.18);
  padding: 16px 20px;
  animation: pn-fade-in 180ms ease-out;
}
.pn-consent__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
}
.pn-consent__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #1f1e26;
  flex: 0 0 100%;
}
.pn-consent__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3d3c4d;
  flex: 1 1 320px;
}
.pn-consent__link {
  color: #882218;
  text-decoration: underline;
  font-weight: 600;
}
.pn-consent__link:hover { color: #5d140e; }
.pn-consent__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pn-consent__btn {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: #1f1e26;
}
.pn-consent__btn--ghost {
  background: #f3f5fb;
  border-color: #d2d1e9;
  color: #1f1e26;
}
.pn-consent__btn--ghost:hover { background: #e6e5f1; }
.pn-consent__btn--primary {
  background: #882218;
  border-color: #882218;
  color: #fff6f4;
}
.pn-consent__btn--primary:hover { background: #5d140e; border-color: #5d140e; }
.pn-consent__btn:focus-visible {
  outline: 3px solid #e9695d;
  outline-offset: 2px;
}
.pn-consent__link:focus-visible {
  outline: 3px solid #e9695d;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Preferences modal. */
.pn-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(15, 12, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pn-fade-in 180ms ease-out;
}
.pn-consent-modal__dialog {
  background: #ffffff;
  color: #1f1e26;
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 24px 48px rgba(15, 12, 10, 0.32);
  max-height: 90vh;
  overflow-y: auto;
}
.pn-consent-modal__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 16px;
}
.pn-consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e6e5f1;
  border-radius: 6px;
  cursor: pointer;
}
.pn-consent-row:has(input:disabled) { background: #f3f5fb; cursor: not-allowed; }
.pn-consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #882218;
  flex: 0 0 auto;
}
.pn-consent-row input[type="checkbox"]:focus-visible {
  outline: 3px solid #e9695d;
  outline-offset: 2px;
}
.pn-consent-row__meta { display: flex; flex-direction: column; gap: 2px; }
.pn-consent-row__label { font-size: 14px; font-weight: 600; color: #1f1e26; }
.pn-consent-row__hint  { font-size: 12.5px; color: #515066; line-height: 1.4; }

@keyframes pn-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Mobile: full-width sheet pinned to the bottom. */
@media (max-width: 767px) {
  .pn-consent {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px 12px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .pn-consent__actions { width: 100%; }
  .pn-consent__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pn-consent,
  .pn-consent-modal { animation: none; }
}
