.wi-analytics-banner,
.wi-analytics-settings {
  box-sizing: border-box;
  position: fixed;
  font-family: Arial, sans-serif;
  color: #171717;
  background: #fff;
  border: 1px solid #d1d1cb;
  box-shadow: 0 3px 20px rgb(0 0 0 / 14%);
  z-index: 1100;
}
.wi-analytics-banner {
  left: 16px;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 90px);
  overflow: auto;
  padding: 22px;
  border-radius: 12px;
}
.wi-analytics-banner[hidden] { display: none !important; }
.wi-analytics-banner h2 {
  margin: 0 0 10px;
  color: #171717;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.wi-analytics-banner p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
}
.wi-analytics-banner a {
  color: #875000;
  font-size: 14px;
  text-decoration: underline;
}
.wi-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.wi-analytics-actions button {
  flex: 1 1 160px;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #171717;
  border-radius: 6px;
  color: #171717;
  background: #fff;
  font: 600 14px/1.3 Arial, sans-serif;
  cursor: pointer;
}
.wi-analytics-actions button:hover,
.wi-analytics-actions button:focus,
.wi-analytics-actions button:active {
  color: #171717;
  background: #f5efe7;
}
.wi-analytics-settings {
  left: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: 36px;
  max-width: calc(100% - 92px);
  margin: 0;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.wi-analytics-settings:hover,
.wi-analytics-settings:focus,
.wi-analytics-settings:active {
  color: #171717;
  background: #fff;
}
.wi-analytics-actions button:focus-visible,
.wi-analytics-settings:focus-visible,
.wi-analytics-banner a:focus-visible {
  outline: 3px solid #a8550a;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .wi-analytics-banner { left: 12px; width: calc(100% - 24px); padding: 18px; }
  .wi-analytics-settings { left: 12px; }
  body.wi-analytics-prompt a.wi-whatsapp {
    bottom: calc(var(--wi-analytics-height, 300px) + 70px + env(safe-area-inset-bottom, 0px));
  }
}
