/* The invitation sits above the measured contact bar without covering it. */
body.site-v3 .analytics-banner[hidden],
body.site-v3 [data-analytics-settings][hidden] { display: none !important; }
body.site-v3 .analytics-banner,
body.site-v3 .analytics-dialog {
  color: #203c2b;
  background: #f5f3ec;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
}
body.site-v3 .analytics-banner {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: calc(16px + var(--analytics-bar-height, 0px));
  max-width: min(900px, calc(100% - 40px));
  max-height: calc(100dvh - var(--analytics-bar-height, 0px) - 32px);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 20px 24px;
  border: 1px solid #a7b3a3;
  border-radius: 10px;
  box-shadow: 0 8px 35px #14281c30;
}
body.site-v3 .analytics-banner > div:first-child { max-width: 820px; }
body.site-v3 .analytics-banner h2,
body.site-v3 .analytics-dialog h2 {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
body.site-v3 .analytics-banner p,
body.site-v3 .analytics-dialog p { margin: 0; font-size: 17px; line-height: 1.65; }
body.site-v3 .analytics-dialog p + p { margin-top: 16px; }
body.site-v3 .analytics-banner a,
body.site-v3 .analytics-dialog a { text-decoration: underline; text-underline-offset: 3px; }
body.site-v3 .analytics-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
body.site-v3 .analytics-actions button,
body.site-v3 [data-analytics-close] {
  appearance: none;
  border: 2px solid #203c2b;
  border-radius: 5px;
  background: #f5f3ec;
  color: #203c2b;
  font-family: inherit;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
  min-height: 48px;
  padding: 11px 18px;
  cursor: pointer;
}
body.site-v3 .analytics-actions button { min-width: 145px; }
body.site-v3 .analytics-actions button:hover,
body.site-v3 [data-analytics-close]:hover { background: #e2eadb; }
body.site-v3 .analytics-actions button:disabled { opacity: .6; cursor: not-allowed; }
body.site-v3 .analytics-settings-button {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  min-height: 44px;
}
body.site-v3 .analytics-dialog {
  position: fixed;
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 104px - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #203c2b;
  border-radius: 12px;
  box-shadow: 0 16px 70px #14281c40;
}
body.site-v3 .analytics-dialog::backdrop { background: #14281c80; }
body.site-v3 .analytics-dialog-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
body.site-v3 .analytics-dialog-heading h2 { margin: 5px 0 0; }
body.site-v3 .analytics-dialog .analytics-actions { margin-top: 24px; }
body.site-v3 .analytics-status { padding: 12px 14px; background: #e2eadb; border-left: 3px solid #203c2b; }
body.site-v3 .analytics-banner :focus-visible,
body.site-v3 .analytics-dialog :focus-visible,
body.site-v3 .analytics-settings-button:focus-visible { outline: 3px solid #476830; outline-offset: 4px; }
@media (max-width: 900px) {
  body.site-v3 .analytics-banner { align-items: stretch; flex-direction: column; max-width: 560px; }
  body.site-v3 .analytics-banner .analytics-actions { justify-content: flex-start; }
}
@media (max-width: 420px) {
  body.site-v3 .analytics-banner { right: 12px; max-width: calc(100% - 24px); padding: 16px; gap: 14px; }
  body.site-v3 .analytics-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
  body.site-v3 .analytics-actions button { width: 100%; min-width: 0; padding: 10px 8px; white-space: normal; }
}
@media print { .analytics-banner, .analytics-dialog, .analytics-settings-button { display: none !important; } }
