#gj-cookie-dialog {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 1000;
  box-sizing: border-box;
  width: auto;
  max-width: 540px;
  max-height: min(28dvh, 180px);
  margin: 0;
  padding: 9px 12px 8px;
  overflow: auto;
  color: var(--ink, #23302f);
  background: var(--paper, #faf9f5);
  border: 1px solid var(--line, #e7e4dc);
  border-radius: 12px;
  box-shadow: 0 10px 36px #0002;
  font: 12px/1.32 system-ui, sans-serif;
}

.gj-cookie-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gj-cookie-heading h2 {
  margin: 0;
  font: 600 16px/1.2 Georgia, serif;
}

.gj-cookie-heading button {
  flex: 0 0 auto;
  padding: 0 4px;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#gj-cookie-description {
  margin: 4px 0;
  font-size: 11px;
}

.gj-cookie-links {
  margin: 0 0 4px;
  font-size: 10px;
}

.gj-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gj-cookie-actions button,
[data-gj-open] {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.gj-cookie-actions button {
  flex: 1 1 220px;
  min-height: 36px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--accent, #4e806c);
  border-radius: 6px;
}

.gj-cookie-actions button[data-gj-choice="accepted"] {
  color: #fff;
  background: var(--accent, #4e806c);
}

.gj-cookie-actions button:disabled {
  opacity: .6;
  cursor: wait;
}

.gj-cookie-state,
#gj-cookie-message {
  margin: 5px 0 0;
  color: var(--muted, #657371);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.gj-legal-links {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 13px;
}

.gj-legal-links a,
.gj-legal-links button {
  overflow-wrap: anywhere;
}

.gj-legal-links button {
  padding: 0;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner {
  flex-wrap: wrap;
}

.post-content code {
  overflow-wrap: anywhere;
}

.post-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.gj-noscript {
  padding-block: 12px;
  font-size: 13px;
}

#gj-cookie-message:empty {
  display: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent, #4e806c);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  #gj-cookie-dialog {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    max-height: min(32dvh, 210px);
    padding: 8px 10px 7px;
    border-radius: 10px;
  }

  .gj-cookie-heading h2 {
    font-size: 16px;
  }

  #gj-cookie-description {
    margin: 4px 0;
    font-size: 11px;
  }

  .gj-cookie-actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .gj-cookie-actions button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 5px 6px;
    font-size: 10px;
  }

  .gj-legal-links {
    gap: 8px 12px;
    font-size: 12px;
  }
}
