.lobo-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 10000;
  color: #f8fafc;
  font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

.lobo-consent__banner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 51, 51, 0.34);
  border-radius: 18px;
  background: rgba(6, 6, 6, 0.96);
  box-shadow: 8px 8px 0 0 rgba(68, 8, 13, 0.72), 0 22px 80px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(18px);
}

.lobo-consent__eyebrow {
  margin: 0 0 6px;
  color: #ff3333;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lobo-consent__title {
  margin: 0;
  color: #ffffff;
  font-family: "Cinzel", "Share Tech Mono", serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.lobo-consent__text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.lobo-consent__text a {
  color: #ff7d85;
  font-weight: 700;
  text-decoration: none;
}

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

.lobo-consent__btn {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lobo-consent__btn:hover,
.lobo-consent__btn:focus-visible {
  border-color: rgba(255, 51, 51, 0.8);
  outline: none;
  transform: translateY(-1px);
}

.lobo-consent__btn--primary {
  border-color: #ff3333;
  background: #ff3333;
  color: #080808;
}

.lobo-consent__btn--primary:hover,
.lobo-consent__btn--primary:focus-visible {
  background: #ff6b6b;
  color: #050505;
}

.lobo-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  color: #f8fafc;
  font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.lobo-consent-modal__panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  scrollbar-color: rgba(255, 51, 51, 0.82) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  border: 1px solid rgba(255, 51, 51, 0.34);
  border-radius: 24px;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 8px 8px 0 0 rgba(68, 8, 13, 0.7), 0 30px 110px rgba(0, 0, 0, 0.62);
}

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

.lobo-consent-modal__panel::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255, 51, 51, 0.08), rgba(255, 255, 255, 0.03));
  border-left: 1px solid rgba(255, 51, 51, 0.12);
  border-radius: 0 24px 24px 0;
}

.lobo-consent-modal__panel::-webkit-scrollbar-thumb {
  min-height: 52px;
  border: 3px solid #080808;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 51, 51, 0.95), rgba(177, 15, 27, 0.7));
}

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

.lobo-consent-modal__head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lobo-consent-modal__head h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Cinzel", "Share Tech Mono", serif;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.lobo-consent-modal__head p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.lobo-consent-modal__close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

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

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

.lobo-consent-category h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Cinzel", "Share Tech Mono", serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.lobo-consent-category p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.55;
}

.lobo-consent-required {
  color: #ff7d85;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

.lobo-consent-switch span {
  width: 54px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.lobo-consent-switch span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms ease, background 160ms ease;
}

.lobo-consent-switch input:checked + span {
  border-color: #ff3333;
  background: #ff3333;
}

.lobo-consent-switch input:checked + span::before {
  transform: translateX(24px);
  background: #080808;
}

.lobo-consent-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .lobo-consent {
    inset: auto 10px 10px 10px;
  }

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

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

  .lobo-consent__btn {
    flex: 1 1 auto;
  }

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