/* consent.css - banner zgody dla mieszkania.projektant.rzeszow.pl */

.spm-consent[hidden] {
  display: none !important;
}

.spm-consent {
  position: fixed;
  z-index: 12000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #0d3566;
}

.spm-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #ccd9ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(5, 31, 63, 0.18);
}

.spm-consent__copy {
  min-width: 0;
}

.spm-consent__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.spm-consent__copy p {
  max-width: 650px;
  margin: 0 0 5px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.spm-consent__copy a,
.footer-cookie-settings {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spm-consent__copy a {
  color: #0d3566;
}

.spm-consent__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.spm-consent__btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #0d3566;
  border-radius: 9px;
  background: #fff;
  color: #0d3566;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.spm-consent__btn--primary {
  background: #0d3566;
  color: #fff;
}

.spm-consent__btn--quiet {
  border-color: transparent;
  font-weight: 600;
}

.spm-consent__btn:hover,
.spm-consent__btn:focus-visible,
.footer-cookie-settings:focus-visible {
  outline: 3px solid #e99912;
  outline-offset: 2px;
}

.footer-cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

body.wcag-contrast-high .spm-consent__inner {
  border-color: #fff;
  background: #000;
  color: #fff;
  box-shadow: none;
}

body.wcag-contrast-high .spm-consent__copy a,
body.wcag-contrast-high .footer-cookie-settings {
  color: #ffdf4d;
}

body.wcag-contrast-high .spm-consent__btn {
  border-color: #fff;
  background: #000;
  color: #fff;
}

body.wcag-contrast-high .spm-consent__btn--primary {
  border-color: #ffdf4d;
  background: #ffdf4d;
  color: #000;
}

@media (max-width: 760px) {
  .spm-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .spm-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 15px;
  }

  .spm-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .spm-consent__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spm-consent *,
  .spm-consent *::before,
  .spm-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
