/* Cookie consent banner and the small "Cookie settings" link */

.lk-choice {
  /* centred on the page; the page behind is only dimmed (the shadow does not
     catch clicks), so this is a clear question, not a wall */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  width: min(24rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.3rem 1.4rem 1.4rem;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.18);
  font-size: 0.85rem;
  line-height: 1.4;
}

.lk-choice[hidden] {
  display: none;
}

.lk-choice-text,
.lk-choice-now {
  margin: 0;
}

.lk-choice-now {
  margin-top: 0.6rem;
  font-style: italic;
}

/* No thanks and Accept: same size, shape and weight, side by side */
.lk-choice-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.lk-choice .lk-choice-btn {
  flex: 1 1 0; /* equal width whatever the label */
  min-width: 0;
  padding: 0.6em 0.8em;
  font-size: 0.8rem;
  color: #000;
}

.lk-choice .btn-border path {
  stroke: #000;
}

.lk-choice .lk-choice-btn:hover {
  color: #fff;
}

.lk-choice .lk-choice-btn:hover .btn-border path {
  fill: #000;
  stroke: #000;
}

.lk-choice .lk-choice-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* "Cookie settings": a text link at the end of the About page's right column */
.about-prefs {
  margin: 2.5rem 0 1rem;
  font-size: 0.85rem;
}

.site-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 800px) {
  .lk-choice {
    width: calc(100vw - 2rem);
    padding: 1.1rem 1.1rem 1.2rem;
  }

  /* A comfortable tap area on touch screens */
  .lk-choice .lk-choice-btn {
    padding: 0.85em 0.8em;
  }
}
