/* Banner cookie + link legali */

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
}

.legal-footer-links a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus {
  color: #eff0ec !important;
}

.legal-footer-links .sep {
  color: rgba(255, 255, 255, 0.55);
}

.legal-footer-links button {
  background: none;
  border: 0;
  padding: 0;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  cursor: pointer;
}

.legal-footer-links button:hover,
.legal-footer-links button:focus {
  color: #eff0ec;
}

.mbr-section-gdpr a,
.mbr-section-terms a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10040;
  background: #0d6e86;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  padding: 20px 22px;
  max-width: 920px;
  margin: 0 auto;
  display: none;
}

@media (min-width: 992px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 580px;
    transform: translateX(-50%);
  }
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #ffffff;
}

.cookie-banner p a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-text-short {
  display: none;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 180px;
}

.cookie-banner-actions button {
  min-height: 44px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px 18px;
  border: 2px solid #ffffff;
  -webkit-tap-highlight-color: transparent;
}

.cookie-btn-accept {
  background: #ffffff;
  color: #0d6e86;
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background: #eff0ec;
  color: #0a5a6e;
}

.cookie-btn-reject {
  background: transparent;
  color: #ffffff;
}

.cookie-btn-reject:hover,
.cookie-btn-reject:focus {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-map-fallback,
.cookie-recaptcha-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  padding: 20px;
  border-radius: 1rem;
  background: rgba(13, 110, 134, 0.08);
  color: #0d6e86;
  font-size: 0.95rem;
}

.google-map {
  position: relative;
}

.google-map .cookie-map-fallback {
  position: absolute;
  inset: 0;
  min-height: 0;
  border-radius: 0;
  background: #eff7f8;
}

.cookie-map-fallback button,
.cookie-recaptcha-fallback button {
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 2px solid #0d6e86;
  background: #0d6e86;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

body.cookie-banner-visible {
  --cookie-banner-offset: 8px;
}

body.cookie-banner-visible .whatsapp-widget {
  bottom: calc(var(--cookie-banner-offset, 180px) + 12px) !important;
}

@media (max-width: 767px) {
  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 12px 14px 10px;
    border-radius: 1.25rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-banner h2 {
    display: block;
    font-size: 1.05rem;
    margin: 0 0 4px;
  }

  .cookie-banner-text {
    display: none;
  }

  .cookie-banner-text-short {
    display: block;
  }

  .cookie-banner p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .cookie-banner-actions {
    flex-direction: row;
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .cookie-banner-actions button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.88rem;
  }

  .legal-footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .legal-footer-links .sep {
    display: none;
  }
}
