.lobo-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 10000;
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.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(250, 204, 21, 0.24);
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 8px 8px 0 0 rgba(87, 87, 87, 0.42), 0 22px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

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

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

.lobo-consent__text {
  margin: 8px 0 0;
  color: #b6b6b6;
  font-size: 0.9rem;
  line-height: 1.55;
}

.lobo-consent__text a {
  color: #facc15;
  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: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lobo-consent__btn:hover,
.lobo-consent__btn:focus-visible {
  border-color: rgba(250, 204, 21, 0.68);
  outline: none;
}

.lobo-consent__btn--primary {
  border-color: #facc15;
  background: #facc15;
  color: #050505;
}

.lobo-consent__btn--primary:hover,
.lobo-consent__btn--primary:focus-visible {
  background: #fde047;
  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.76);
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lobo-consent-modal__panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  scrollbar-color: rgba(250, 204, 21, 0.75) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  border: 1px solid rgba(250, 204, 21, 0.24);
  border-radius: 26px;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 8px 8px 0 0 rgba(87, 87, 87, 0.36), 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(250, 204, 21, 0.08), rgba(255, 255, 255, 0.03));
  border-left: 1px solid rgba(250, 204, 21, 0.1);
  border-radius: 0 26px 26px 0;
}

.lobo-consent-modal__panel::-webkit-scrollbar-thumb {
  min-height: 52px;
  border: 3px solid #080808;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.95), rgba(250, 204, 21, 0.48));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lobo-consent-modal__panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fde047, rgba(250, 204, 21, 0.72));
}

.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", serif;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.lobo-consent-modal__head p {
  margin: 8px 0 0;
  color: #b6b6b6;
  font-size: 0.92rem;
  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", serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.lobo-consent-category p {
  margin: 6px 0 0;
  color: #a7a7a7;
  font-size: 0.88rem;
  line-height: 1.55;
}

.lobo-consent-required {
  color: #facc15;
  font-size: 0.8rem;
  font-weight: 800;
  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.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

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

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

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

.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);
}

button[data-cookie-preferences] {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

button[data-cookie-preferences]:hover,
button[data-cookie-preferences]:focus-visible {
  color: #ffffff;
  outline: none;
}

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

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

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

  .lobo-consent__btn {
    flex: 1 1 140px;
  }

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