.bmcc-root {
  --bmcc-surface: #ffffff;
  --bmcc-surface-soft: #f7f9fa;
  --bmcc-ink: #18222b;
  --bmcc-muted: #697884;
  --bmcc-line: #dde5e9;
  --bmcc-line-strong: #cbd6dc;
  --bmcc-accent: #168ac8;
  --bmcc-accent-dark: #0f709f;
  --bmcc-accent-soft: rgba(22,138,200,.12);
  --bmcc-success: #4f9c50;
  --bmcc-success-soft: #eef8ee;
  --bmcc-radius: 20px;
  --bmcc-shadow: 0 24px 64px rgba(20,34,44,.15), 0 4px 14px rgba(20,34,44,.07);
  --bmcc-shadow-hover: 0 28px 72px rgba(20,34,44,.18), 0 6px 18px rgba(20,34,44,.08);
  --bmcc-ease: cubic-bezier(.2,.75,.25,1);
  position: relative;
  z-index: 2147483000;
  color: var(--bmcc-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.bmcc-root *, .bmcc-root *::before, .bmcc-root *::after { box-sizing: border-box; }
.bmcc-root button, .bmcc-root input { font: inherit; }
.bmcc-root svg { display: block; }
.bmcc-root [hidden] { display: none !important; }
html.bmcc-modal-open, html.bmcc-modal-open body { overflow: hidden !important; }

.bmcc-banner {
  position: fixed;
  z-index: 2147483002;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .24s ease, transform .28s var(--bmcc-ease);
}
.bmcc-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.bmcc-banner--box { right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: min(520px, calc(100vw - 32px)); }
.bmcc-banner--cloud { left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: min(760px, calc(100vw - 32px)); transform: translate(-50%, 12px); }
.bmcc-banner--cloud.is-visible { transform: translate(-50%, 0); }
.bmcc-banner--bar { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }

.bmcc-banner__shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203,214,220,.95);
  border-radius: var(--bmcc-radius);
  background: rgba(255,255,255,.965);
  box-shadow: var(--bmcc-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  transition: box-shadow .22s ease, transform .22s var(--bmcc-ease);
}
.bmcc-banner__shell::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -145px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bmcc-accent-soft), transparent 70%);
  pointer-events: none;
}
.bmcc-banner__shell:hover { box-shadow: var(--bmcc-shadow-hover); }
.bmcc-banner__header { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.bmcc-shield { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--bmcc-line); border-radius: 12px; color: var(--bmcc-accent-dark); background: var(--bmcc-accent-soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.bmcc-shield svg { width: 21px; height: 21px; }
.bmcc-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--bmcc-accent-dark); font-size: 10px; font-weight: 750; letter-spacing: .11em; line-height: 1.2; text-transform: uppercase; }
.bmcc-kicker > span { width: 7px; height: 7px; border-radius: 50%; background: var(--bmcc-accent); box-shadow: 0 0 0 5px var(--bmcc-accent-soft); }
.bmcc-banner__content { position: relative; padding: 15px 22px 21px; }
.bmcc-banner__copy h2 { margin: 0 0 8px; color: var(--bmcc-ink); font-size: 26px; font-weight: 620; letter-spacing: -.035em; line-height: 1.14; }
.bmcc-banner__copy p { margin: 0; color: var(--bmcc-muted); font-size: 14px; line-height: 1.6; }
.bmcc-policy-links { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 11px; }
.bmcc-policy-links--dialog { margin: -4px 0 15px; }
.bmcc-policy-link { display: inline-flex; align-items: center; gap: 5px; color: var(--bmcc-accent-dark); font-size: 12px; font-weight: 650; text-decoration: none; }
.bmcc-policy-link::after { content: "↗"; font-size: 10px; opacity: .65; }
.bmcc-policy-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bmcc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bmcc-chip { display: inline-flex; min-height: 25px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--bmcc-line); border-radius: 999px; color: var(--bmcc-muted); background: #fafbfb; font-size: 10px; font-weight: 650; }
.bmcc-chip i { width: 6px; height: 6px; border-radius: 50%; background: #b4c0c7; }
.bmcc-chip--on { color: #438b45; border-color: #d5e8d5; background: var(--bmcc-success-soft); }
.bmcc-chip--on i { background: var(--bmcc-success); }
.bmcc-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.bmcc-banner__actions .bmcc-button--text { grid-column: 1 / -1; }

.bmcc-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--bmcc-ease), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.bmcc-button svg { width: 18px; height: 18px; }
.bmcc-button:hover { transform: translateY(-1px); }
.bmcc-button:active { transform: translateY(0); }
.bmcc-button:focus-visible, .bmcc-close:focus-visible, .bmcc-toggle input:focus-visible + span, .bmcc-fab:focus-visible { outline: 3px solid var(--bmcc-accent-soft); outline-offset: 3px; }
.bmcc-button--primary { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--bmcc-accent) 92%, white), var(--bmcc-accent)); box-shadow: 0 7px 18px color-mix(in srgb, var(--bmcc-accent) 22%, transparent); }
.bmcc-button--primary:hover { background: linear-gradient(180deg, var(--bmcc-accent), var(--bmcc-accent-dark)); box-shadow: 0 10px 24px color-mix(in srgb, var(--bmcc-accent) 28%, transparent); }
.bmcc-button--secondary { color: var(--bmcc-ink); border-color: var(--bmcc-line-strong); background: linear-gradient(180deg, #fff, #f8fafb); box-shadow: 0 1px 2px rgba(20,34,44,.04); }
.bmcc-button--secondary:hover { border-color: #b7c5cd; background: #fff; }
.bmcc-button--text { min-height: 36px; color: var(--bmcc-muted); background: transparent; }
.bmcc-button--text:hover { color: var(--bmcc-accent-dark); background: var(--bmcc-accent-soft); }

.bmcc-banner--cloud .bmcc-banner__header { padding-left: 26px; padding-right: 26px; }
.bmcc-banner--cloud .bmcc-banner__content { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: end; gap: 26px; padding: 14px 26px 24px; }
.bmcc-banner--cloud .bmcc-banner__actions { margin-top: 0; }
.bmcc-banner--bar .bmcc-banner__shell { border-radius: 17px; }
.bmcc-banner--bar .bmcc-banner__header { position: absolute; left: 20px; top: 18px; padding: 0; }
.bmcc-banner--bar .bmcc-banner__content { display: grid; grid-template-columns: minmax(300px, 1fr) auto; align-items: center; gap: 26px; padding: 20px 22px 20px 76px; }
.bmcc-banner--bar .bmcc-banner__copy h2 { font-size: 21px; }
.bmcc-banner--bar .bmcc-chips { margin-top: 10px; }
.bmcc-banner--bar .bmcc-banner__actions { grid-template-columns: auto auto auto; margin-top: 0; }
.bmcc-banner--bar .bmcc-banner__actions .bmcc-button--text { grid-column: auto; }

.bmcc-overlay {
  position: fixed;
  z-index: 2147483003;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  background: rgba(24,36,46,.34);
  -webkit-backdrop-filter: blur(7px) saturate(112%);
  backdrop-filter: blur(7px) saturate(112%);
  transition: opacity .22s ease;
}
.bmcc-overlay.is-visible { opacity: 1; }
.bmcc-preferences {
  width: min(690px, 100%);
  max-height: min(740px, calc(100vh - 44px));
  max-height: min(740px, calc(100dvh - 44px));
  overflow: hidden;
  border: 1px solid rgba(203,214,220,.98);
  border-radius: 24px;
  background: var(--bmcc-surface);
  box-shadow: 0 30px 78px rgba(20,34,44,.22), 0 5px 18px rgba(20,34,44,.09);
  transform: translateY(12px);
  transition: transform .28s var(--bmcc-ease);
}
.bmcc-overlay.is-visible .bmcc-preferences { transform: translateY(0); }
.bmcc-preferences:focus { outline: none; }
.bmcc-preferences__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; border-bottom: 1px solid var(--bmcc-line); background: linear-gradient(180deg, #fff, #fbfcfc); }
.bmcc-preferences__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bmcc-preferences__identity h2 { margin: 4px 0 0; color: var(--bmcc-ink); font-size: 23px; font-weight: 620; letter-spacing: -.03em; line-height: 1.16; }
.bmcc-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; place-items: center; border: 1px solid var(--bmcc-line); border-radius: 11px; color: var(--bmcc-muted); background: linear-gradient(180deg, #fff, #f8fafb); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--bmcc-ease); }
.bmcc-close:hover { color: var(--bmcc-ink); border-color: #bac8d0; background: #fff; transform: translateY(-1px); }
.bmcc-close svg { width: 19px; height: 19px; }
.bmcc-preferences__body { max-height: calc(min(740px, 100vh - 44px) - 174px); max-height: calc(min(740px, 100dvh - 44px) - 174px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px; background: var(--bmcc-surface-soft); }
.bmcc-preferences__intro { margin: 0 0 14px; color: var(--bmcc-muted); font-size: 14px; line-height: 1.58; }
.bmcc-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 19px; padding: 15px 17px; border: 1px solid var(--bmcc-line); border-radius: 15px; background: #fff; box-shadow: 0 1px 2px rgba(20,34,44,.025); transition: transform .2s var(--bmcc-ease), box-shadow .2s ease, border-color .2s ease; }
.bmcc-category + .bmcc-category { margin-top: 9px; }
.bmcc-category:hover { transform: translateY(-2px); border-color: var(--bmcc-line-strong); box-shadow: 0 9px 24px rgba(20,34,44,.075); }
.bmcc-category--locked { border-color: #d7e7d6; background: linear-gradient(135deg, #fff, #f8fcf7); }
.bmcc-category__copy { min-width: 0; }
.bmcc-category__title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.bmcc-category__status { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #aab7bf; box-shadow: 0 0 0 4px #f0f3f4; }
.bmcc-category--locked .bmcc-category__status { background: var(--bmcc-success); box-shadow: 0 0 0 4px var(--bmcc-success-soft); }
.bmcc-category h3 { margin: 0; color: var(--bmcc-ink); font-size: 14px; font-weight: 720; line-height: 1.3; }
.bmcc-category em { padding: 3px 7px; border: 1px solid var(--bmcc-line); border-radius: 999px; color: var(--bmcc-muted); background: #fafbfb; font-size: 9px; font-style: normal; font-weight: 750; letter-spacing: .055em; line-height: 1.2; text-transform: uppercase; }
.bmcc-category--locked em { color: #468d47; border-color: #d6e7d5; background: var(--bmcc-success-soft); }
.bmcc-category p { margin: 6px 0 0 15px; color: var(--bmcc-muted); font-size: 12.5px; line-height: 1.48; }
.bmcc-toggle { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.bmcc-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bmcc-toggle > span { position: relative; display: block; width: 44px; height: 25px; border: 1px solid #c7d1d7; border-radius: 999px; background: #dfe5e8; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bmcc-toggle > span i { position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(20,34,44,.2); transition: transform .2s var(--bmcc-ease); }
.bmcc-toggle input:checked + span { border-color: var(--bmcc-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--bmcc-accent) 86%, white), var(--bmcc-accent)); box-shadow: 0 0 0 4px var(--bmcc-accent-soft); }
.bmcc-toggle input:checked + span i { transform: translateX(19px); }
.bmcc-toggle--locked { cursor: default; }
.bmcc-toggle--locked > span, .bmcc-toggle--locked input:checked + span { border-color: var(--bmcc-success); background: var(--bmcc-success); box-shadow: 0 0 0 4px var(--bmcc-success-soft); }
.bmcc-toggle--locked > span i { transform: translateX(19px); }
.bmcc-preferences__footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--bmcc-line); background: #fff; }
.bmcc-preferences__footer .bmcc-button--text { grid-column: 1 / -1; }

.bmcc-fab {
  --bmcc-fab-x: 24px;
  --bmcc-fab-y: 24px;
  position: fixed;
  z-index: 2147483001;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--bmcc-line-strong);
  border-radius: 15px;
  color: var(--bmcc-accent-dark);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(20,34,44,.15), 0 2px 7px rgba(20,34,44,.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  cursor: pointer;
  pointer-events: none;
  transition: opacity .18s ease, transform .2s var(--bmcc-ease), box-shadow .2s ease, border-color .2s ease;
}
.bmcc-fab.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.bmcc-fab:hover { transform: translateY(-2px) scale(1); border-color: color-mix(in srgb, var(--bmcc-accent) 30%, var(--bmcc-line)); box-shadow: 0 15px 34px rgba(20,34,44,.19), 0 3px 9px rgba(20,34,44,.07); }
.bmcc-fab > svg { position: relative; z-index: 1; width: 24px; height: 24px; }
.bmcc-fab__pulse { position: absolute; inset: 7px; border-radius: 10px; background: var(--bmcc-accent-soft); }
.bmcc-fab--top_left { top: calc(var(--bmcc-fab-y) + env(safe-area-inset-top)); left: calc(var(--bmcc-fab-x) + env(safe-area-inset-left)); }
.bmcc-fab--top_right { top: calc(var(--bmcc-fab-y) + env(safe-area-inset-top)); right: calc(var(--bmcc-fab-x) + env(safe-area-inset-right)); }
.bmcc-fab--bottom_left { bottom: calc(var(--bmcc-fab-y) + env(safe-area-inset-bottom)); left: calc(var(--bmcc-fab-x) + env(safe-area-inset-left)); }
.bmcc-fab--bottom_right { right: calc(var(--bmcc-fab-x) + env(safe-area-inset-right)); bottom: calc(var(--bmcc-fab-y) + env(safe-area-inset-bottom)); }

@supports not (background: color-mix(in srgb, red 20%, white)) {
  .bmcc-button--primary, .bmcc-toggle input:checked + span { background: var(--bmcc-accent); }
  .bmcc-button--primary:hover { background: var(--bmcc-accent-dark); }
  .bmcc-button--primary { box-shadow: 0 7px 18px rgba(22,138,200,.22); }
  .bmcc-fab:hover { border-color: var(--bmcc-accent); }
}

@media (max-width: 920px) {
  .bmcc-banner--bar { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .bmcc-banner--bar .bmcc-banner__header { position: relative; left: auto; top: auto; padding: 17px 20px 0; }
  .bmcc-banner--bar .bmcc-banner__content { grid-template-columns: 1fr; gap: 16px; padding: 13px 20px 20px; }
  .bmcc-banner--bar .bmcc-banner__actions { grid-template-columns: 1fr 1fr; }
  .bmcc-banner--bar .bmcc-banner__actions .bmcc-button--text { grid-column: 1 / -1; }
  .bmcc-banner--cloud .bmcc-banner__content { grid-template-columns: 1fr; gap: 17px; }
  .bmcc-banner--cloud .bmcc-banner__actions { grid-template-columns: 1fr 1fr; }
  .bmcc-banner--cloud .bmcc-banner__actions .bmcc-button--text { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .bmcc-banner--box, .bmcc-banner--cloud { left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); width: auto; transform: translateY(12px); }
  .bmcc-banner--cloud.is-visible { transform: translateY(0); }
  .bmcc-banner__header, .bmcc-banner--cloud .bmcc-banner__header { padding: 16px 17px 0; }
  .bmcc-banner__content, .bmcc-banner--cloud .bmcc-banner__content { padding: 13px 17px 17px; }
  .bmcc-banner__copy h2 { font-size: 23px; }
  .bmcc-banner__copy p { font-size: 13px; }
  .bmcc-banner__actions, .bmcc-banner--cloud .bmcc-banner__actions, .bmcc-banner--bar .bmcc-banner__actions { grid-template-columns: 1fr; }
  .bmcc-banner__actions .bmcc-button--text, .bmcc-banner--cloud .bmcc-banner__actions .bmcc-button--text, .bmcc-banner--bar .bmcc-banner__actions .bmcc-button--text { grid-column: auto; }
  .bmcc-overlay { align-items: end; padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .bmcc-preferences { width: 100%; max-height: calc(100vh - 16px); max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom))); border-radius: 21px; }
  .bmcc-preferences__header { padding: 16px; }
  .bmcc-preferences__identity h2 { font-size: 20px; }
  .bmcc-preferences__body { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 15px 16px; }
  .bmcc-category { gap: 12px; padding: 14px; }
  .bmcc-category p { margin-left: 0; }
  .bmcc-preferences__footer { grid-template-columns: 1fr; padding: 12px 16px calc(15px + env(safe-area-inset-bottom)); }
  .bmcc-preferences__footer .bmcc-button--text { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bmcc-root *, .bmcc-root *::before, .bmcc-root *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ================================================================
   3.2.3 layout refinement
   Keeps all three banner layouts readable with long translations and
   makes the preferences footer stay fully visible at every height.
   ================================================================ */

.bmcc-button {
  min-width: 0;
  white-space: nowrap;
  line-height: 1.2;
}

/* Compact box layout */
.bmcc-banner--box {
  width: min(500px, calc(100vw - 32px));
}
.bmcc-banner--box .bmcc-banner__actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.bmcc-banner--box .bmcc-banner__actions .bmcc-button--text {
  justify-self: center;
  width: auto;
  min-width: 150px;
  padding-inline: 18px;
}

/* Centred layout: calmer proportions and enough room for translations. */
.bmcc-banner--cloud {
  bottom: max(28px, env(safe-area-inset-bottom));
  width: min(880px, calc(100vw - 40px));
}
.bmcc-banner--cloud .bmcc-banner__shell {
  border-radius: 22px;
}
.bmcc-banner--cloud .bmcc-banner__header {
  padding: 22px 26px 0;
}
.bmcc-banner--cloud .bmcc-banner__content {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 370px);
  align-items: end;
  gap: 34px;
  padding: 15px 26px 26px;
}
.bmcc-banner--cloud .bmcc-banner__copy {
  max-width: 520px;
}
.bmcc-banner--cloud .bmcc-banner__copy h2 {
  margin-bottom: 10px;
  font-size: 27px;
}
.bmcc-banner--cloud .bmcc-banner__copy p {
  line-height: 1.62;
}
.bmcc-banner--cloud .bmcc-banner__actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-self: end;
  gap: 10px;
  width: 100%;
  margin-top: 0;
}
.bmcc-banner--cloud .bmcc-banner__actions .bmcc-button {
  min-height: 48px;
  padding-inline: 14px;
  font-size: 13px;
}
.bmcc-banner--cloud .bmcc-banner__actions .bmcc-button--text {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-width: 170px;
  min-height: 38px;
  margin-top: 1px;
  padding-inline: 18px;
}

/* Full-width bar: no absolute header, no text collision, actions below and
   visually separated from the copy. */
.bmcc-banner--bar {
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
}
.bmcc-banner--bar .bmcc-banner__shell {
  max-width: 1540px;
  margin-inline: auto;
  border-radius: 18px;
}
.bmcc-banner--bar .bmcc-banner__header {
  position: relative;
  left: auto;
  top: auto;
  padding: 18px 24px 0;
}
.bmcc-banner--bar .bmcc-banner__content {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
  align-items: end;
  gap: 34px;
  padding: 12px 24px 20px;
}
.bmcc-banner--bar .bmcc-banner__copy {
  min-width: 0;
}
.bmcc-banner--bar .bmcc-banner__copy h2 {
  margin-bottom: 7px;
  font-size: 22px;
}
.bmcc-banner--bar .bmcc-banner__copy p {
  max-width: 900px;
  font-size: 13px;
  line-height: 1.55;
}
.bmcc-banner--bar .bmcc-policy-links {
  margin-top: 9px;
}
.bmcc-banner--bar .bmcc-chips {
  margin-top: 10px;
}
.bmcc-banner--bar .bmcc-banner__actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-self: end;
  gap: 10px;
  width: 100%;
  margin-top: 0;
}
.bmcc-banner--bar .bmcc-banner__actions .bmcc-button {
  min-height: 46px;
  padding-inline: 14px;
}
.bmcc-banner--bar .bmcc-banner__actions .bmcc-button--text {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-width: 160px;
  min-height: 36px;
  margin-top: 1px;
  padding-inline: 18px;
}

/* Dialog: header and footer never get clipped; only the category body scrolls. */
.bmcc-preferences {
  display: flex;
  flex-direction: column;
  width: min(700px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
}
.bmcc-preferences__header,
.bmcc-preferences__footer {
  flex: 0 0 auto;
}
.bmcc-preferences__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 17px 20px;
}
.bmcc-category {
  gap: 16px;
  padding: 14px 16px;
}
.bmcc-category + .bmcc-category {
  margin-top: 8px;
}
.bmcc-preferences__footer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  padding: 14px 20px 18px;
}
.bmcc-preferences__footer .bmcc-button {
  min-height: 48px;
  padding-inline: 12px;
  font-size: 12.5px;
}
.bmcc-preferences__footer .bmcc-button--text {
  grid-column: auto;
  color: var(--bmcc-muted);
  border: 1px solid var(--bmcc-line);
  background: var(--bmcc-surface-soft);
}
.bmcc-preferences__footer .bmcc-button--text:hover {
  color: var(--bmcc-ink);
  border-color: var(--bmcc-line-strong);
  background: #fff;
}

@media (max-width: 1080px) {
  .bmcc-banner--bar .bmcc-banner__content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bmcc-banner--bar .bmcc-banner__actions {
    width: min(460px, 100%);
    justify-self: end;
  }
}

@media (max-width: 820px) {
  .bmcc-banner--cloud {
    width: min(620px, calc(100vw - 28px));
  }
  .bmcc-banner--cloud .bmcc-banner__content {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .bmcc-banner--cloud .bmcc-banner__copy {
    max-width: none;
  }
  .bmcc-banner--cloud .bmcc-banner__actions {
    width: min(390px, 100%);
    justify-self: end;
  }
}

@media (max-width: 620px) {
  .bmcc-overlay {
    align-items: center;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .bmcc-preferences {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .bmcc-preferences__body {
    max-height: none;
    padding: 14px 15px;
  }
  .bmcc-category {
    padding: 13px 14px;
  }
  .bmcc-preferences__footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 15px calc(13px + env(safe-area-inset-bottom));
  }
  .bmcc-preferences__footer .bmcc-button {
    min-height: 45px;
    padding-inline: 8px;
    font-size: 11.5px;
  }
  .bmcc-banner--bar {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .bmcc-banner--bar .bmcc-banner__header {
    padding: 16px 17px 0;
  }
  .bmcc-banner--bar .bmcc-banner__content {
    padding: 12px 17px 17px;
  }
  .bmcc-banner--bar .bmcc-banner__actions,
  .bmcc-banner--cloud .bmcc-banner__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }
  .bmcc-banner--bar .bmcc-banner__actions .bmcc-button--text,
  .bmcc-banner--cloud .bmcc-banner__actions .bmcc-button--text {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .bmcc-banner__actions,
  .bmcc-banner--cloud .bmcc-banner__actions,
  .bmcc-banner--bar .bmcc-banner__actions {
    grid-template-columns: 1fr;
  }
  .bmcc-banner__actions .bmcc-button--text,
  .bmcc-banner--cloud .bmcc-banner__actions .bmcc-button--text,
  .bmcc-banner--bar .bmcc-banner__actions .bmcc-button--text {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .bmcc-preferences__footer {
    grid-template-columns: 1fr 1fr;
  }
  .bmcc-preferences__footer .bmcc-button--text {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .bmcc-preferences__footer {
    grid-template-columns: 1fr;
  }
  .bmcc-preferences__footer .bmcc-button--text {
    grid-column: auto;
  }
}
