/*
 * Bouqmark consent banner (consent.js). It copies the nav pill: white at 82% with a blur,
 * the same hairline and shadow, 4px padding around 34px buttons, so the bar is 42px tall and
 * sits on one line at the bottom of the screen. Under 1080px wide it becomes a short card (text,
 * then the buttons in a row). In consent mode the three choices are the same size and weight;
 * US visitors get the notice (OK filled, Opt out quiet).
 * "Choose" opens the toggles above the bar, which turns into a card while they show.
 */
.bq-consent {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 4px 4px 4px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(59, 38, 25, 0.06), 0 8px 24px -12px rgba(59, 38, 25, 0.25);
  color: var(--ink, #3B2619);
  font: 400 13px/1.35 var(--sans, 'DM Sans', system-ui, -apple-system, sans-serif);
}
.bq-consent *, .bq-consent *::before, .bq-consent *::after { box-sizing: border-box; }

/* The heading stays for screen readers only. */
.bq-consent-title {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bq-consent-text { flex: 1 1 auto; margin: 0; color: var(--ink-2, rgba(59, 38, 25, 0.72)); white-space: nowrap; }
.bq-consent-text a { color: var(--ink, #3B2619); text-decoration: underline; text-underline-offset: 2px; }

.bq-consent-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.bq-consent-btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(59, 38, 25, 0.06);
  color: var(--ink, #3B2619);
  font: 500 13px/1 var(--sans, 'DM Sans', system-ui, -apple-system, sans-serif);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}
.bq-consent-btn:hover { background: rgba(59, 38, 25, 0.12); }
.bq-consent-btn:focus-visible,
.bq-consent-toggle input:focus-visible,
.bq-consent-text a:focus-visible {
  outline: 2px solid var(--ink, #3B2619);
  outline-offset: 2px;
}

/* US notice (OK / Opt out): OK is the filled cocoa button, Opt out a quiet text button. */
.bq-consent-notice .bq-consent-btn[data-act="all"] { min-width: 64px; background: var(--ink, #3B2619); color: var(--bg, #F9F8F5); }
.bq-consent-notice .bq-consent-btn[data-act="all"]:hover { background: rgba(59, 38, 25, 0.86); }
.bq-consent-quiet { background: transparent; color: var(--ink-2, rgba(59, 38, 25, 0.72)); }
.bq-consent-quiet:hover { background: rgba(59, 38, 25, 0.06); color: var(--ink, #3B2619); }

/* "Choose": the toggles sit above the bar, and the bar becomes a card. */
.bq-consent:has(.bq-consent-panel:not([hidden])) { border-radius: 20px; padding: 12px; }
.bq-consent-panel {
  order: -1;
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--beige-soft, #EFEBE2);
}
.bq-consent-panel[hidden] { display: none; }
.bq-consent-panel .bq-consent-btn { align-self: flex-start; background: var(--card, #fff); }
.bq-consent-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bq-consent-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink, #3B2619);
  cursor: pointer;
}
.bq-consent-toggle input:disabled { cursor: not-allowed; }
.bq-consent-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.bq-consent-toggle-text strong { font-weight: 500; }
.bq-consent-toggle-text span { color: var(--ink-2, rgba(59, 38, 25, 0.72)); font-size: 12.5px; }

/* Wide screens: the three toggles side by side, Save at the end of the row. */
@media (min-width: 1080px) {
  .bq-consent-panel { flex-direction: row; align-items: center; gap: 20px; }
  .bq-consent-panel .bq-consent-toggle { flex: 1 1 0; }
  .bq-consent-panel .bq-consent-btn { align-self: center; }
}

/* Narrower screens: a short card, the text above one row of three equal buttons. */
@media (max-width: 1079px) {
  .bq-consent { width: auto; max-width: 560px; border-radius: 20px; padding: 12px 12px 8px; }
  .bq-consent-text { white-space: normal; flex-basis: 100%; padding: 0 4px; }
  .bq-consent-actions { flex: 1 1 100%; }
  .bq-consent-actions .bq-consent-btn { flex: 1 1 0; padding: 0 8px; }
}
