/* Baner zgody na pomiar Google Ads — wspólny dla wszystkich szablonów. */
.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  z-index: 500;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  color: #10243d;
  font-family: inherit;
}

.callbar + .cookie-consent {
  bottom: max(16px, env(safe-area-inset-bottom));
}

.cookie-consent__inner {
  display: flex;
  width: min(100%, 940px);
  margin-inline: auto;
  padding: 19px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(11, 31, 58, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 60px rgba(5, 22, 39, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-consent__copy {
  max-width: 610px;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 5px;
  color: #07182b;
  font-size: 15px;
  line-height: 1.35;
}

.cookie-consent__copy p {
  margin: 0;
  color: #4b5f75;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-consent__copy a {
  color: #0b4a80;
  font-weight: 700;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  font: 700 13px/1.2 inherit;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid #d8b04b;
  outline-offset: 3px;
}

.cookie-consent__button--primary {
  border: 1px solid #0b3156;
  color: #fff;
  background: #0b3156;
}

.cookie-consent__button--primary:hover {
  background: #071f38;
}

.cookie-consent__button--secondary {
  border: 1px solid #b7c2cd;
  color: #16304c;
  background: #fff;
}

.cookie-consent__button--secondary:hover {
  border-color: #7f91a3;
  background: #f5f8fa;
}

.cookie-settings-link {
  display: inline-block;
  width: max-content;
  margin: 0;
  padding: 2px 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}

.cookie-settings-link:hover {
  color: #fff;
  text-decoration: underline;
}

.full-footer .cookie-settings-link {
  display: block;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .callbar + .cookie-consent {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .cookie-consent__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 17px;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__button {
    flex: 1 1 0;
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    right: 10px;
    left: 10px;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__button {
    transition: none;
  }
}
