/* MAKS Marina Cookie Consent – matcher MAKS Marina temaets designsprog (navy, blå, cyan) */

:root {
  --mmc-navy:   #071b32;
  --mmc-navy2:  #063d6b;
  --mmc-blue:   #0069b4;
  --mmc-blue2:  #004b83;
  --mmc-cyan:   #aee5ff;
  --mmc-shadow: 0 20px 60px rgba(7, 27, 50, .28);
  --mmc-radius: 20px;
}

/* ── Banner ─────────────────────────────────────────── */
.mmc-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 99999;
  width: min(800px, calc(100vw - 32px));
  background: linear-gradient(135deg, rgba(7, 27, 50, .97) 0%, rgba(6, 61, 107, .97) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--mmc-radius);
  box-shadow: var(--mmc-shadow);
  color: #d9f1ff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: opacity .35s ease, transform .35s ease;
}

.mmc-banner.mmc-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}

.mmc-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  flex-wrap: wrap;
}

/* MAKS-sejlet */
.mmc-icon {
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25));
}

.mmc-icon svg { display: block; }

/* tekst */
.mmc-text {
  flex: 1;
  min-width: 200px;
}

.mmc-text strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 3px;
}

.mmc-text p {
  margin: 0;
  color: #b9d7ea;
  font-size: 14px;
}

.mmc-text a {
  color: var(--mmc-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mmc-text a:hover {
  color: #fff;
}

/* knapper */
.mmc-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.mmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, transform .15s, border-color .2s;
  white-space: nowrap;
}

.mmc-btn:focus-visible {
  outline: 3px solid rgba(174, 229, 255, .6);
  outline-offset: 2px;
}

/* som temaets hvide knap i heroen */
.mmc-btn-primary {
  background: #fff;
  color: var(--mmc-blue2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.mmc-btn-primary:hover {
  background: #e4f5ff;
  transform: translateY(-1px);
}

.mmc-btn-outline {
  background: transparent;
  color: #d9f1ff;
  border-color: rgba(255, 255, 255, .35);
}

.mmc-btn-outline:hover {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
}

/* ── Lille badge (vis igen-knap) ────────────────────── */
.mmc-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mmc-navy), var(--mmc-blue));
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 8px 24px rgba(7, 27, 50, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: opacity .3s, transform .2s;
}

.mmc-badge:hover {
  transform: scale(1.1);
}

.mmc-badge:focus-visible {
  outline: 3px solid rgba(24, 160, 223, .5);
  outline-offset: 2px;
}

.mmc-badge.mmc-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Mobil ──────────────────────────────────────────── */
@media (max-width: 560px) {
  .mmc-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    width: 100%;
    border-radius: var(--mmc-radius) var(--mmc-radius) 0 0;
  }

  .mmc-banner.mmc-hidden {
    transform: translateY(20px);
  }

  .mmc-inner {
    padding: 18px 16px;
    gap: 14px;
  }

  .mmc-icon svg {
    width: 36px;
    height: 36px;
  }

  .mmc-actions {
    width: 100%;
  }

  .mmc-btn {
    flex: 1;
    justify-content: center;
  }

  .mmc-badge {
    bottom: 16px;
    left: 16px;
  }
}
