.cg-consent-banner,
.cg-consent-dialog,
.cg-consent-settings-trigger {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cg-consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem;
  color: #202124;
  background: #fff;
  border: 2px solid #202124;
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.25);
}

.cg-consent-banner[hidden],
.cg-consent-settings-trigger[hidden] {
  display: none;
}

.cg-consent-banner h2,
.cg-consent-dialog h2 {
  margin: 0 0 0.35rem;
  color: #111;
  font-size: 1.25rem;
  line-height: 1.25;
}

.cg-consent-banner p,
.cg-consent-dialog p {
  margin: 0;
  color: #3c4043;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cg-consent-banner a {
  display: inline-block;
  margin-top: 0.35rem;
  color: #202124;
  font-weight: 700;
}

.cg-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  gap: 0.65rem;
  flex: 0 0 auto;
}

.cg-consent-actions button,
.cg-consent-settings-trigger,
.cg-consent-close {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  color: #111;
  background: #ffd700;
  border: 2px solid #111;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.cg-consent-actions .cg-consent-secondary {
  grid-column: 1 / -1;
  background: #fff;
}

.cg-consent-actions button:hover,
.cg-consent-settings-trigger:hover {
  background: #ffe44d;
}

.cg-consent-actions button:focus-visible,
.cg-consent-settings-trigger:focus-visible,
.cg-consent-close:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.cg-consent-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: #202124;
  background: #fff;
  border: 2px solid #202124;
  border-radius: 0.8rem;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.35);
}

.cg-consent-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.cg-consent-dialog form {
  padding: 1.25rem;
}

.cg-consent-dialog__header,
.cg-consent-choice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cg-consent-close {
  min-width: 2.75rem;
  padding: 0.4rem;
  background: #fff;
}

.cg-consent-choice {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #aeb4ba;
  border-radius: 0.5rem;
}

.cg-consent-choice strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #111;
}

.cg-consent-choice input {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 auto;
  accent-color: #806c00;
}

.cg-consent-dialog__actions {
  margin-top: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cg-consent-settings-trigger {
  position: fixed;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 19000;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border-width: 1px;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .cg-consent-banner {
    align-items: stretch;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .cg-consent-actions,
  .cg-consent-dialog__actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .cg-consent-actions .cg-consent-secondary {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-consent-banner,
  .cg-consent-dialog,
  .cg-consent-settings-trigger {
    scroll-behavior: auto;
  }
}
