/* WRAPS STUDIO response popup (js/forms.js, window.wsPopup): the answer after every form is sent, a dialog with a
   tick or a warning, what happens next, and WhatsApp / Call / Close buttons (owner, 19 Oct 2026). Dark glass like the
   rest of the site; every button at least 48 px; logical sides so Urdu (right to left) mirrors by itself. */
.wsp { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.wsp[hidden] { display: none !important; }
.wsp-back { position: absolute; inset: 0; background: rgba(5, 7, 11, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wsp-card { position: relative; box-sizing: border-box; width: min(440px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 28px 22px 20px; border-radius: var(--r, 22px); text-align: center;
  background: rgba(17, 20, 28, .96); border: 1px solid var(--edge, rgba(255, 255, 255, .16)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85);
  color: var(--ink, #f2f5fb); font: 16px/1.5 var(--font, Inter, Arial, system-ui, sans-serif); overflow-wrap: anywhere; }
.wsp-card:focus { outline: none; }
.wsp-card:focus-visible { outline: 3px solid var(--mint, #7CFFCB); outline-offset: 3px; }
.wsp-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; }
.wsp-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wsp[data-kind="ok"] .wsp-icon { color: #071; background: var(--ok, #3ddc97); box-shadow: 0 0 0 8px rgba(61, 220, 151, .16); }
.wsp[data-kind="bad"] .wsp-icon { color: #2a0606; background: var(--bad, #ff6b6b); box-shadow: 0 0 0 8px rgba(255, 107, 107, .16); }
.wsp[data-kind="check"] .wsp-icon { color: #2b1a00; background: var(--amber, #FFB547); box-shadow: 0 0 0 8px rgba(255, 181, 71, .16); }
.wsp[data-kind="info"] .wsp-icon { color: #04122b; background: var(--blue, #3D8BFF); box-shadow: 0 0 0 8px rgba(61, 139, 255, .18); }
.wsp[data-kind="busy"] .wsp-icon { color: var(--mint, #7CFFCB); background: rgba(124, 255, 203, .1); }
.wsp-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(124, 255, 203, .25); border-top-color: var(--mint, #7CFFCB); }
.wsp-title { margin: 0 0 8px; font: 700 clamp(21px, 5vw, 25px)/1.25 var(--display, Sora, Inter, sans-serif); letter-spacing: -.01em; }
.wsp-body { color: var(--muted, #a9b2c6); }
.wsp-body p { margin: 0 0 8px; }
.wsp-body p:first-child { color: var(--ink, #f2f5fb); }
.wsp-body ul { margin: 4px 0 8px; padding-inline-start: 20px; text-align: start; color: var(--ink, #f2f5fb); }
.wsp-body ol { margin: 8px 0; padding-inline-start: 22px; text-align: start; }
.wsp-body ol li.done { color: var(--ok, #3ddc97); }
.wsp-body .wsp-big { font: 700 26px/1.2 var(--display, Sora, Inter, sans-serif); color: var(--mint, #7CFFCB); }
.wsp-acts { display: grid; gap: 10px; margin-top: 18px; }
.wsp-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 14px;
  border: 1px solid var(--edge, rgba(255, 255, 255, .16)); background: rgba(255, 255, 255, .06); color: var(--ink, #f2f5fb);
  font: 600 16px/1.2 var(--font, Inter, Arial, sans-serif); text-decoration: none; cursor: pointer; }
.wsp-btn:hover { background: rgba(255, 255, 255, .12); }
.wsp-btn.wsp-main { border-color: transparent; color: #04140c; background: linear-gradient(100deg, var(--mint, #7CFFCB), #59d8ff); }
.wsp-btn.wsp-wa.wsp-main { color: #fff; background: #1a8f4c; }
.wsp-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wsp-x { position: absolute; top: 6px; inset-inline-end: 6px; width: 48px; height: 48px; border: 0; border-radius: 14px; background: transparent; color: var(--muted, #a9b2c6); font-size: 28px; line-height: 1; cursor: pointer; }
.wsp-x:hover { color: var(--ink, #f2f5fb); background: rgba(255, 255, 255, .08); }
.wsp[data-kind="busy"] .wsp-acts { display: none; }
html.wsp-open, html.wsp-open body { overflow: hidden; }
@media (min-width: 520px) { .wsp-acts { grid-template-columns: 1fr 1fr; } .wsp-acts .wsp-btn:first-child:nth-last-child(odd), .wsp-acts .wsp-btn.wsp-main:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) {
  .wsp:not([hidden]) .wsp-back { animation: wspFade .2s ease-out; }
  .wsp:not([hidden]) .wsp-card { animation: wspIn .28s cubic-bezier(.2, .8, .2, 1); }
  .wsp[data-kind="ok"] .wsp-icon svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: wspTick .45s .12s ease-out forwards; }
  .wsp-spin { animation: wspSpin .8s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .wsp-spin { border-top-color: rgba(124, 255, 203, .25); border-inline-end-color: var(--mint, #7CFFCB); } }
@keyframes wspFade { from { opacity: 0; } }
@keyframes wspIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes wspTick { to { stroke-dashoffset: 0; } }
@keyframes wspSpin { to { transform: rotate(360deg); } }
@media (forced-colors: active) { .wsp-card, .wsp-btn { border: 1px solid CanvasText; } }
.wsp-auto { font-size: 14px; color: var(--mint, #7CFFCB); }
/* "Send the designs I tried with my quote" on the quote form (js/forms.js): unticked until the visitor ticks it */
.ws-tried { margin: 4px 0 14px; padding: 12px; border-radius: var(--r-s, 14px); border: 1px dashed var(--edge, rgba(255, 255, 255, .16)); }
.ws-tried-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.ws-tried-pick input { width: 22px; height: 22px; flex: none; accent-color: var(--mint, #7CFFCB); }
.ws-tried p { margin: 2px 0 6px; }
.ws-tried-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-tried-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--edge, rgba(255, 255, 255, .16)); }
/* the email box js/forms.js adds to enquiry forms that had none */
.ws-email { display: grid; gap: 6px; }
.ws-email input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; }
/* html.rest (js/script.js, 8 s without a touch) pauses every animation: the popup's own fade-in and spinner keep running */
.rest .wsp .wsp-card, .rest .wsp .wsp-back, .rest .wsp .wsp-spin, .rest .wsp .wsp-icon svg path { animation-play-state: running !important; }
