/* Cookie choice card: small, playful, never blocking the page. */
.bn-consent {
  position: fixed;
  z-index: 45;
  left: 20px;
  right: 20px;
  margin-inline: auto;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100% - 40px));
  padding: 18px 20px 16px;
  background: var(--bn-cream);
  color: var(--bn-ink);
  border: 2px solid var(--bn-ink);
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  box-shadow: 6px 6px 0 var(--bn-yellow);
  rotate: -1deg;
  font-size: .87rem;
  line-height: 1.5;
  animation: bn-consent-in .45s var(--bn-ease, ease-out) both;
}
.bn-consent::before {
  content: "🍪";
  position: absolute;
  top: -22px;
  right: 18px;
  font-size: 2.1rem;
  line-height: 1;
  rotate: 14deg;
}
.bn-consent-title { margin: 0 0 4px; font: 600 1.6rem/1.05 var(--bn-hand, cursive); padding-right: 34px; }
.bn-consent-text { margin: 0 0 12px; }
.bn-consent-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.bn-consent-actions .bn-button { flex: 1 1 0; min-width: max-content; min-height: 44px; padding: 10px 16px; font-size: .85rem; gap: 10px; box-shadow: none; }
.bn-consent-actions .bn-consent-refuse { background: var(--bn-cream); color: var(--bn-ink); }
.bn-consent-actions .bn-consent-refuse:hover { background: var(--bn-ink); color: #fff; }
.bn-consent-more { margin-top: 10px; border-top: 1px dashed var(--bn-line); padding-top: 8px; }
.bn-consent-more summary { cursor: pointer; font-weight: 600; font-size: .8rem; min-height: 32px; display: flex; align-items: center; }
.bn-consent-more ul { margin: 6px 0 10px; padding-left: 18px; font-size: .8rem; }
.bn-consent-more li + li { margin-top: 5px; }
.bn-consent-more .bn-text-link { font-size: .8rem; }
.bn-consent-status { margin: 0; font: 600 1.3rem/1.15 var(--bn-hand, cursive); }
.bn-consent-status:empty { display: none; }
.bn-consent.is-done > :not(.bn-consent-status) { display: none; }
/* Footer button styled like the former "Tout en haut" link (.bn-back-top). */
.bn-consent-manage { border: 0; padding: 0; min-height: 0; background: none; color: inherit; font-family: inherit; line-height: inherit; cursor: pointer; }
.bn-has-dock .bn-consent { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@keyframes bn-consent-in {
  from { opacity: 0; translate: 0 24px; }
}
@media (max-width: 700px) {
  .bn-consent { left: 12px; right: 12px; width: calc(100% - 24px); padding: 16px 16px 12px; rotate: 0deg; box-shadow: 4px 4px 0 var(--bn-yellow); }
  .bn-consent-title { font-size: 1.45rem; }
  .bn-consent-more ul { max-height: 34vh; overflow: auto; }
}
@media print { .bn-consent { display: none !important; } }
