/* ============================================================
   Morelyte – cookieval (js/consent.js)
   Vit ruta nere till höger, så att heroknappen till vänster syns.
   Godkänn och Neka är lika stora och lika lätta att träffa.
   ============================================================ */
.ml-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;                 /* över menyboxen (50), under sidövergången */
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  padding: 28px 30px;
  border-radius: 28px;
  background: #ffffff;
  color: var(--ml-ink, #1b2120);
  box-shadow:
    0 1px 2px rgba(27, 33, 32, 0.08),
    0 24px 60px -24px rgba(27, 33, 32, 0.45);
  font-family: var(--ml-font);
  animation: ml-consent-in 0.6s var(--ml-ease-out, ease-out) both;
}
.ml-consent[hidden] { display: none; }

@keyframes ml-consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.ml-consent__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.ml-consent__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ml-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.ml-consent__btn {
  min-height: 52px;
  padding: 0 20px;
  border: 1.5px solid var(--ml-ink, #1b2120);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ml-ink, #1b2120);
  font: 500 16px/1 var(--ml-font);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.ml-consent__btn--yes {
  background: var(--ml-ink, #1b2120);
  color: #ffffff;
}
@media (hover: hover) {
  .ml-consent__btn:hover { background: #f2f2f0; }
  .ml-consent__btn--yes:hover { background: #335151; border-color: #335151; }
}
.ml-consent__btn:focus-visible,
.ml-consent__text a:focus-visible {
  outline: 2px solid #335151;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .ml-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 22px;
    border-radius: 24px;
  }
  .ml-consent__text { font-size: 15px; }
  .ml-consent__btn { min-height: 48px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-consent { animation: none; }
  .ml-consent__btn { transition: none; }
}

/* Knappen "Cookieval" i footern ser ut som länkarna bredvid */
.footer__meta button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.footer__meta button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (hover: hover) {
  .footer__meta button:hover { color: #ffffff; }
}
