.vgame-consent {
  position: relative;
  z-index: 99999;
  font-family: inherit;
}

.vgame-consent [hidden] {
  display: none !important;
}

.vgame-consent__panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  width: min(calc(100% - 32px), 560px);
  max-height: min(80vh, 620px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 38px rgb(15 23 42 / 24%);
  color: #17213a;
  line-height: 1.55;
}

.vgame-consent__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vgame-consent__heading h2 {
  margin: 0 0 12px;
  color: #17213a;
  font-size: 1.2rem;
  line-height: 1.3;
}

.vgame-consent__panel p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.vgame-consent__panel a {
  color: #164aa0;
  text-decoration: underline;
}

.vgame-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.vgame-consent__button,
.vgame-consent__open,
.vgame-consent__close {
  min-height: 44px;
  border: 1px solid #33466a;
  border-radius: 8px;
  background: #fff;
  color: #17213a;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.vgame-consent__button {
  padding: 9px 16px;
}

.vgame-consent__button--primary {
  border-color: #203c88;
  background: #203c88;
  color: #fff;
}

.vgame-consent__close {
  flex: 0 0 44px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.vgame-consent__open {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 8px 14px;
  background: #17213a;
  color: #fff;
  box-shadow: 0 4px 14px rgb(15 23 42 / 20%);
}

.vgame-consent :is(button, a):focus-visible {
  outline: 3px solid #124895;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

@media (max-width: 480px) {
  .vgame-consent__panel {
    padding: 16px;
    max-height: min(75vh, 620px);
  }

  .vgame-consent__actions {
    flex-direction: column;
  }

  .vgame-consent__button {
    width: 100%;
  }
}
