.jmf-consent,
.jmf-consent * {
  box-sizing: border-box;
}

.jmf-consent {
  --jmf-yellow: #ffe600;
  --jmf-black: #111111;
  --jmf-paper: #fffdf3;
  --jmf-muted: #625f55;
  position: fixed;
  z-index: 2147483000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--jmf-black);
}

.jmf-consent-banner {
  right: 18px;
  bottom: 18px;
  width: min(620px, calc(100vw - 36px));
  padding: 22px;
  border: 3px solid var(--jmf-black);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 230, 0, .48), transparent 29%),
    var(--jmf-paper);
  box-shadow: 8px 8px 0 var(--jmf-black), 0 22px 70px rgba(0, 0, 0, .28);
}

.jmf-consent-banner[hidden],
.jmf-consent-modal[hidden] {
  display: none !important;
}

.jmf-consent-kicker {
  display: inline-flex;
  margin: 0 0 9px;
  padding: 5px 9px;
  background: var(--jmf-yellow);
  border: 2px solid var(--jmf-black);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.jmf-consent-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: .98;
  letter-spacing: -.045em;
}

.jmf-consent-copy {
  margin: 12px 0 0;
  color: #3e3c36;
  font-size: 15px;
  line-height: 1.5;
}

.jmf-consent-copy a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jmf-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.jmf-consent-button {
  appearance: none;
  min-height: 44px;
  padding: 10px 15px;
  border: 2px solid var(--jmf-black);
  border-radius: 999px;
  background: #fff;
  color: var(--jmf-black);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.jmf-consent-button:hover,
.jmf-consent-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--jmf-black);
  outline: none;
}

.jmf-consent-button--primary {
  background: var(--jmf-yellow);
}

.jmf-consent-button--dark {
  background: var(--jmf-black);
  color: #fff;
}

.jmf-consent-settings {
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--jmf-black);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .28);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}

.jmf-consent-settings:hover,
.jmf-consent-settings:focus-visible {
  background: var(--jmf-yellow);
  border-color: var(--jmf-black);
  color: var(--jmf-black);
  outline: none;
}

.jmf-consent-modal {
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(5px);
}

.jmf-consent-dialog {
  position: relative;
  width: min(650px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(23px, 5vw, 38px);
  border: 3px solid var(--jmf-black);
  border-radius: 20px;
  background: var(--jmf-paper);
  box-shadow: 10px 10px 0 var(--jmf-yellow);
}

.jmf-consent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 2px solid var(--jmf-black);
  border-radius: 50%;
  background: #fff;
  color: var(--jmf-black);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.jmf-consent-options {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.jmf-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--jmf-black);
  border-radius: 14px;
  background: #fff;
}

.jmf-consent-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.jmf-consent-option span {
  display: block;
  color: var(--jmf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.jmf-consent-toggle {
  appearance: none;
  position: relative;
  width: 52px;
  height: 30px;
  border: 2px solid var(--jmf-black);
  border-radius: 999px;
  background: #d8d6cf;
  cursor: pointer;
}

.jmf-consent-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--jmf-black);
  transition: transform .18s ease;
}

.jmf-consent-toggle:checked {
  background: var(--jmf-yellow);
}

.jmf-consent-toggle:checked::after {
  transform: translateX(22px);
}

.jmf-consent-toggle:disabled {
  opacity: .75;
  cursor: not-allowed;
}

.jmf-consent-toggle:focus-visible {
  outline: 3px solid #6848a6;
  outline-offset: 3px;
}

body.jmf-consent-lock {
  overflow: hidden !important;
}

@media (max-width: 620px) {
  .jmf-consent-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 18px;
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--jmf-black), 0 18px 50px rgba(0, 0, 0, .25);
  }

  .jmf-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .jmf-consent-button--primary {
    grid-column: 1 / -1;
    order: -1;
  }

  .jmf-consent-settings {
    left: 8px;
    bottom: 8px;
    font-size: 11px;
  }

  .jmf-consent-dialog {
    max-height: calc(100vh - 20px);
    padding: 24px 18px 20px;
  }

  .jmf-consent-option {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jmf-consent-button,
  .jmf-consent-toggle::after {
    transition: none;
  }
}
