.cpg-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.cpg-overlay[hidden] {
  display: none !important;
}

.cpg-dialog {
  width: min(100%, 520px);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d8e0e8;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.34);
  padding: 1.2rem 1.2rem 1rem;
  text-align: center;
  animation: cpgFadeIn .24s ease-out both;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.cpg-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto .85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecf4f8;
}

.cpg-dialog h2 {
  margin: 0 0 .5rem;
  color: #111827;
  font-size: clamp(1.2rem, 3.6vw, 1.55rem);
  line-height: 1.18;
}

.cpg-dialog p {
  margin: 0 0 1rem;
  color: #3e4a59;
  line-height: 1.55;
  font-size: .98rem;
}

.cpg-confirm,
.cpg-secondary {
  width: 100%;
  border-radius: 12px;
  border: 0;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
}

.cpg-confirm {
  background: #0d5e7a;
  color: #fff;
  padding: .75rem 1rem;
}

.cpg-confirm:hover {
  background: #0b4f66;
}

.cpg-secondary {
  margin-top: .6rem;
  background: transparent;
  color: #5b6472;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cpg-confirm:focus-visible,
.cpg-secondary:focus-visible {
  outline: 3px solid #0d5e7a;
  outline-offset: 2px;
}

@keyframes cpgFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cpg-dialog {
    animation: none;
  }
}
