.lobo-consent,
.lobo-consent-modal {
  font-family: "Press Start 2P", monospace;
  color: #0b1026;
}

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

.lobo-consent {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 10000;
  width: min(720px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.lobo-consent__banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 4px solid #000;
  background: #ffffff;
  box-shadow: 6px 6px 0 #e94560, 0 0 0 4px rgba(255, 215, 0, 0.22);
  pointer-events: auto;
}

.lobo-consent__eyebrow {
  margin: 0 0 8px;
  color: #e94560;
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
}

.lobo-consent__title {
  margin: 0;
  color: #0b1026;
  font-size: 12px;
  line-height: 1.6;
}

.lobo-consent__text {
  margin: 10px 0 0;
  color: #25324f;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.55;
}

.lobo-consent__text a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: underline;
}

.lobo-consent__actions,
.lobo-consent-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.lobo-consent__btn {
  min-height: 42px;
  border: 4px solid #000;
  padding: 0 14px;
  background: #ffffff;
  color: #0b1026;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.34);
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.lobo-consent__btn:hover,
.lobo-consent__btn:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.45);
  outline-offset: 2px;
}

.lobo-consent__btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.34);
}

.lobo-consent__btn--primary {
  background: #ffd700;
  color: #000000;
}

.lobo-consent__btn--danger {
  background: #ff3b3b;
  color: #ffffff;
}

.lobo-consent__btn--blue {
  background: #5b8cff;
  color: #ffffff;
}

.lobo-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 14, 31, 0.82);
}

.lobo-consent-modal__panel {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border: 5px solid #000000;
  background: #ffffff;
  box-shadow: 8px 8px 0 #e94560, 0 0 0 4px rgba(255, 215, 0, 0.25);
  scrollbar-color: #ffd700 #10172f;
  scrollbar-width: thin;
}

.lobo-consent-modal__panel::-webkit-scrollbar {
  width: 12px;
}

.lobo-consent-modal__panel::-webkit-scrollbar-track {
  background: #10172f;
}

.lobo-consent-modal__panel::-webkit-scrollbar-thumb {
  border: 3px solid #10172f;
  background: #ffd700;
}

.lobo-consent-modal__head,
.lobo-consent-modal__body,
.lobo-consent-modal__foot {
  padding: 18px;
}

.lobo-consent-modal__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 4px solid #000000;
}

.lobo-consent-modal__head h2 {
  margin: 0;
  color: #0b1026;
  font-size: 14px;
  line-height: 1.6;
}

.lobo-consent-modal__head p {
  margin: 10px 0 0;
  color: #25324f;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
}

.lobo-consent-modal__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 4px solid #000000;
  background: #ff3b3b;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.34);
}

.lobo-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 3px solid #0b1026;
}

.lobo-consent-category:last-child {
  border-bottom: 0;
}

.lobo-consent-category h3 {
  margin: 0;
  color: #0b1026;
  font-size: 12px;
  line-height: 1.4;
}

.lobo-consent-category p {
  margin: 8px 0 0;
  color: #25324f;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.55;
}

.lobo-consent-required {
  color: #e94560;
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: right;
}

.lobo-consent-switch {
  position: relative;
  width: 64px;
  height: 34px;
  display: inline-flex;
}

.lobo-consent-switch input {
  position: absolute;
  opacity: 0;
}

.lobo-consent-switch span {
  width: 64px;
  height: 34px;
  border: 4px solid #000000;
  background: #d8dee9;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.34);
}

.lobo-consent-switch span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.18);
  transition: transform 120ms ease;
}

.lobo-consent-switch input:checked + span {
  background: #ffd700;
}

.lobo-consent-switch input:checked + span::after {
  transform: translateX(30px);
  background: #111827;
}

@media (max-width: 760px) {
  .lobo-consent {
    width: calc(100vw - 20px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  .lobo-consent__banner {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .lobo-consent__actions,
  .lobo-consent-modal__foot {
    justify-content: stretch;
  }

  .lobo-consent__btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 10px;
    font-size: 9px;
  }

  .lobo-consent-category {
    grid-template-columns: 1fr;
  }

  .lobo-consent-required {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .lobo-consent__title,
  .lobo-consent-category h3 {
    font-size: 10px;
  }

  .lobo-consent__text,
  .lobo-consent-category p,
  .lobo-consent-modal__head p {
    font-size: 11px;
  }

  .lobo-consent-modal__head,
  .lobo-consent-modal__body,
  .lobo-consent-modal__foot {
    padding: 14px;
  }
}
