/* =========================================================
   Materassi e Dintorni - Cookie Consent
   ========================================================= */

.md-cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2000;
  display: none;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem;
  color: #212529;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 1rem;
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .22);
}

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

.md-cookie-banner h2 {
  margin: 0 0 .6rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.md-cookie-banner p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.md-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.md-cookie-settings {
  display: none;
  margin: .9rem 0 1rem;
  padding: .9rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
}

.md-cookie-settings.is-open {
  display: block;
}

.md-cookie-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px solid #e9ecef;
}

.md-cookie-row:last-child {
  border-bottom: 0;
}

.md-cookie-row small {
  display: block;
  margin-top: .2rem;
  color: #6c757d;
}

.md-cookie-manage {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1990;
  display: none;
  padding: .55rem .8rem;
  font-size: .82rem;
  color: #fff;
  background: #212529;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .18);
}

.md-cookie-manage.is-visible {
  display: inline-flex;
}

.md-map-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
}

@media (max-width: 575.98px) {
  .md-cookie-banner {
    right: .6rem;
    bottom: .6rem;
    left: .6rem;
    padding: 1rem;
    border-radius: .8rem;
  }

  .md-cookie-actions .btn {
    width: 100%;
  }

  .md-cookie-manage {
    right: .6rem;
    bottom: .6rem;
  }
}
