.gestilib-consent[hidden],
.gestilib-consent__preferences[hidden],
.gestilib-consent [hidden] {
  display: none !important;
}

.gestilib-consent {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 1080;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.gestilib-consent__panel {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.gestilib-consent__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.gestilib-consent__eyebrow {
  margin: 0 0 .25rem;
  color: #2563eb;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gestilib-consent h2 {
  margin: 0 0 .4rem;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}

.gestilib-consent p {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.gestilib-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
}

.gestilib-consent__links a,
.gestilib-consent__links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.gestilib-consent__links a:hover,
.gestilib-consent__links button:hover {
  text-decoration: underline;
}

.gestilib-consent__preferences {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.gestilib-consent__choice {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 1rem;
  background: rgba(248, 250, 252, .9);
}

.gestilib-consent__choice strong,
.gestilib-consent__choice small {
  display: block;
}

.gestilib-consent__choice strong {
  color: #0f172a;
}

.gestilib-consent__choice small {
  color: #64748b;
}

.gestilib-consent__choice input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin-top: .15rem;
}

.gestilib-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  min-width: 260px;
}

@media (max-width: 991.98px) {
  .gestilib-consent__panel {
    grid-template-columns: 1fr;
  }

  .gestilib-consent__actions {
    min-width: 0;
    justify-content: stretch;
  }

  .gestilib-consent__actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  .gestilib-consent {
    inset: auto .75rem .75rem .75rem;
  }

  .gestilib-consent__panel {
    padding: .85rem;
    border-radius: 1.25rem;
  }

  .gestilib-consent__actions {
    display: grid;
  }
}
