#rgpd-consent-root {
  font-family: inherit;
  color: #0f172a;
}

#rgpd-consent-root .rgpd-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: .8rem 1.05rem;
  cursor: pointer;
  background: rgba(255,255,255,.96);
  color: #0f172a;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15,23,42,.12);
}

#rgpd-consent-root .rgpd-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15,23,42,.16);
}

#rgpd-consent-root .rgpd-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  inset: auto 1rem 1rem 1rem;
  background: transparent;
  z-index: 9999;
  display: block;
  padding: 0;
  pointer-events: none;
}

#rgpd-consent-root .rgpd-card {
  width: min(1360px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,.98);
  color: #1f2937;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  box-shadow: 0 24px 70px rgba(15,23,42,.16);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

#rgpd-consent-root .rgpd-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto;
  gap: 1rem;
  align-items: center;
}

#rgpd-consent-root .rgpd-copy h2 {
  margin: 0 0 .3rem;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
}

#rgpd-consent-root .rgpd-copy p {
  margin: 0;
  color: #475569;
  font-size: .98rem;
  line-height: 1.55;
}

#rgpd-consent-root .rgpd-links {
  margin-top: .45rem;
  color: #475569;
  font-size: .95rem;
}

#rgpd-consent-root .rgpd-links a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

#rgpd-consent-root .rgpd-links a:hover {
  text-decoration: underline;
}

#rgpd-consent-root .rgpd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
}

#rgpd-consent-root .rgpd-actions button {
  border: 0;
  border-radius: 12px;
  padding: .9rem 1.15rem;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}

#rgpd-consent-root .rgpd-actions button:hover {
  transform: translateY(-1px);
}

#rgpd-consent-root .btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37,99,235,.22);
}

#rgpd-consent-root .btn-secondary {
  background: #334155;
  color: #fff;
}

#rgpd-consent-root .btn-light {
  background: #eef2f7;
  color: #0f172a;
}

#rgpd-consent-root .rgpd-details {
  margin-top: .95rem;
  padding-top: .95rem;
  border-top: 1px solid #e2e8f0;
}

#rgpd-consent-root .rgpd-details[hidden] {
  display: none !important;
}

#rgpd-consent-root .rgpd-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: 0 0 .95rem;
}

#rgpd-consent-root .rgpd-categories label {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: .9rem .95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

#rgpd-consent-root .rgpd-categories label:hover {
  border-color: #cbd5e1;
}

#rgpd-consent-root .rgpd-categories input {
  margin-top: .18rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

#rgpd-consent-root .rgpd-categories label span {
  min-width: 0;
  color: #334155;
  line-height: 1.5;
  font-size: .93rem;
}

#rgpd-consent-root .rgpd-categories label strong {
  display: inline-block;
  margin-bottom: .18rem;
  font-size: .98rem;
  color: #0f172a;
}

#rgpd-consent-root .rgpd-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}

html.rgpd-consent-open {
  overflow: auto;
}

@media (max-width: 1180px) {
  #rgpd-consent-root .rgpd-card {
    width: min(1180px, 100%);
  }

  #rgpd-consent-root .rgpd-compact {
    grid-template-columns: 1fr;
  }

  #rgpd-consent-root .rgpd-actions {
    justify-content: flex-start;
  }

  #rgpd-consent-root .rgpd-categories {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  #rgpd-consent-root .rgpd-banner {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    inset: auto .75rem .75rem .75rem;
  }

  #rgpd-consent-root .rgpd-card {
    width: 100%;
    border-radius: 18px;
    padding: 1rem;
  }

  #rgpd-consent-root .rgpd-copy h2 {
    font-size: 1.2rem;
  }

  #rgpd-consent-root .rgpd-actions,
  #rgpd-consent-root .rgpd-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #rgpd-consent-root .rgpd-actions button,
  #rgpd-consent-root .rgpd-detail-actions button {
    width: 100%;
  }

  #rgpd-consent-root .rgpd-categories {
    grid-template-columns: 1fr;
  }
}
