.gw-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.gw-modal[aria-hidden="false"] { display: block; }

.gw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  backdrop-filter: blur(2px);
}

.gw-dialog {
  position: relative;
  max-width: 520px;
  margin: 12vh auto;
  background: linear-gradient(135deg, #ffffff, #fdf4e7 70%);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  padding: 28px 28px 24px;
  z-index: 1;
  overflow: hidden;
}

/* subtle confetti corner */
.gw-dialog::before {
  content: "";
  position: absolute;
  top: -25px;
  right: -25px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, #ffd166 0, #ffd166 30%, transparent 31%);
  background-repeat: repeat;
  background-size: 15px 15px;
  opacity: 0.4;
  transform: rotate(15deg);
}

.gw-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.gw-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.gw-content h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-weight: 700;
}
.gw-content p {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #333;
}
.gw-content p strong {
  font-weight: 700;
}

.gw-cta {
  margin-top: 14px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #ffb703;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.1s ease;
}
.gw-cta:hover {
  background: #ffa400;
}
.gw-cta:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: no-preference) {
  .gw-dialog { animation: gw-pop 0.25s ease-out; }
  @keyframes gw-pop {
    from { transform: translateY(12px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
}
.gw-logo {
  display: block;
  max-width: 140px;   /* balansert for popupen */
  height: auto;
  margin: 0 auto 16px auto;
}
@media (max-width: 500px) {
  .gw-logo {
    max-width: 110px;
    margin-bottom: 12px;
  }
}
