/* Banner del consenso cookie e riga dei link legali nel footer, condivisi tra coop e cresco.
   Il colore del sito arriva da --consent-accent, impostato in site.css. */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 48px 16px 16px;
  background: #fff;
  color: #111;
  border-top: 4px solid var(--consent-accent, #444);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  margin: 0;
  color: inherit;
  font: inherit;
}

.cookie-banner-text a {
  color: inherit;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.cookie-banner-actions button {
  flex: 1 1 0;
  max-width: 160px;
  min-height: 44px;
  padding: 8px 20px;
  border: 2px solid var(--consent-accent, #444);
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner-actions button:hover,
.cookie-banner-actions button:focus-visible {
  background: var(--consent-accent, #444);
}

.cookie-banner-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.u-footer .u-footer-legal {
  position: relative;
  margin: -30px auto 24px;
  padding: 0 16px;
  text-align: center;
  font-size: 0.875rem;
}

.u-footer-legal a,
.u-footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
