/* DireBit — cookie consent bar.
   Non-blocking bottom sheet; the page stays readable and crawlable. */

.dbp-bar {
  background: #0b1220;
  border-top: 1px solid rgba(46, 197, 255, 0.28);
  bottom: 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
  left: 0;
  position: fixed;
  right: 0;
  z-index: 200;
}
.dbp-bar[hidden] { display: none !important }

.dbp-inner {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 20px 22px;
}

.dbp-title { color: #eef4fb; font-size: 16px; margin: 0 0 7px }
.dbp-text { color: #9fb0c8; font-size: 13.5px; line-height: 1.65; margin: 0; max-width: 760px }
.dbp-gpc {
  color: #7ee0ff; font-size: 12.5px; line-height: 1.6; margin: 9px 0 0; max-width: 760px;
}
.dbp-links { margin: 9px 0 0 }
.dbp-links a {
  border-bottom: 1px solid rgba(46, 197, 255, 0.45);
  color: #2ec5ff; font-size: 12.5px;
}
.dbp-links a:hover { border-bottom-color: #2ec5ff }

/* ------------------------------------------------------- categories ---- */
.dbp-cats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}
.dbp-cats[hidden] { display: none !important }

.dbp-cat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 12px 14px;
}
.dbp-cat-head { align-items: center; cursor: pointer; display: flex; gap: 10px }
.dbp-cat-head input { accent-color: #2ec5ff; height: 17px; width: 17px }
.dbp-cat-head input:disabled { cursor: not-allowed; opacity: 0.65 }
.dbp-cat-name { color: #eef4fb; font-size: 14px; font-weight: 760 }
.dbp-cat-tag {
  background: rgba(46, 197, 255, 0.14);
  border-radius: 999px;
  color: #7ee0ff;
  font-size: 11px;
  font-weight: 760;
  padding: 3px 9px;
}
.dbp-cat-desc { color: #9fb0c8; font-size: 12.5px; line-height: 1.6; margin: 8px 0 0 }
.dbp-none { color: #6b7f9c; font-size: 12.5px; line-height: 1.6; margin: 0 }

/* ---------------------------------------------------------- actions ---- */
.dbp-actions { display: flex; flex-wrap: wrap; gap: 10px }
.dbp-btn {
  border-radius: 7px;
  font-weight: 760;
  min-height: 42px;
  padding: 0 18px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.dbp-btn[hidden] { display: none !important }
.dbp-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #22314b;
  color: #eef4fb;
}
.dbp-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #2ec5ff }
.dbp-accept { background: #2ec5ff; border: 1px solid #2ec5ff; color: #04121d }
.dbp-accept:hover { background: #1aa9e6; border-color: #1aa9e6 }
.dbp-btn:focus-visible { outline: 2px solid #2ec5ff; outline-offset: 2px }

/* Keep page furniture clear of the bar while it is open. --dbp-h is the bar's
   measured height, published by consent.js. Without this the app interface's
   bottom tab bar sits underneath it and the tabs cannot be tapped. */
/* Marketing and legal pages: push the footer up so nothing is hidden. */
body.site-page.dbp-open { padding-bottom: var(--dbp-h, 0px) }

/* App interface: the shell is viewport-height, so shorten it instead of
   padding the body, otherwise the two compensations stack and leave a gap. */
body.app-page.dbp-open .mobile-shell {
  height: min(910px, calc(100vh - 36px - var(--dbp-h, 0px)));
  min-height: 0;
}

@media (max-width: 520px) {
  body.app-page.dbp-open .mobile-shell {
    height: calc(100vh - var(--dbp-h, 0px));
    min-height: 0;
  }
}

@media (min-width: 880px) {
  .dbp-inner { align-items: center; grid-template-columns: minmax(0, 1fr) auto }
  .dbp-cats { grid-column: 1 / -1 }
  .dbp-actions { justify-content: flex-end }
}

@media (max-width: 520px) {
  .dbp-inner { padding: 16px 14px }
  .dbp-actions { display: grid }
  .dbp-btn { width: 100% }
}
