.analytics-notice[hidden], [data-analytics-settings][hidden] { display: none; }
.analytics-notice {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  width: min(560px, calc(100% - 40px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  background: var(--card-dark);
  color: var(--text-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  line-height: 1.5;
}
body.theme-light .analytics-notice {
  background: #fff;
  color: var(--text-dark);
  border-color: rgba(15, 19, 23, 0.08);
  box-shadow: 0 18px 40px rgba(15, 19, 23, 0.12);
}
.analytics-notice p { margin: 0 0 16px; font-size: 14px; }
.analytics-notice a, .form-note a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-notice a { color: var(--stroke-secondary); }
body.theme-light .analytics-notice a { color: #1A49FF; }
.analytics-notice-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.analytics-notice button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.analytics-notice button:focus-visible, [data-analytics-settings]:focus-visible, .form-consent input:focus-visible {
  outline: 2px solid var(--stroke-secondary);
  outline-offset: 3px;
}
body.theme-light .analytics-notice button:focus-visible,
body.theme-light [data-analytics-settings]:focus-visible,
body.theme-light .form-consent input:focus-visible { outline-color: #1A49FF; }
[data-analytics-settings] {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--stroke-secondary);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
body.theme-light [data-analytics-settings] { color: #1A49FF; }
.demo-form .form-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; line-height: 1.5; font-weight: 400; }
.demo-form .form-consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  margin: 2px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
body.theme-light .demo-form .form-consent input[type="checkbox"] {
  border-color: rgba(15, 19, 23, 0.4);
  background-color: #fff;
}
.demo-form .form-consent input[type="checkbox"]:checked,
body.theme-light .demo-form .form-consent input[type="checkbox"]:checked {
  border-color: #1A49FF;
  background-color: #1A49FF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}
.demo-form .form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--stroke-secondary);
  outline-offset: 3px;
}
body.theme-light .demo-form .form-consent input[type="checkbox"]:focus-visible {
  outline-color: #1A49FF;
}
@media (forced-colors: active) {
  .demo-form .form-consent input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
  }
}
.form-consent span { font-size: 14px; }
@media (max-width: 480px) {
  .analytics-notice { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px; }
  .analytics-notice-actions { gap: 8px; }
  .analytics-notice button { padding: 10px; }
}
