/* Statistics choices are independent from contact/download form checkboxes. */
.smartitaly-analytics-banner {
  position: fixed;
  z-index: 100010;
  inset: auto 20px 20px;
  box-sizing: border-box;
  width: min(760px, calc(100% - 40px));
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 24px;
  color: #fff;
  background: #111618;
  border: 1px solid #62696e;
  border-top: 3px solid #d2f000;
  border-radius: 8px;
  box-shadow: 0 10px 40px #0004;
  font-family: inherit;
  text-align: left;
}

.smartitaly-analytics-banner[hidden],
.smartitaly-analytics-banner [hidden] {
  display: none !important;
}

.smartitaly-analytics-banner__title {
  margin: 0 0 8px;
  color: inherit;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
}

.smartitaly-analytics-banner__copy {
  margin: 0;
  color: #eee;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.smartitaly-analytics-banner__copy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.smartitaly-analytics-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.smartitaly-analytics-banner__actions button {
  flex: 1 1 180px;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  color: #fff;
  background: transparent;
  border: 1px solid #d2f000;
  border-radius: 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.smartitaly-analytics-banner__actions button:hover {
  color: #111618;
  background: #d2f000;
}

.smartitaly-analytics-banner button:focus-visible,
.smartitaly-analytics-banner a:focus-visible,
[data-smartitaly-analytics-preferences]:focus-visible {
  outline: 2px solid #ffb300;
  outline-offset: 4px;
}

.smartitaly-analytics-banner [data-smartitaly-analytics-status] {
  margin: 12px 0 0;
  color: #ddd;
  font-size: 13px;
  line-height: 1.45;
}

.smartitaly-analytics-banner [data-smartitaly-analytics-status]:empty {
  display: none;
}

[data-smartitaly-analytics-preferences] {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .smartitaly-analytics-banner {
    inset-inline: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 18px;
  }

  .smartitaly-analytics-banner__actions {
    gap: 8px;
  }

  .smartitaly-analytics-banner__actions button {
    flex-basis: 100%;
  }
}
