.consent-banner,
.consent-dialog {
  box-sizing: border-box;
  padding: 24px;
  font: 16px/1.5 "Mulish", sans-serif;
  color: #222;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
  box-shadow: 0 8px 40px rgb(0 0 0 / 20%);
}

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2147483000;
  width: min(680px, calc(100% - 32px));
  max-height: 70vh;
  margin-left: auto;
  overflow: auto;
}

.consent-banner[hidden] {
  display: none;
}

.consent-dialog {
  position: fixed;
  inset: 0;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
}

.consent-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.consent-title {
  margin: 0 0 12px;
  font: 700 22px/1.3 "Mulish", sans-serif;
}

.consent-intro,
.consent-category p {
  margin: 0 0 16px;
}

.consent-actions,
.consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
}

.consent-button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  font: 600 14px/1.4 "Mulish", sans-serif;
  color: #222;
  text-align: center;
  background: #fff;
  border: 1px solid #555;
  border-radius: 0;
  cursor: pointer;
}

.consent-button:hover {
  background: #eaf6d7;
}

.consent-button:focus-visible,
.consent-footer-link:focus-visible,
.consent-label input:focus-visible,
.consent-links a:focus-visible {
  outline: 3px solid #246b24;
  outline-offset: 3px;
}

.consent-footer-link {
  padding: 0;
  font: 500 16px/1.5 "Mulish", sans-serif;
  color: #a2a2a2;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.consent-footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .consent-footer-link {
    font-size: 12px;
  }
}

.consent-category {
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 700;
  cursor: pointer;
}

.consent-label input {
  appearance: auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #246b24;
}

.consent-links a {
  color: #235b19;
  text-decoration: underline;
}

.consent-error {
  color: #a01919;
}

.consent-error:empty {
  display: none;
}

@media (max-width: 480px) {
  .consent-banner,
  .consent-dialog {
    padding: 16px;
  }

  .consent-actions .consent-button {
    flex: 1 1 100%;
  }
}
