:root{
  --lnk-cookie-navy:#0a2a3e;
  --lnk-cookie-green:#a8c94a;
  --lnk-cookie-paper:#f3f0e9;
  --lnk-cookie-ink:#11191d;
}

body.lnk-cookie-settings-open{
  overflow:hidden;
}

.lnk-cookie-banner[hidden],
.lnk-cookie-modal[hidden]{
  display:none!important;
}

.lnk-cookie-banner{
  position:fixed;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:10000;
  max-width:1020px;
  margin:auto;
  padding:13px 15px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px 18px;
  align-items:center;
  border:1px solid rgba(255,255,255,.25);
  background:var(--lnk-cookie-navy);
  color:#fff;
  box-shadow:0 14px 38px rgba(0,0,0,.24);
}

.lnk-cookie-copy strong{
  display:block;
  margin-bottom:3px;
  font-size:14px;
  letter-spacing:.2px;
}

.lnk-cookie-copy p{
  max-width:680px;
  margin:0;
  color:#d7e0e3;
  font-size:11px;
  line-height:1.42;
}

.lnk-cookie-copy a{
  color:#fff;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.lnk-cookie-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.lnk-cookie-actions button,
.lnk-cookie-modal-actions button{
  min-height:38px;
  padding:0 11px;
  border:1px solid #fff;
  background:transparent;
  color:#fff;
  font:800 9px/1 Arial,sans-serif;
  letter-spacing:.4px;
  text-transform:uppercase;
  cursor:pointer;
}

.lnk-cookie-actions .primary,
.lnk-cookie-modal-actions .primary{
  border-color:var(--lnk-cookie-green);
  background:var(--lnk-cookie-green);
  color:var(--lnk-cookie-navy);
}

.lnk-cookie-modal{
  position:fixed;
  inset:0;
  z-index:10001;
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(3,14,20,.78);
}

.lnk-cookie-dialog{
  width:min(100%,610px);
  max-height:min(760px,calc(100vh - 40px));
  overflow:auto;
  border-top:5px solid var(--lnk-cookie-green);
  background:var(--lnk-cookie-paper);
  color:var(--lnk-cookie-ink);
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}

.lnk-cookie-modal-head{
  padding:24px 26px 18px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid #c9ccc8;
}

.lnk-cookie-modal-head small{
  display:block;
  margin-bottom:5px;
  color:#5f6f74;
  font-size:9px;
  font-weight:900;
  letter-spacing:1px;
}

.lnk-cookie-modal-head h2{
  margin:0;
  color:var(--lnk-cookie-navy);
  font-size:28px;
  line-height:1;
}

.lnk-cookie-modal-close{
  width:38px;
  height:38px;
  border:1px solid var(--lnk-cookie-navy);
  background:transparent;
  color:var(--lnk-cookie-navy);
  font-size:25px;
  cursor:pointer;
}

.lnk-cookie-modal-body{
  padding:22px 26px;
}

.lnk-cookie-modal-body>p{
  margin:0 0 18px;
  color:#526267;
  font-size:13px;
  line-height:1.6;
}

.lnk-cookie-choice{
  padding:15px 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  border-top:1px solid #c9ccc8;
}

.lnk-cookie-choice strong{
  display:block;
  color:var(--lnk-cookie-navy);
  font-size:13px;
}

.lnk-cookie-choice small{
  display:block;
  margin-top:4px;
  color:#5d6b70;
  font-size:11px;
  line-height:1.45;
}

.lnk-cookie-choice input{
  width:24px;
  height:24px;
  accent-color:var(--lnk-cookie-navy);
}

.lnk-cookie-always-on{
  color:#536369;
  font-size:10px;
  font-weight:900;
  letter-spacing:.5px;
}

.lnk-cookie-modal-actions{
  padding:18px 26px 24px;
  display:flex;
  justify-content:flex-end;
  gap:9px;
  border-top:1px solid #c9ccc8;
  background:#ebe7df;
}

.lnk-cookie-modal-actions button{
  border-color:var(--lnk-cookie-navy);
  color:var(--lnk-cookie-navy);
}

@media(max-width:760px){
  .lnk-cookie-banner{
    left:8px;
    right:8px;
    bottom:8px;
    padding:12px;
    grid-template-columns:1fr;
    gap:10px;
  }

  .lnk-cookie-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    justify-content:stretch;
  }

  .lnk-cookie-actions .primary{
    grid-column:1 / -1;
  }

  .lnk-cookie-actions button{
    min-height:36px;
    padding:0 8px;
    font-size:9px;
  }

  .lnk-cookie-modal{
    padding:10px;
  }

  .lnk-cookie-modal-head,
  .lnk-cookie-modal-body,
  .lnk-cookie-modal-actions{
    padding-left:18px;
    padding-right:18px;
  }

  .lnk-cookie-modal-actions{
    display:grid;
    grid-template-columns:1fr;
  }
}
