#bb-analytics-panel[hidden] { display: none !important; }
#bb-analytics-panel {
  position: fixed; z-index: 9999; left: 20px; right: 20px; bottom: 20px;
  width: auto; max-width: 780px; max-height: calc(100dvh - 40px); overflow-y: auto;
  margin-left: auto; padding: 24px; box-sizing: border-box;
  background: #fff; color: #162c4a; border: 1px solid #c8d4e2; border-radius: 12px;
  box-shadow: 0 10px 40px #102a432b; font-family: var(--sans, Arial, sans-serif);
  font-size: 1rem; line-height: 1.5;
}
#bb-analytics-panel .bb-consent-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#bb-analytics-panel h2 { margin: 0; font-family: inherit; font-size: 1.15rem; line-height: 1.4; font-weight: 700; }
#bb-analytics-panel p { margin: 12px 0; font-size: 1rem; line-height: 1.5; }
#bb-analytics-panel a { color: #224c8c; text-decoration: underline; text-underline-offset: 3px; }
#bb-analytics-panel button { font: inherit; cursor: pointer; min-height: 44px; border-radius: 6px; padding: 10px 16px; }
#bb-analytics-panel #bb-analytics-close { padding: 2px 8px; border: 0; color: #304867; background: transparent; min-width: 44px; flex-shrink: 0; }
#bb-analytics-panel .bb-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
#bb-analytics-panel .bb-consent-actions button { flex: 1 1 210px; border: 1px solid #244976; background: #fff; color: #244976; font-weight: 600; }
#bb-analytics-panel #bb-analytics-accept { background: #244976; color: #fff; }
#bb-analytics-panel #bb-analytics-status { color: #465c75; font-size: .875rem; }
#bb-analytics-panel :focus-visible, [data-analytics-settings]:focus-visible { outline: 3px solid #b0781a; outline-offset: 4px; }
.bb-privacy-controls { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 18px; padding-bottom: 24px; }
.bb-privacy-controls a { font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.bb-privacy-document-note { padding: 20px; background: #edf2f7; border-left: 3px solid #244976; }
@media (max-width: 540px) {
  #bb-analytics-panel { left: 10px; right: 10px; bottom: 10px; padding: 18px; max-height: calc(100dvh - 20px); }
  #bb-analytics-panel .bb-consent-actions { flex-direction: column; gap: 10px; }
  #bb-analytics-panel .bb-consent-actions button { flex: none; width: 100%; }
}
@media print { #bb-analytics-panel, .bb-privacy-controls { display: none !important; } }

/* Compact first layer. Both decisions are equal in size, contrast and interaction. */
#bb-analytics-panel { max-width: 500px; padding: 15px 18px 17px; }
#bb-analytics-panel h2 { color: #162c4a; font: 700 18px/1.2 Arial,sans-serif; letter-spacing: normal; text-transform: none; }
#bb-analytics-panel .bb-consent-heading { align-items: center; min-height: 28px; padding-right: 42px; }
#bb-analytics-panel #bb-analytics-close { position: absolute; right: 8px; top: 3px; width: 44px; height: 44px; font-size: 24px; }
#bb-analytics-panel .bb-consent-prompt { margin: 2px 0 10px; font: 400 15px/1.4 Arial,sans-serif; color: #273f56; }
#bb-analytics-panel #bb-analytics-status { margin: 4px 0 10px; font: 400 14px/1.4 Arial,sans-serif; }
#bb-analytics-panel #bb-analytics-status:empty { display: none; }
#bb-analytics-panel .bb-consent-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
#bb-analytics-panel .bb-consent-actions button,
#bb-analytics-panel #bb-analytics-accept { display: block; width: 100%; min-height: 44px; padding: 7px 4px; font: 600 14px/1.2 Arial,sans-serif; background: #fff; color: #244976; border: 1px solid #244976; }
#bb-analytics-panel .bb-consent-actions button:hover, #bb-analytics-panel #bb-analytics-accept:hover { background: #edf2f7; }
@media(max-width:540px) {
  #bb-analytics-panel { padding: 10px 12px 12px; bottom: max(8px,env(safe-area-inset-bottom)); left: 8px; right: 8px; }
}
@media(max-width:270px) { #bb-analytics-panel .bb-consent-actions { grid-template-columns: 1fr; } }
