.gp-license-gate[hidden] {
  display: none !important;
}

html.gp-license-pending body > :not(.gp-license-gate),
html.gp-license-blocked body > :not(.gp-license-gate) {
  visibility: hidden !important;
}

.gp-license-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 16px 20px 22px;
  overflow: auto;
  visibility: visible !important;
  background: #f4f5f7;
  color: #17181a;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

html.gp-license-pending .gp-license-gate {
  place-items: end center;
}

.gp-license-gate-content {
  display: grid;
  grid-template-columns: 14px auto auto;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  width: min(760px, 100%);
  text-align: center;
}

.gp-license-gate-brand {
  display: none;
}

.gp-license-gate-indicator {
  grid-row: 1 / span 2;
  width: 12px;
  height: 12px;
  border: 1.5px solid #c9cdd5;
  border-top-color: #6e42e5;
  border-radius: 50%;
  animation: gp-license-spin 0.8s linear infinite;
}

.gp-license-gate-indicator.is-error {
  position: relative;
  border-color: #c83b44;
  animation: none;
}

.gp-license-gate-indicator.is-error::before,
.gp-license-gate-indicator.is-error::after {
  position: absolute;
  top: 4px;
  left: 1px;
  width: 7px;
  height: 1px;
  border-radius: 2px;
  background: #c83b44;
  content: "";
}

.gp-license-gate-indicator.is-error::before {
  transform: rotate(45deg);
}

.gp-license-gate-indicator.is-error::after {
  transform: rotate(-45deg);
}

.gp-license-gate-title {
  grid-column: 2;
  justify-self: start;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.gp-license-gate p {
  grid-column: 2;
  justify-self: start;
  max-width: 620px;
  margin: 0;
  color: #62666d;
  font-size: 14px;
  line-height: 1.35;
}

.gp-license-gate-retry {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-height: 28px;
  margin-left: 4px;
  border: 0;
  border-radius: 4px;
  padding: 5px 10px;
  background: #17181a;
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.gp-license-gate-retry:hover {
  background: #303238;
}

.gp-license-gate-retry:focus-visible {
  outline: 3px solid rgba(110, 66, 229, 0.35);
  outline-offset: 3px;
}

@keyframes gp-license-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .gp-license-gate {
    padding: 12px 14px 18px;
  }

  .gp-license-gate-content {
    grid-template-columns: 12px minmax(0, 1fr) auto;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gp-license-gate-indicator {
    animation-duration: 1.6s;
  }
}
