/* Jack Nguyen cookie consent — bottom canvas banner (page stays usable) */
:root {
  --gdh-consent-panel: #ffffff;
  --gdh-consent-text: #0f172a;
  --gdh-consent-muted: #475569;
  --gdh-consent-accent: #0f766e;
  --gdh-consent-accent-hover: #0d9488;
  --gdh-consent-danger: #b91c1c;
  --gdh-consent-border: #e2e8f0;
  --gdh-consent-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}

/* Keep space so content is not covered by the banner */
html.gdh-consent-pending body {
  padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
}

#gdh-consent-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: none;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  pointer-events: none;
}

#gdh-consent-root.gdh-consent-visible {
  display: block;
}

.gdh-consent-panel {
  pointer-events: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--gdh-consent-panel);
  color: var(--gdh-consent-text);
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--gdh-consent-border);
  border-bottom: 0;
  box-shadow: var(--gdh-consent-shadow);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.gdh-consent-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.gdh-consent-panel h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 700;
}

.gdh-consent-panel p {
  margin: 0;
  color: var(--gdh-consent-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.gdh-consent-panel a {
  color: var(--gdh-consent-accent);
  font-weight: 600;
  text-decoration: underline;
}

.gdh-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
}

.gdh-consent-actions button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.gdh-consent-accept {
  background: var(--gdh-consent-accent);
  color: #fff;
}

.gdh-consent-accept:hover {
  background: var(--gdh-consent-accent-hover);
}

.gdh-consent-decline {
  background: #f8fafc;
  color: var(--gdh-consent-danger);
  border: 1px solid #fecaca !important;
}

.gdh-consent-decline:hover {
  background: #fef2f2;
}

.gdh-consent-note {
  display: none;
}

@media (max-width: 640px) {
  html.gdh-consent-pending body {
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .gdh-consent-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .gdh-consent-actions {
    width: 100%;
  }

  .gdh-consent-actions button {
    flex: 1 1 auto;
  }
}

/* Shared page backdrop (login / privacy / not-allowed) */
.gdh-consent-page-shell {
  position: relative;
  min-height: 100vh;
  background: #0f172a;
  overflow-x: hidden;
}

.gdh-consent-page-shell::before {
  content: "";
  position: fixed;
  inset: -6px;
  z-index: 0;
  background: url("/consent/consent-bg.png") center top / cover no-repeat;
  filter: blur(0.8px) saturate(1.02);
  transform: scale(1.015);
  pointer-events: none;
}

.gdh-consent-page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.18) 42%, rgba(15, 23, 42, 0.38) 100%),
    radial-gradient(ellipse at center, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.32) 100%);
  pointer-events: none;
}

.gdh-consent-page-shell > * {
  position: relative;
  z-index: 2;
}
