.cd-ga4-preferences {
  display: inline-flex;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cd-ga4-banner {
  position: fixed;
  z-index: 1100;
  bottom: 24px;
  right: 24px;
  left: auto;
  width: min(390px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  background: rgba(8, 15, 36, 0.95);
  backdrop-filter: blur(18px);
  color: #f1f5f9;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.1);
  font: 400 13px/1.5 system-ui, -apple-system, sans-serif;
  animation: cdConsentFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cdConsentFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cd-ga4-banner strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.cd-ga4-banner p {
  margin: 6px 0 14px;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.45;
}

.cd-ga4-banner a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cd-ga4-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cd-ga4-actions button {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cd-ga4-actions button:not([data-ga4-accept]) {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
}

.cd-ga4-actions button:not([data-ga4-accept]):hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.cd-ga4-actions [data-ga4-accept] {
  background: #38bdf8;
  border: 1px solid #38bdf8;
  color: #030712;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.cd-ga4-actions [data-ga4-accept]:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.cd-ga4-banner :focus-visible,
.cd-ga4-preferences:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cd-ga4-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}
