.tpg-analytics-notice {
  position: fixed;
  z-index: 19;
  left: 24px;
  bottom: 24px;
  width: min(410px, calc(100% - 48px));
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 18px 20px;
  border: 1px solid #bbb095;
  border-radius: 4px;
  background: #fffefa;
  color: #203b55;
  box-shadow: 0 5px 24px #102e2833;
  font-size: 14px;
  line-height: 1.45;
}

.tpg-analytics-notice h2 {
  margin: 0 0 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}

.tpg-analytics-notice p { margin: 0 0 10px; }
.tpg-analytics-notice a { color: inherit; text-decoration: underline; }

.tpg-analytics-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tpg-analytics-actions button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#tpg-analytics-preferences {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 740px) {
  .tpg-analytics-notice {
    left: 12px;
    bottom: 76px;
    width: calc(100% - 24px);
  }
}

@media print {
  .tpg-analytics-notice, #tpg-analytics-preferences { display: none; }
}
