/* Business Before Thirty – Cookies */
.bbtc {
  --mint: #00D9A3;
  --blue: #0038FF;
  --coral: #FF6B6B;
  --paper: #F8F8F5;
  --white: #FFFFFF;
  --ink: #101010;
  --ink-2: #5F5F5F;
  --line: #E5E5E5;
  --radius: 8px;
  font-family: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.bbtc *, .bbtc *::before, .bbtc *::after { box-sizing: border-box; }
.bbtc :where(h2, h3, p, ul, table, thead, tbody, tr, th, td, header, footer, section) { margin: 0; padding: 0; }
.bbtc [hidden] { display: none !important; }
.bbtc a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.bbtc a:hover { text-decoration-color: var(--mint); text-decoration-thickness: 3px; }

/* ---------- buttons ---------- */
.bbtc .bbtc-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.bbtc .bbtc-btn:hover { color: var(--ink); background: var(--white); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.bbtc .bbtc-btn:active { transform: none; box-shadow: none; }
.bbtc .bbtc-btn--mint,
.bbtc .bbtc-btn--mint:hover { background: var(--mint); }
.bbtc .bbtc-btn--ghost,
.bbtc .bbtc-btn--ghost:hover {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}
.bbtc .bbtc-btn--ghost:hover { text-decoration-color: var(--mint); text-decoration-thickness: 3px; }
.bbtc .bbtc-btn--full { grid-column: 1 / -1; }
.bbtc button:focus-visible,
.bbtc a:focus-visible,
.bbtc input:focus-visible + .bbtc-slider { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- banner ---------- */
.bbtc .bbtc-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2147483000;
  width: min(440px, calc(100vw - 40px));
  padding: 22px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--mint);
  animation: bbtc-in .35s cubic-bezier(.2, .7, .2, 1) both;
}
.bbtc .bbtc-tag {
  display: inline-block;
  padding: 6px 9px 5px;
  font-family: 'Bungee', Impact, 'Arial Black', sans-serif;
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
  background: var(--mint);
  border-radius: 2px;
}
.bbtc .bbtc-title {
  margin-top: 12px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
}
.bbtc .bbtc-text { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.bbtc .bbtc-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@keyframes bbtc-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- floating button ---------- */
.bbtc .bbtc-fab {
  appearance: none;
  -webkit-appearance: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482000;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.bbtc .bbtc-fab:hover { color: var(--ink); background: var(--mint); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- modal ---------- */
.bbtc .bbtc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 16, 16, .62);
}
.bbtc .bbtc-panel {
  width: min(680px, 100%);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--mint);
  overflow: hidden;
  animation: bbtc-in .3s cubic-bezier(.2, .7, .2, 1) both;
}
.bbtc .bbtc-panel__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 2px solid var(--ink);
}
.bbtc .bbtc-panel__head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.bbtc .bbtc-close {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.bbtc .bbtc-close:hover { color: var(--ink); background: var(--mint); }
.bbtc .bbtc-panel__body { flex: 1 1 auto; overflow-y: auto; padding: 20px 22px 8px; background: var(--paper); }
.bbtc .bbtc-intro { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.bbtc .bbtc-panel__foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 22px;
  border-top: 2px solid var(--ink);
  background: var(--white);
}
.bbtc .bbtc-panel__foot .bbtc-btn { flex: 1 1 150px; }

/* categories */
.bbtc .bbtc-cat {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.bbtc .bbtc-cat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bbtc .bbtc-cat__info h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.bbtc .bbtc-cat__info p { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.bbtc .bbtc-always {
  flex: none;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  background: var(--mint);
  border-radius: 2px;
  white-space: nowrap;
}
.bbtc .bbtc-toggle {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 12px;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.bbtc .bbtc-toggle:hover { color: var(--ink); background: none; text-decoration-color: var(--mint); text-decoration-thickness: 3px; }
.bbtc .bbtc-toggle::after { content: " +"; }
.bbtc .bbtc-toggle[aria-expanded="true"]::after { content: " −"; }
.bbtc .bbtc-list { margin-top: 12px; }

/* switch */
.bbtc .bbtc-switch { position: relative; flex: none; display: inline-block; width: 54px; height: 32px; cursor: pointer; }
.bbtc .bbtc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bbtc .bbtc-slider {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: background .18s ease;
}
.bbtc .bbtc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--ink);
  border-radius: 50%;
  transition: transform .18s ease;
}
.bbtc .bbtc-switch input:checked + .bbtc-slider { background: var(--mint); }
.bbtc .bbtc-switch input:checked + .bbtc-slider::before { transform: translateX(22px); }
.bbtc .bbtc-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* table */
.bbtc .bbtc-tablewrap { overflow-x: auto; }
.bbtc .bbtc-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.bbtc .bbtc-table th {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
}
.bbtc .bbtc-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink); }
.bbtc .bbtc-table code {
  padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  word-break: normal;
  overflow-wrap: break-word;
}
.bbtc .bbtc-table td:first-child { min-width: 104px; }
.bbtc .bbtc-empty { font-size: 14px; color: var(--ink-2); }

/* inline (shortcode) */
.bbtc-inline .bbtc-inline__title { margin: 28px 0 4px; font-size: 22px; font-weight: 700; }
.bbtc-inline .bbtc-inline__desc { margin: 0 0 12px; color: var(--ink-2); }

body.bbtc-lock { overflow: hidden; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .bbtc .bbtc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; box-shadow: 5px 5px 0 var(--mint); }
  .bbtc .bbtc-title { font-size: 21px; }
  .bbtc .bbtc-overlay { padding: 0; align-items: flex-end; }
  .bbtc .bbtc-panel { width: 100%; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; border-bottom: 0; }
  .bbtc .bbtc-panel__foot .bbtc-btn { flex: 1 1 100%; }
  .bbtc .bbtc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .bbtc .bbtc-table, .bbtc .bbtc-table tbody, .bbtc .bbtc-table tr, .bbtc .bbtc-table td { display: block; width: 100%; }
  .bbtc .bbtc-table tr { padding: 8px 0; border-bottom: 2px solid var(--ink); }
  .bbtc .bbtc-table td { padding: 3px 0; border: 0; }
  .bbtc .bbtc-table td::before { content: attr(data-label) ": "; font-weight: 700; }
  .bbtc .bbtc-fab { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .bbtc .bbtc-banner, .bbtc .bbtc-panel { animation: none; }
  .bbtc .bbtc-btn, .bbtc .bbtc-fab, .bbtc .bbtc-slider, .bbtc .bbtc-slider::before { transition: none; }
}
