#mond-consent-open {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}

.mond-consent {
  --consent-ink: #0c0c0d;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 10px;
  color: var(--consent-ink);
  color-scheme: light;
  background: #f5f5f7;
  box-shadow: 0 3px 14px rgb(12 12 13 / 10%);
  font: 400 14px/1.45 var(--font);
  letter-spacing: normal;
  text-align: left;
  overflow: auto;
  overscroll-behavior: contain;
  max-height: calc(100dvh - 24px);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .mond-consent {
    background: rgb(247 247 249 / 55%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    backdrop-filter: blur(24px) saturate(120%);
  }
}
.mond-consent[hidden] { display: none; }
#mond-consent-prompt {
  position: fixed;
  z-index: 100000;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(390px, calc(100% - 24px));
}
#mond-consent-settings {
  width: min(420px, calc(100% - 24px));
  margin: auto;
  padding: 16px;
  font-size: 12px;
  line-height: 1.5;
}
#mond-consent-settings::backdrop { background: rgb(12 12 13 / 36%); }
.mond-consent h2 { margin: 0 0 8px; font: 600 20px/1.2 var(--font); }
.mond-consent p { margin: 0 0 12px; }
#mond-consent-settings h2 { margin-bottom: 6px; font-size: 17px; }
#mond-consent-settings p { margin-bottom: 8px; }
#mond-consent-settings strong,
#mond-consent-settings button { font-size: 13px; }
.mond-consent-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mond-consent button {
  min-height: 44px;
  flex: 1 1 auto;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: rgb(220 218 230 / 65%);
  color: var(--consent-ink);
  font: inherit;
  cursor: pointer;
}
.mond-consent button[type="submit"] { background: var(--accent); }
.mond-consent button:hover { background: var(--consent-ink); color: #fefefe; }
.mond-consent :focus-visible,
#mond-consent-open:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mond-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 5px 0;
}
.mond-consent-category strong,
.mond-consent-category span span { display: block; }
.mond-consent-category input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--consent-ink);
}
.mond-consent-policy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
}

/* owner request: smaller, centred prompt; blue / black / grey buttons */
#mond-consent-prompt { top: auto; left: 50%; right: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(300px, calc(100% - 24px)); padding: 12px; font-size: 11px; line-height: 1.25; text-align: left; box-shadow: 0 10px 40px rgb(12 12 13 / 18%); }
#mond-consent-prompt h2 { margin-bottom: 4px; font-size: 13px; }
#mond-consent-prompt p { margin-bottom: 18px; line-height: 1.25; }
#mond-consent-prompt .mond-consent-actions { justify-content: flex-start; }
#mond-consent-prompt button { flex: 0 0 auto; min-height: 30px; font-size: 11px; }
#mond-consent-settings { width: min(340px, calc(100% - 24px)); margin: auto auto max(12px, env(safe-area-inset-bottom)); font-size: 10px; line-height: 1.25; text-align: left; }
#mond-consent-settings p { line-height: 1.25; }
#mond-consent-settings .mond-consent-actions { margin-top: 18px; justify-content: flex-start; }
#mond-consent-settings h2 { font-size: 13px; }
#mond-consent-settings strong, #mond-consent-settings button { font-size: 11px; }
.mond-consent button { min-height: 34px; padding: 4px 10px; font-size: 12px; font-weight: 500; transition: filter .15s ease; }
.mond-consent button[data-choice="accept"], .mond-consent button[type="submit"] { background: var(--accent); color: #0c0c0d; }
.mond-consent button[data-choice="reject"] { background: #0c0c0d; color: #fefefe; }
.mond-consent button[data-choice="manage"], .mond-consent button[data-close] { background: #dcdce0; color: #0c0c0d; }
.mond-consent button:hover { filter: brightness(.93); }
.mond-consent button[data-choice="reject"]:hover { filter: none; background: #38383c; }
.mond-consent button[type="submit"]:hover, .mond-consent button[data-choice="accept"]:hover { background: var(--accent); color: #0c0c0d; }
.mond-consent button[data-choice="manage"]:hover, .mond-consent button[data-close]:hover { background: #dcdce0; color: #0c0c0d; }
@media (max-width: 899px) { .mond-consent button, #mond-consent-prompt button { min-height: 36px; } }
