#pravdok-ga4[hidden], #pravdok-ga4-panel[hidden] { display: none; }

.pravdok-ga4-settings {
  display: block;
  margin: .5rem auto 1rem;
  border: 0;
  background: transparent;
  color: #17446a;
  font: inherit;
  padding: .5rem .8rem;
  text-decoration: underline;
  cursor: pointer;
}

.pravdok-ga4-panel {
  position: fixed;
  z-index: 100;
  inset-inline-start: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(26rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid #bac9d6;
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 .5rem 1.5rem #0b284426;
  color: #16293c;
  font: inherit;
  font-size: .9rem;
  line-height: 1.5;
}

.pravdok-ga4-panel h2 { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.3; color: inherit; }
.pravdok-ga4-panel p { margin: 0 0 .65rem; }
.pravdok-ga4-panel a { color: #17446a; text-decoration: underline; }
.pravdok-ga4-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .45rem; }

.pravdok-ga4-actions button {
  border: 1px solid #17446a;
  border-radius: .45rem;
  background: #fff;
  color: #17446a;
  font: inherit;
  padding: .48rem .75rem;
  min-height: 44px;
  cursor: pointer;
}

.pravdok-ga4-actions button:hover { background: #edf4fa; }
#pravdok-ga4 :focus-visible { outline: 2px solid #17446a; outline-offset: 2px; }
