/* Akademiet for Menneskeligt Lederskab — cookie-popup
   Bruger sidens egne farve- og skrifttypevariabler (--ink, --cream, --line, Public Sans),
   så banneret ikke ser ud som et fremmed plugin. */

.aml-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(23, 27, 36, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.aml-cookie-overlay--show {
  opacity: 1;
}

.aml-cookiebar {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 2rem 1.75rem;
  background: var(--cream, #F3EDE2);
  border: 1px solid var(--line, #DAD5C7);
  border-radius: 2px;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink, #1A2538);
  box-shadow: 0 24px 60px rgba(23, 27, 36, 0.35);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.aml-cookie-overlay--show .aml-cookiebar {
  transform: translateY(0);
}

.aml-cookiebar__title {
  margin: 0;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.aml-cookiebar__text {
  margin: 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.aml-cookiebar__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aml-cookiebar__actions {
  display: flex;
  gap: 0.75rem;
}

.aml-btn {
  flex: 1;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 1.35rem;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--ink, #1A2538);
  min-width: 8.5rem;
}

.aml-btn--solid {
  background: var(--ink, #1A2538);
  color: var(--cream, #F3EDE2);
}

.aml-btn--solid:hover {
  background: var(--ink-soft, #4C5566);
}

.aml-btn--ghost {
  background: transparent;
  color: var(--ink, #1A2538);
}

.aml-btn--ghost:hover {
  background: rgba(26, 37, 56, 0.06);
}

@media (max-width: 420px) {
  .aml-cookiebar {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .aml-cookiebar__actions {
    flex-direction: column-reverse;
  }
}

.aml-cookiebar:focus {
  outline: none;
}
