/* qwall.css — the overlay. Content stays in the HTML (good for SEO); it's just blurred and inert. */
html[data-qwall] { overflow: hidden; }
html[data-qwall] [data-qwall-content] { filter: blur(6px); pointer-events: none; user-select: none; }

.qwall {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.qwall__card {
  width: 100%; max-width: 420px; background: #fff; color: #0f172a;
  border-radius: 16px; padding: 24px 20px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  text-align: center; animation: qwallIn .25s ease-out;
}
@keyframes qwallIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.qwall__progress { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.qwall__fill { height: 100%; background: #16a34a; border-radius: 99px; transition: width .3s ease; }
.qwall__title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 18px; font-weight: 700; }
.qwall__option, .qwall__cta {
  display: block; width: 100%; margin: 0 0 10px; padding: 14px 16px; font: inherit; font-size: 1rem;
  border-radius: 10px; cursor: pointer; transition: transform .08s, background .15s, border-color .15s;
}
.qwall__option { background: #f8fafc; border: 2px solid #e2e8f0; color: #0f172a; font-weight: 600; }
.qwall__option:hover, .qwall__option:focus-visible { border-color: #16a34a; background: #f0fdf4; outline: none; }
.qwall__option:active, .qwall__cta:active { transform: scale(.98); }
.qwall__cta { background: #16a34a; border: 0; color: #fff; font-weight: 700; margin-top: 6px; }
.qwall__cta:disabled { opacity: .7; cursor: wait; }
.qwall__body { margin: -6px 0 16px; color: #475569; }
.qwall__note { margin: 8px 0 0; font-size: .8rem; color: #94a3b8; }
.qwall__loading { margin-top: 10px; }
.qwall__dots { display: flex; gap: 6px; justify-content: center; margin: 6px 0 4px; }
.qwall__dots span { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; animation: qwallDot 1s infinite ease-in-out; }
.qwall__dots span:nth-child(2) { animation-delay: .15s; }
.qwall__dots span:nth-child(3) { animation-delay: .3s; }
@keyframes qwallDot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

@media (prefers-color-scheme: dark) {
  .qwall__card { background: #0f172a; color: #f1f5f9; }
  .qwall__progress { background: #1e293b; }
  .qwall__option { background: #1e293b; border-color: #334155; color: #f1f5f9; }
  .qwall__option:hover, .qwall__option:focus-visible { background: #14532d; }
  .qwall__body { color: #cbd5e1; }
}

/* Themes often set h2/p/button colors directly; force readable colors inside the wall. */
.qwall .qwall__card { background: #fff !important; color: #0f172a !important; }
.qwall .qwall__title { color: #0f172a !important; font-family: inherit !important; text-shadow: none !important; }
.qwall .qwall__body { color: #334155 !important; }
.qwall .qwall__note { color: #64748b !important; }
.qwall .qwall__option { background: #f8fafc !important; color: #0f172a !important; border: 2px solid #cbd5e1 !important; text-shadow: none !important; }
.qwall .qwall__option:hover, .qwall .qwall__option:focus-visible { background: #f0fdf4 !important; border-color: #16a34a !important; color: #0f172a !important; }
.qwall .qwall__cta { background: #16a34a !important; color: #fff !important; border: 0 !important; text-shadow: none !important; }
@media (prefers-color-scheme: dark) {
  .qwall .qwall__card { background: #0f172a !important; color: #f8fafc !important; }
  .qwall .qwall__title { color: #f8fafc !important; }
  .qwall .qwall__body { color: #e2e8f0 !important; }
  .qwall .qwall__note { color: #94a3b8 !important; }
  .qwall .qwall__option { background: #1e293b !important; color: #f8fafc !important; border-color: #475569 !important; }
  .qwall .qwall__option:hover, .qwall .qwall__option:focus-visible { background: #14532d !important; color: #fff !important; }
}
