.hb-consent-lock {
  overflow: hidden;
}

.hb-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
}

.hb-consent-overlay.is-open {
  display: flex;
}

.hb-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
}

.hb-consent-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(84vh, 720px);
  overflow: auto;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  color: #0f172a;
}

.hb-consent-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
}

.hb-consent-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hb-consent-dialog h2 {
  margin: 0 46px 10px 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.hb-consent-dialog p {
  margin: 0 0 14px;
  color: #475569;
}

.hb-consent-categories {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.hb-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.hb-consent-category strong {
  display: block;
  margin: 0 0 4px;
  color: #0f172a;
}

.hb-consent-category p {
  margin: 0;
  font-size: .94rem;
}

.hb-consent-state {
  white-space: nowrap;
  color: #166534;
  font-weight: 800;
  font-size: .9rem;
}

.hb-consent-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

.hb-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.hb-consent-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-weight: 800;
  cursor: pointer;
}

.hb-consent-btn--ghost {
  background: #fff;
  color: #0f172a;
}

.hb-consent-btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.hb-consent-btn:focus-visible,
.hb-consent-close:focus-visible {
  outline: 3px solid rgba(238, 186, 48, .75);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .hb-consent-overlay {
    padding: 10px;
  }

  .hb-consent-dialog {
    max-height: calc(100vh - 20px);
    padding: 20px;
    border-radius: 16px;
  }

  .hb-consent-category,
  .hb-consent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hb-consent-btn {
    width: 100%;
  }
}
