/* === Samtykke for informasjonskapslar (Google Maps) === */

/* Plasshaldar for kartet før samtykke */
.map-placeholder {
  width: 100%;
  max-width: 600px;
  min-height: 300px;
  margin-bottom: 50px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.map-placeholder p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.map-placeholder a {
  color: #fff;
}

.map-container[hidden],
.map-placeholder[hidden],
.cookie-banner[hidden] {
  display: none;
}

/* Knappar */
.cookie-btn {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 4px;
  border: 2px solid #fff;
  cursor: pointer;
  background: transparent;
  color: #fff;
}

.cookie-btn--primary {
  background: #fff;
  color: #444573;
}

.cookie-btn:hover {
  opacity: 0.85;
}

.cookie-btn:focus-visible {
  outline: 3px solid #94c7fa;
  outline-offset: 2px;
}

/* Banner nedst på sida */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #2f3052;
  color: #fff;
  padding: 1.25rem 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.cookie-banner__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  flex: 1 1 400px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: #fff;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Informasjon om informasjonskapslar */
.cookie-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  color: #fff;
}

.cookie-info h2 {
  margin-bottom: 1rem;
}

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

.cookie-info a {
  color: #fff;
}

@media screen and (max-width: 480px) {
  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1;
  }
}
