.go-consent-banner[hidden],
.go-consent-overlay[hidden],
.go-consent-reopen[hidden],
.go-consent-preferences[hidden] {
  display: none !important;
}

.go-consent-overlay {
  position: fixed;
  z-index: 999997;
  inset: 0;
  background: rgb(10 16 24 / 64%);
}

.go-consent-banner {
  position: fixed;
  z-index: 999998;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
  color: var(--go-consent-text, #17212b);
  background: var(--go-consent-background, #fff);
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgb(15 23 42 / 20%);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translate(-50%, -50%);
}

.go-consent-banner h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 20px;
  line-height: 1.25;
}

.go-consent-banner p {
  margin: 0 0 18px;
}

.go-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.go-consent-button {
  min-height: 42px;
  padding: 9px 13px;
  color: #17324d;
  background: #f2f5f8;
  border: 1px solid #d8e0e8;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.go-consent-button:hover,
.go-consent-button:focus-visible {
  border-color: #145da0;
  outline: 2px solid rgb(20 93 160 / 22%);
  outline-offset: 1px;
}

.go-consent-button--primary {
  color: var(--go-consent-button-text, #fff);
  background: var(--go-consent-button-background, #145da0);
  border-color: var(--go-consent-button-background, #145da0);
}

.go-consent-button--text {
  padding-inline: 5px;
  color: #145da0;
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}

.go-consent-preferences {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5eaf0;
}

.go-consent-preference {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
}

.go-consent-preference input {
  margin-top: 4px;
}

.go-consent-preference small {
  color: #526170;
}

.go-consent-preferences .go-consent-button {
  margin-top: 10px;
}

.go-consent-banner__logo {
  display: block;
  width: auto;
  max-width: min(180px, 100%);
  max-height: 72px;
  margin: 0 0 16px;
  object-fit: contain;
}

.go-consent-reopen {
  position: fixed;
  z-index: 999998;
  right: 20px;
  bottom: 20px;
  min-height: 42px;
  padding: 9px 14px;
  color: #fff;
  background: #145da0;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgb(15 23 42 / 20%);
  cursor: pointer;
  font: 600 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 520px) {
  .go-consent-banner {
    width: calc(100vw - 16px);
    max-height: 90vh;
    padding: 18px;
  }

  .go-consent-reopen {
    right: 12px;
    bottom: 12px;
  }
}
