.gh-cerez-banner {
  --gh-cerez-bg: #fff;
  --gh-cerez-text: #1f2933;
  --gh-cerez-border: #d7dde5;
  --gh-cerez-primary: #165dcc;
  --gh-cerez-bottom-desktop: 16px;
  --gh-cerez-bottom-mobile: 72px;
  position: fixed;
  left: 50%;
  bottom: var(--gh-cerez-bottom-desktop);
  z-index: 2147483000;
  width: min(960px, calc(100% - 32px));
  transform: translateX(-50%);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--gh-cerez-text);
  background: var(--gh-cerez-bg);
  border: 1px solid var(--gh-cerez-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  font-size: 14px;
  line-height: 1.45;
}

.gh-cerez-banner *,
.gh-cerez-banner *::before,
.gh-cerez-banner *::after {
  box-sizing: border-box;
}

.gh-cerez-copy p {
  margin: 0;
}

.gh-cerez-links {
  margin-top: 4px !important;
  font-size: 13px;
}

.gh-cerez-links a,
.gh-cerez-linkbtn {
  color: var(--gh-cerez-primary);
  text-decoration: underline;
}

.gh-cerez-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.gh-cerez-btn,
.gh-cerez-floating,
.gh-cerez-open-preferences {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--gh-cerez-text, #1f2933);
  background: #fff;
  border: 1px solid var(--gh-cerez-border, #d7dde5);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.gh-cerez-primary {
  color: #fff;
  background: var(--gh-cerez-primary);
  border-color: var(--gh-cerez-primary);
}

.gh-cerez-panel {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--gh-cerez-border);
}

.gh-cerez-panel fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.gh-cerez-panel legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.gh-cerez-panel label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gh-cerez-linkbtn {
  min-height: 40px;
  margin-left: 8px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.gh-cerez-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482999;
  min-height: 34px;
  padding: 6px 10px;
  color: #1f2933;
  background: #fff;
  border-color: #d7dde5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  font-size: 12px;
}

html body #gh-cerez-root {
  --gh-cerez-css-loaded: 1;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body #gh-cerez-root > .gh-cerez-banner {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  bottom: var(--gh-cerez-bottom-desktop) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2147483000 !important;
}

html body #gh-cerez-debug-panel {
  position: fixed !important;
  top: 12px !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 2147483001 !important;
  width: min(430px, calc(100% - 24px)) !important;
  max-height: calc(100vh - 24px) !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  color: #1f2933 !important;
  background: #fff !important;
  border: 2px solid #165dcc !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2) !important;
  font: 12px/1.4 Arial, sans-serif !important;
  text-align: left !important;
}

html body #gh-cerez-debug-panel dl,
html body #gh-cerez-debug-panel dd {
  margin: 0 !important;
}

html body #gh-cerez-debug-panel > strong {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

html body #gh-cerez-debug-panel dl > div {
  display: grid !important;
  grid-template-columns: 145px minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 4px 0 !important;
  border-top: 1px solid #e2e4e7 !important;
}

html body #gh-cerez-debug-panel dt {
  font-weight: 700 !important;
}

html body #gh-cerez-debug-panel dd {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.gh-cerez-btn:focus-visible,
.gh-cerez-floating:focus-visible,
.gh-cerez-open-preferences:focus-visible,
.gh-cerez-linkbtn:focus-visible,
.gh-cerez-links a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gh-cerez-primary, #165dcc) 45%, transparent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .gh-cerez-banner {
    bottom: var(--gh-cerez-bottom-mobile);
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  html body #gh-cerez-root > .gh-cerez-banner {
    bottom: var(--gh-cerez-bottom-mobile) !important;
  }

  .gh-cerez-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gh-cerez-btn {
    width: 100%;
  }

  .gh-cerez-linkbtn {
    width: 100%;
    margin: 6px 0 0;
    text-align: center;
  }

  .gh-cerez-floating {
    right: 10px;
    bottom: 10px;
  }
}
