/* LogNet cookie consent, v1.0. Färger enligt SBL/LogNet grafisk profil. */
.lnc {
  --lnc-yellow: #FFE900;
  --lnc-black: #000000;
  --lnc-white: #ffffff;
  --lnc-grey: #5A5A5A;
  --lnc-line: #E2E2E2;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: var(--lnc-white);
  color: var(--lnc-black);
  border-top: 4px solid var(--lnc-yellow);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  font-family: Calibri, Carlito, "Segoe UI", sans-serif;
  max-height: 90vh;
  overflow-y: auto;
}
.lnc[hidden] { display: none; }
.lnc__inner { box-sizing: border-box; max-width: 1440px; margin: 0 auto; padding: 28px 120px 32px; }
.lnc__inner--intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.lnc__inner--settings { max-width: 1000px; margin: 0; }
.lnc__text { max-width: 760px; }
.lnc__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.lnc__body { margin: 0; font-size: 16px; line-height: 1.5; color: #333333; }
.lnc__body a { color: var(--lnc-black); }
.lnc__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lnc__actions--settings { padding-top: 14px; border-top: 1px solid var(--lnc-line); }
/* Båda valen har samma storlek och vikt, så att "Endast nödvändiga" är lika lätt att välja. */
.lnc__btn {
  min-height: 48px;
  min-width: 220px;
  padding: 0 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--lnc-black);
  color: var(--lnc-white);
  border: 2px solid var(--lnc-black);
}
.lnc__btn:hover { background: #222222; }
.lnc__link {
  min-height: 44px;
  padding: 0 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  background: transparent;
  border: 0;
  color: var(--lnc-black);
  cursor: pointer;
}
.lnc__btn:focus-visible, .lnc__link:focus-visible, .lnc__switch:focus-visible, .lnc__body a:focus-visible {
  outline: 3px solid var(--lnc-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--lnc-black);
}
.lnc__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--lnc-line); }
.lnc__label { font-size: 16px; font-weight: 700; }
.lnc__desc { font-size: 14px; color: var(--lnc-grey); line-height: 1.4; margin-top: 4px; }
.lnc__always { font-size: 14px; font-weight: 700; color: var(--lnc-grey); white-space: nowrap; }
.lnc__switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 15px;
  border: 2px solid var(--lnc-black);
  background: var(--lnc-white);
  cursor: pointer;
}
.lnc__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lnc-black);
  transition: left 0.15s ease;
}
.lnc__switch[aria-checked="true"] { background: var(--lnc-black); }
.lnc__switch[aria-checked="true"] .lnc__knob { left: 25px; background: var(--lnc-yellow); }

@media (max-width: 900px) {
  .lnc__inner { padding: 20px 20px 24px; }
  .lnc__inner--intro { grid-template-columns: 1fr; gap: 16px; }
  .lnc__title { font-size: 18px; }
  .lnc__body { font-size: 15px; }
  .lnc__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .lnc__btn { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lnc__knob { transition: none; }
}
