.lg-consent-banner[hidden],
.lg-consent-footer[hidden],
.lg-consent-error[hidden] {
  display: none;
}

.lg-consent-banner,
.lg-consent-dialog {
  box-sizing: border-box;
  background: #fff;
  color: #1f2937;
  font: 1rem/1.5 system-ui, sans-serif;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 12px 38px rgb(17 24 39 / 16%);
}

.lg-consent-banner {
  position: fixed;
  z-index: 9999;
  inset: auto 16px 16px;
  max-width: 62rem;
  max-height: 75vh;
  max-height: 75dvh;
  overflow: auto;
  margin-inline: auto;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.lg-consent-dialog {
  width: min(34rem, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 22px;
}

.lg-consent-dialog::backdrop {
  background: rgb(17 24 39 / 55%);
}

.lg-consent-copy {
  flex: 1 1 19rem;
}

.lg-consent-copy h2 {
  color: inherit;
  font: 700 1.2rem/1.3 system-ui, sans-serif;
  margin: 0 0 5px;
}

.lg-consent-copy p,
.lg-consent-category p {
  margin: 0 0 6px;
}

.lg-consent-copy a,
.lg-consent-footer button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lg-consent-copy a {
  color: #1e40af;
}

.lg-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-consent-actions button,
.lg-consent-footer button {
  background: #fff;
  color: #1f2937;
  border: 1px solid #9ca3af;
  border-radius: 6px;
  box-shadow: none;
  min-height: 44px;
  padding: 8px 13px;
  font: 600 .875rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}

.lg-consent-actions button:hover,
.lg-consent-footer button:hover {
  background: #f3f4f6;
}

.lg-consent-actions .lg-consent-primary,
.lg-consent-banner [data-lg-consent-action="reject"] {
  color: #fff;
  background: #1f2937;
  border-color: #1f2937;
}

.lg-consent-actions .lg-consent-primary:hover,
.lg-consent-banner [data-lg-consent-action="reject"]:hover {
  background: #374151;
}

.lg-consent-banner :focus-visible,
.lg-consent-dialog :focus-visible,
.lg-consent-footer :focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

.lg-consent-category {
  display: block;
  padding-block: 12px;
  border-top: 1px solid #e5e7eb;
}

.lg-consent-category small {
  display: block;
  color: #374151;
  font-size: .875rem;
}

.lg-consent-category p span {
  font-size: .875rem;
  color: #374151;
}

.lg-consent-choice {
  display: flex;
  align-items: baseline;
  gap: 9px;
  cursor: pointer;
}

.lg-consent-choice input {
  appearance: auto;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
}

.lg-consent-error {
  flex-basis: 100%;
  color: #991b1b;
  margin: 8px 0 0;
}

.lg-consent-footer {
  text-align: center;
  padding: 8px;
}

@media (max-width: 520px) {
  .lg-consent-banner {
    inset-inline: 10px;
    bottom: 10px;
    padding: 14px;
  }
}
