#agpc-banner[hidden], #agpc-modal[hidden] { display: none !important; }

/* Compact, quiet consent notice */
.agpc-banner {
  position: fixed;
  z-index: 2147483647;
  left: 50%;
  bottom: 22px;
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px 16px;
  transform: translateX(-50%);
  border: 1px solid #d9e2e1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  color: #293534;
  box-shadow: 0 8px 28px rgba(24, 39, 38, .13);
  font: 14px/1.4 Inter, Arial, sans-serif;
}
.agpc-banner__text p { margin: 0; color: #56615f; font-size: 13px; }
.agpc-banner a, .agpc-modal a { color: #35716d; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.agpc-banner__actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-top: 12px; }
.agpc-banner .agpc-button {
  appearance: none;
  flex: 0 0 auto;
  border-radius: 5px;
  padding: 8px 10px;
  font: 600 12px/1.2 Inter, Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.agpc-banner .agpc-button--primary { border: 1px solid #9fc9c5; background: #e5f3f1; color: #245c58; }
.agpc-banner .agpc-button--primary:hover { border-color: #79aaa6; background: #d6ebe8; }
.agpc-banner .agpc-button--secondary { border: 1px solid #d2dcda; background: #fff; color: #4a5654; }
.agpc-banner .agpc-button--secondary:hover { border-color: #aab9b7; background: #f7f9f8; }
.agpc-banner .agpc-link-button { appearance: none; border: 0; background: transparent; color: #6d7675; padding: 5px 1px; font: 12px/1.2 Inter, Arial, sans-serif !important; letter-spacing: normal !important; text-transform: none !important; text-decoration: underline; cursor: pointer; white-space: nowrap; }

/* Settings dialog */
.agpc-modal { position: fixed; inset: 0; z-index: 2147483647; font: 14px/1.48 Inter, Arial, sans-serif; }
.agpc-modal__backdrop { position: absolute; inset: 0; background: rgba(25, 35, 34, .25); }
.agpc-modal__box {
  position: relative;
  box-sizing: border-box;
  width: min(440px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
  margin: 11vh auto;
  padding: 22px;
  border: 1px solid #dce5e3;
  border-radius: 10px;
  background: #fff;
  color: #293534;
  box-shadow: 0 12px 38px rgba(19, 31, 30, .18);
}
.agpc-modal__box h2 { margin: 0 30px 9px 0; color: #1d2a29; font-size: 19px; line-height: 1.25; }
.agpc-modal__box > p { color: #596361; font-size: 13px; }
.agpc-modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: #6d7775; font-size: 26px; line-height: 1; cursor: pointer; }
.agpc-choice { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid #e7edeb; cursor: pointer; }
.agpc-choice input { margin-top: 4px; accent-color: #4e918b; }
.agpc-choice span { color: #596361; font-size: 13px; }.agpc-choice strong { color: #293534; }
.agpc-modal__policy { margin: 13px 0; }
.agpc-modal .agpc-button { text-transform: none !important; }

/* Keep the contact widget from covering the consent notice before a choice is made. */
.agpc-consent-pending #bit-assist-widget-container { visibility: hidden !important; pointer-events: none !important; }

/* Counteract the theme's list-marker styles in the policy table of contents. */
body .ag-privacy__toc, body .ag-privacy__toc li { list-style: none !important; }
body .ag-privacy__toc li { display: block !important; margin: 0 !important; padding: 0 !important; }
body .ag-privacy__toc li::before, body .ag-privacy__toc li::marker { display: none !important; content: none !important; }

@media (max-width: 520px) {
  .agpc-banner { bottom: 10px; width: calc(100vw - 20px); padding: 13px; }
  .agpc-banner__actions { flex-wrap: wrap; gap: 7px; margin-top: 10px; }
  .agpc-modal__box { margin: 15px auto; padding: 20px; }
}
