.bb-consent {
  position: fixed;
  z-index: 45;
  inset: auto 0 0;
  padding: 9px var(--gut) calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
}

.bb-consent[hidden], [data-bb-consent-open][hidden] { display: none; }

.bb-consent__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1340px;
  margin-inline: auto;
}

.bb-consent h2, .bb-consent-dialog h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.bb-consent p, .bb-consent-dialog p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}

.bb-consent__actions {
  display: flex;
  flex: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.bb-consent__button {
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.bb-consent__button:hover { background: var(--bg-alt); }
.bb-consent__button--text { border-color: transparent; }

.bb-consent__button:focus-visible,
[data-bb-consent-open]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[data-bb-consent-open] {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bb-consent-dialog {
  position: fixed;
  inset: auto 0 max(12px, env(safe-area-inset-bottom));
  width: min(450px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: 0 auto;
  padding: 14px 18px 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
}

.bb-consent-dialog::backdrop { background: rgba(23, 20, 17, .45); }
.bb-consent-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bb-consent-dialog a { color: var(--accent); text-decoration: underline; }

.bb-consent-dialog__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.bb-consent-dialog__option strong, .bb-consent-dialog__option small { display: block; }
.bb-consent-dialog__option small { margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.bb-consent-dialog__option input { flex: none; width: 20px; height: 20px; accent-color: var(--accent); }
.bb-consent-dialog__option:has(input) { cursor: pointer; }
.bb-consent-dialog__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.ftr__bottom { padding-bottom: calc(28px + env(safe-area-inset-bottom) + var(--bb-consent-height, 0px)); }
.buy__purchase.is-docked { bottom: calc(12px + var(--bb-consent-height, 0px)); }

@media (max-width: 899px) {
  .buy__purchase.is-docked { bottom: var(--bb-consent-height, 0px); }
}

@media (max-width: 679px) {
  .bb-consent__bar { flex-direction: column; align-items: flex-start; }
  .bb-consent__actions { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); width: 100%; }
  .bb-consent__button { padding-inline: 6px; }
}
