/* WebMax Page Builder: the live build screen for instant sites. */
html.wmpb-su-open, html.wmpb-su-open body { overflow: hidden !important; }
.wmpb-su { --su-accent: var(--wmpb-accent, #4f46e5); --su-ink: #0f172a; --su-muted: #64748b; position: fixed; inset: 0; z-index: 100000; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; background: #f1f5f9; color: var(--su-ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; animation: wmpb-su-in .35s ease both; }
@keyframes wmpb-su-in { from { opacity: 0; } to { opacity: 1; } }
.wmpb-su-side { background: #fff; padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: .9rem; overflow-y: auto; box-shadow: 1px 0 0 rgba(15, 23, 42, .08); }
.wmpb-su-brand { margin: 0; font-weight: 700; color: var(--su-accent); letter-spacing: .02em; }
.wmpb-su-title { margin: .5rem 0 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; color: var(--su-ink); outline: none; }
.wmpb-su-sub { margin: 0; color: var(--su-muted); line-height: 1.5; }
.wmpb-su-bar { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin: .4rem 0; }
.wmpb-su-bar span { display: block; height: 100%; width: 6%; border-radius: inherit; background: var(--su-accent); transition: width .6s ease; }
.wmpb-su-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.wmpb-su-steps li { display: grid; grid-template-columns: 22px 1fr; column-gap: .65rem; align-items: center; color: var(--su-muted); font-size: .97rem; }
.wmpb-su-steps li small { grid-column: 2; font-size: .82rem; color: var(--su-muted); }
.wmpb-su-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; box-sizing: border-box; position: relative; }
.wmpb-su-steps .is-done, .wmpb-su-steps .is-skipped { color: var(--su-ink); }
.wmpb-su-steps .is-done .wmpb-su-dot { background: #16a34a; border-color: #16a34a; }
.wmpb-su-steps .is-done .wmpb-su-dot::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wmpb-su-steps .is-skipped .wmpb-su-dot { background: #f59e0b; border-color: #f59e0b; }
.wmpb-su-steps .is-working { color: var(--su-ink); font-weight: 600; }
.wmpb-su-steps .is-working .wmpb-su-dot { border-color: var(--su-accent); border-right-color: transparent; animation: wmpb-su-spin .8s linear infinite; }
@keyframes wmpb-su-spin { to { transform: rotate(360deg); } }
.wmpb-su-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.wmpb-su-actions:empty { display: none; }
.wmpb-su-btn { border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.3rem; border-radius: 12px; background: var(--su-accent); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.wmpb-su-btn.is-ghost { background: transparent; color: var(--su-ink) !important; box-shadow: inset 0 0 0 1.5px #cbd5e1; }
.wmpb-su-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--su-accent) 40%, transparent); outline-offset: 2px; }
.wmpb-su-keep { margin: auto 0 0; font-size: .85rem; color: var(--su-muted); }
.wmpb-su-stage { padding: clamp(1rem, 3vw, 2.5rem); display: flex; min-width: 0; min-height: 0; }
.wmpb-su-browser { flex: 1; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .08); }
.wmpb-su-chrome { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: #e2e8f0; }
.wmpb-su-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.wmpb-su-addr { margin-left: .7rem; flex: 1; max-width: 480px; padding: .25rem .8rem; border-radius: 8px; background: #fff; font-size: .82rem; color: var(--su-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmpb-su-frames { position: relative; flex: 1; overflow: hidden; background: #fff; --s: .6; }
.wmpb-su-frames iframe { position: absolute; top: 0; left: 0; width: 1280px; height: calc(100% / var(--s)); border: 0; transform: scale(var(--s)); transform-origin: 0 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.wmpb-su-frames iframe.is-in { opacity: 1; }
.wmpb-su.is-done .wmpb-su-frames iframe { pointer-events: auto; }
@media (max-width: 820px) {
	.wmpb-su { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
	.wmpb-su-side { padding: 1.25rem 16px; }
	.wmpb-su-stage { padding: 0 16px 16px; min-height: 55vh; }
	.wmpb-su-keep { margin-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) { .wmpb-su, .wmpb-su-bar span, .wmpb-su-frames iframe { animation: none; transition: none; } .wmpb-su-steps .is-working .wmpb-su-dot { animation-duration: 3s; } }

/* Pick your look (v1.11) */
.wmpb-pk { display: flex; flex-direction: column; grid-template-columns: none; overflow-y: auto; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(16px, 4vw, 3rem); gap: 1.25rem; background: #f1f5f9; }
.wmpb-pk-top { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; padding-right: 3rem; }
.wmpb-pk-head { max-width: 40rem; display: flex; flex-direction: column; gap: .4rem; }
.wmpb-pk-head .wmpb-su-title { margin-top: .2rem; }
.wmpb-pk-tools { display: flex; flex-wrap: wrap; gap: .6rem; }
.wmpb-pk-tools .wmpb-su-btn { padding: .7rem 1.1rem; background: #fff; }
.wmpb-pk-tools .wmpb-su-btn:disabled { opacity: .6; }
.wmpb-pk-x { position: absolute; top: -.25rem; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--su-ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.wmpb-pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.wmpb-pk-card { display: flex; flex-direction: column; gap: .75rem; padding: .75rem .75rem 1rem; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -28px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .06); }
.wmpb-pk-card > .wmpb-su-btn { margin: 0 .25rem; }
.wmpb-pk-shot { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3.3; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #e2e8f0; cursor: zoom-in; --s: .25; }
.wmpb-pk-shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: calc(100% / var(--s)); border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; background: #fff; }
.wmpb-pk-zoom { position: absolute; right: .6rem; bottom: .6rem; padding: .35rem .7rem; border-radius: 99px; background: rgba(15, 23, 42, .78); color: #fff; font-size: .8rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.wmpb-pk-shot:hover .wmpb-pk-zoom, .wmpb-pk-shot:focus-visible .wmpb-pk-zoom { opacity: 1; transform: none; }
.wmpb-pk-shot:focus-visible { outline: 3px solid var(--su-accent); outline-offset: 2px; }
.wmpb-pk-meta { display: flex; flex-direction: column; gap: .2rem; padding: 0 .25rem; }
.wmpb-pk-meta b { font-size: 1.02rem; }
.wmpb-pk-meta b span { font-weight: 500; color: var(--su-muted); }
.wmpb-pk-desc { font-size: .88rem; color: var(--su-muted); line-height: 1.45; }
.wmpb-pk-new { margin-left: .4rem; padding: .1rem .45rem; border-radius: 99px; background: var(--su-accent); color: #fff; font-size: .7rem; font-style: normal; font-weight: 700; vertical-align: middle; }
.wmpb-pk-note { margin: 0; text-align: center; font-size: .88rem; color: var(--su-muted); }
.wmpb-pk-big { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; background: #0f172a; }
.wmpb-pk-bigbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(12px, 2vw, 1.25rem); background: #fff; }
.wmpb-pk-bigbar b { font-size: .98rem; text-align: center; }
.wmpb-pk-bigbar .wmpb-su-btn { padding: .65rem 1.1rem; }
.wmpb-pk-bigframe { position: relative; flex: 1; overflow: hidden; --s: 1; }
.wmpb-pk-bigframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 600px) {
	.wmpb-pk-bigbar b { display: none; }
	.wmpb-pk-top { padding-right: 3.2rem; }
}
.wmpb-su-logo { display: block; height: 34px; width: auto; max-width: 200px; object-fit: contain; }

/* 1.58: SEO-only sign-up (no website preview) */
.wmpb-su.is-seo { grid-template-columns: 1fr; place-items: center; padding: 16px; }
.wmpb-su.is-seo .wmpb-su-side { width: min(520px, 100%); border-radius: 18px; box-shadow: 0 12px 40px rgba(15, 23, 42, .12); max-height: calc(100vh - 32px); }

/* 1.59: design proposals: colour swatches + fonts under each card */
.wmpb-pk-sw { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.wmpb-pk-sw i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .15); }
.wmpb-pk-sw small { margin-left: 6px; color: var(--su-muted); font-size: 12px; }

/* 1.63: Preview + Use this design side by side; phone view in the big preview */
.wmpb-pk-acts { display: flex; gap: 12px; margin: 0 .25rem; }
.wmpb-pk-acts .wmpb-su-btn { flex: 1 1 0; justify-content: center; }
.wmpb-pk-acts .wmpb-su-btn.is-ghost { flex: 0 0 auto; }
.wmpb-pk-mid { display: flex; align-items: center; gap: 16px; }
.wmpb-pk-dev { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: #eef1f5; }
.wmpb-pk-dev button { border: 0; background: transparent; padding: .4rem .9rem; border-radius: 999px; font: 600 .85rem/1 inherit; color: #475569; cursor: pointer; }
.wmpb-pk-dev button.is-on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.wmpb-pk-bigframe.is-phone { background: #e9edf2; }
.wmpb-pk-bigframe.is-phone iframe { left: 50%; width: 390px; max-width: calc(100% - 24px); top: 16px; height: calc(100% - 32px); transform: translateX(-50%); border-radius: 24px; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
@media (max-width: 640px) { .wmpb-pk-dev { display: none; } }

/* 1.63: websites they like */
.wmpb-pk-insp { margin: 24px auto 0; max-width: 980px; padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.wmpb-pk-insp h3 { margin: 0 0 6px; font-size: 1.1rem; }
.wmpb-pk-insp p { margin: 0 0 14px; color: var(--su-muted); font-size: .95rem; }
.wmpb-pk-insp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; }
.wmpb-pk-insp-row input { min-width: 0; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: .95rem; }
.wmpb-pk-insp-row input:focus { outline: 2px solid var(--su-accent, #2563eb); outline-offset: 1px; }
.wmpb-pk-insp .wmpb-pk-insp-msg { margin: 12px 0 0; font-weight: 600; color: #0f172a; }
.wmpb-pk-insp.is-busy .wmpb-pk-insp-msg::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wmpb-insp-spin .8s linear infinite; }
@keyframes wmpb-insp-spin { to { transform: rotate(360deg); } }
.wmpb-pk-new.is-insp { background: #ede9fe; color: #5b21b6; white-space: nowrap; }
@media (max-width: 760px) { .wmpb-pk-insp-row { grid-template-columns: 1fr; } }

/* 1.67.2: "Keep my current look" (exact copy of their website) */
.wmpb-pk-card.is-keep { outline: 2px solid color-mix(in srgb, var(--su-accent, #6366f1) 45%, transparent); outline-offset: -2px; border-radius: 14px; }
.wmpb-pk-keep { box-sizing: border-box; cursor: default; display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px; background: linear-gradient(160deg, #f1f5f9, #e2e8f0); }
.wmpb-pk-keep-host { font-weight: 700; font-size: 1.15rem; color: #0f172a; overflow-wrap: anywhere; }
.wmpb-pk-keep-sub { font-size: .9rem; color: #475569; }
.wmpb-pk-card.is-keep .wmpb-pk-acts .wmpb-su-btn { white-space: nowrap; }
.wmpb-pk-insp.is-missed .wmpb-pk-insp-msg { color: #b45309; font-weight: 600; }

/* 1.79: confirm the email with a 6-digit code before the build. */
.wmpb-su-code { position: fixed; inset: 0; z-index: 100010; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .6); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --su-accent: var(--wmpb-accent, #4f46e5); --su-ink: #0f172a; }
.wmpb-su-code-card { width: 100%; max-width: 440px; background: #fff; color: #0f172a; border-radius: 18px; padding: 28px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); text-align: center; }
.wmpb-su-code-card h2 { margin: 0 0 8px; font-size: 1.4rem; color: #0f172a; }
.wmpb-su-code-card p { margin: 0 0 14px; color: #475569; line-height: 1.5; overflow-wrap: anywhere; }
.wmpb-su-code-in { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 12px; padding: 14px; font: 700 1.8rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .4em; text-align: center; border: 2px solid #cbd5e1; border-radius: 12px; color: #0f172a; background: #fff; }
.wmpb-su-code-in:focus { outline: none; border-color: var(--su-accent); }
.wmpb-su-code-msg { color: #b91c1c !important; font-weight: 600; }
.wmpb-su-code-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 4px 0 12px; }
.wmpb-su-code-acts .wmpb-su-btn:first-child { flex: 1 1 100%; }
.wmpb-su-code-acts .wmpb-su-btn:disabled { opacity: .6; cursor: default; }
.wmpb-su-code-tip { font-size: .9rem; margin: 0 !important; }
.wmpb-su-code-acts .wmpb-su-btn.is-working:disabled { opacity: 1; cursor: progress; gap: 10px; } /* 1.99.22: "Checking your code…" */
.wmpb-su-spin { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid rgba(255, 255, 255, .45); border-right-color: #fff; border-radius: 50%; animation: wmpb-su-spin .8s linear infinite; }
.wmpb-su-code-in::placeholder { color: #cbd5e1; }
.wmpb-su-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #7a4b00; font-size: .92rem; line-height: 1.45; } /* 1.82 */
/* 1.99.21: the AI designer's looks on the finished build screen */
.wmpb-su-looks { margin: 18px 0 6px; }
.wmpb-su-looks-title { font-weight: 700; margin: 0 0 4px; }
.wmpb-su-looks .wmpb-su-note { background: none; color: inherit; opacity: .8; padding: 0; margin-top: 2px; } /* an explanation, not a warning */
.wmpb-su-looks-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.wmpb-su-look { display: grid; gap: 4px; text-align: left; padding: 10px 12px; border: 1px solid rgba(15, 23, 42, .14); border-radius: 10px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.wmpb-su-look:hover { border-color: rgba(15, 23, 42, .35); }
.wmpb-su-look.is-on { border-color: currentColor; box-shadow: 0 0 0 2px rgba(79, 70, 229, .25); }
.wmpb-su-look.is-busy { opacity: .6; }
.wmpb-su-look b { font-size: 14px; }
.wmpb-su-look small { font-size: 12px; opacity: .7; }
.wmpb-su-look-sw { display: flex; gap: 3px; min-height: 12px; }
.wmpb-su-look-sw i { width: 18px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
@media (max-width: 520px) { .wmpb-su-looks-list { grid-template-columns: minmax(0, 1fr); } }
