/* ---- Bus Brothers cookie consent (Google Consent Mode v2) ---- */
#bb-consent, #bb-consent *, #bb-consent-modal, #bb-consent-modal * { box-sizing: border-box; }

#bb-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999999;
  background: #1c2430; color: #e9edf2;
  font-family: 'Lato', Arial, sans-serif; font-size: 14px; line-height: 1.55;
  box-shadow: 0 -6px 24px rgba(0,0,0,.28);
  padding: 18px 20px;
}
#bb-consent .bb-inner {
  max-width: 1170px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
}
#bb-consent .bb-text { flex: 1 1 420px; min-width: 240px; }
#bb-consent .bb-text b { color: #fff; }
#bb-consent a { color: #6ea8fe; text-decoration: underline; }
#bb-consent .bb-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#bb-consent button {
  font: inherit; cursor: pointer; border-radius: 4px; padding: 10px 18px;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
#bb-consent .bb-accept { background: #2f6fdb; color: #fff; border-color: #2f6fdb; font-weight: 700; }
#bb-consent .bb-accept:hover { background: #245bbf; border-color: #245bbf; }
#bb-consent .bb-reject { background: transparent; color: #e9edf2; border-color: #55606f; }
#bb-consent .bb-reject:hover { border-color: #8b96a5; }
#bb-consent .bb-settings { background: transparent; color: #b9c2cf; border-color: transparent; text-decoration: underline; padding: 10px 8px; }
#bb-consent .bb-settings:hover { color: #fff; }

/* ---- settings modal ---- */
#bb-consent-modal {
  position: fixed; inset: 0; z-index: 1000000; display: none;
  align-items: center; justify-content: center;
  background: rgba(8,12,18,.62); padding: 20px;
}
#bb-consent-modal.bb-open { display: flex; }
#bb-consent-modal .bb-dialog {
  background: #fff; color: #22303f; width: 100%; max-width: 560px;
  border-radius: 8px; overflow: hidden; font-family: 'Lato', Arial, sans-serif;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
#bb-consent-modal .bb-dialog-head {
  padding: 18px 24px; border-bottom: 1px solid #e6e9ee;
  display: flex; align-items: center; justify-content: space-between;
}
#bb-consent-modal h2 { margin: 0; font-size: 20px; color: #12233a; }
#bb-consent-modal .bb-close {
  background: none; border: 0; font-size: 26px; line-height: 1; color: #8a94a1;
  cursor: pointer; padding: 0 4px;
}
#bb-consent-modal .bb-close:hover { color: #22303f; }
#bb-consent-modal .bb-dialog-body { padding: 4px 24px; overflow-y: auto; }
#bb-consent-modal .bb-row { padding: 16px 0; border-bottom: 1px solid #eef1f4; display: flex; gap: 14px; align-items: flex-start; }
#bb-consent-modal .bb-row:last-child { border-bottom: 0; }
#bb-consent-modal .bb-row h3 { margin: 0 0 4px; font-size: 15px; color: #12233a; }
#bb-consent-modal .bb-row p { margin: 0; font-size: 13px; color: #5b6772; }
#bb-consent-modal .bb-dialog-foot { padding: 16px 24px; border-top: 1px solid #e6e9ee; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
#bb-consent-modal button.bb-accept, #bb-consent-modal button.bb-save { font: inherit; cursor: pointer; border-radius: 4px; padding: 10px 18px; border: 1px solid transparent; }
#bb-consent-modal .bb-accept { background: #2f6fdb; color: #fff; font-weight: 700; }
#bb-consent-modal .bb-accept:hover { background: #245bbf; }
#bb-consent-modal .bb-save { background: #eef1f4; color: #22303f; border-color: #d5dbe2; }
#bb-consent-modal .bb-save:hover { background: #e2e7ed; }

/* toggle switch */
#bb-consent-modal .bb-switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; margin-left: auto; }
#bb-consent-modal .bb-switch input { opacity: 0; width: 0; height: 0; }
#bb-consent-modal .bb-slider { position: absolute; inset: 0; background: #c4ccd6; border-radius: 26px; transition: .2s; cursor: pointer; }
#bb-consent-modal .bb-slider:before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
#bb-consent-modal input:checked + .bb-slider { background: #2f6fdb; }
#bb-consent-modal input:checked + .bb-slider:before { transform: translateX(20px); }
#bb-consent-modal input:disabled + .bb-slider { background: #2f6fdb; opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
  #bb-consent .bb-actions { width: 100%; }
  #bb-consent .bb-actions button { flex: 1 1 auto; text-align: center; }
  #bb-consent .bb-settings { flex-basis: 100%; }
}
