/* Okienko zgody na statystyki (analytics.js) — tylko strona na domenie, nie wersja dla dealerów */
.ap-consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 9000; width: 420px; max-width: calc(100vw - 24px);
  padding: 26px 26px 24px; border-radius: 12px; background: #17130f; color: #fff;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 80px rgba(209,57,0,.1);
  font: 400 14px/1.55 'AP Inter', -apple-system, 'Segoe UI', sans-serif;
  opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.ap-consent[hidden] { display: none; }
.ap-consent.is-in { opacity: 1; transform: none; }
/* narożniki ramki AF — ten sam znak co w preloaderze i na stronie 404 */
.ap-consent-af { position: absolute; inset: 10px; pointer-events: none; color: rgba(255,255,255,.28); }
.ap-consent-af i { position: absolute; width: 12px; height: 12px; border: 0 solid currentColor; }
.ap-consent-af i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.ap-consent-af i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.ap-consent-af i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.ap-consent-af i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.ap-consent-h { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.005em; }
.ap-consent-t { margin: 0 0 10px; color: #cfc6bc; }
.ap-consent-m { margin: 0 0 20px; color: #8a8078; font-size: 12.5px; }
.ap-consent-m a { color: #cfc6bc; text-underline-offset: 3px; }
.ap-consent-m a:hover { color: #fff; }
.ap-consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* oba przyciski tej samej wielkości — odmowa nie może być trudniejsza niż zgoda */
.ap-consent-btn {
  min-height: 46px; padding: 12px 16px; border-radius: 7px; cursor: pointer;
  font: 600 15px/1.2 'AP Inter', -apple-system, 'Segoe UI', sans-serif; color: #fff;
  background: transparent; border: 1px solid rgba(255,255,255,.4);
  transition: background-color .2s ease, border-color .2s ease;
}
.ap-consent-btn:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.ap-consent-btn--yes { background: #d13900; border-color: #d13900; }
.ap-consent-btn--yes:hover { background: #e0561f; border-color: #e0561f; }
.ap-consent-btn:focus-visible, .ap-consent-m a:focus-visible, .ap-consent-open:focus-visible { outline: 3px solid #ffb070; outline-offset: 3px; }

/* „Zarządzanie plikami cookie” w stopce — wygląda jak pozostałe linki stopki */
.ap-consent-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ap-consent-open:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 600px) {
  .ap-consent { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; padding: 18px 18px 16px; font-size: 13px; line-height: 1.5; }
  .ap-consent-af { inset: 7px; }
  .ap-consent-h { font-size: 15px; margin-bottom: 6px; }
  .ap-consent-t { margin-bottom: 8px; }
  .ap-consent-m { font-size: 11.5px; margin-bottom: 14px; }
  .ap-consent-btn { min-height: 44px; padding: 10px 8px; font-size: 14px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-consent { transition: none; transform: none; }
}
