/* ---- AI Advisor, chat layout. Scoped to .adv2. Plan cards reuse the site's px-adv-* styles. ---- */
.px.adv2 .adv2-top{background:linear-gradient(180deg,#fff 0%,#f3f6fb 100%);padding:44px 0 56px}
.px.adv2 .adv2-h1{font-family:"Archivo",system-ui,sans-serif;font-weight:800;letter-spacing:-0.025em;font-size:clamp(30px,4.2vw,52px);line-height:1.1;color:var(--ink);text-align:center;margin:0}
.px.adv2 .adv2-sub.px-lede{color:var(--ink-soft);text-align:center;max-width:none;margin:12px auto 0;font-size:clamp(17px,1.8vw,21px)}
.px.adv2 .adv2-card{display:grid;grid-template-columns:minmax(0,34%) minmax(0,1fr);margin-top:32px;background:#fff;border:1px solid #e1e6ef;border-radius:22px;box-shadow:0 18px 50px rgba(13,36,64,.08);overflow:hidden}
.px.adv2 .adv2-face{margin:0;display:flex;flex-direction:column;border-right:1px solid #e9edf4;background:#fafbfd}
.px.adv2 .adv2-face img{display:block;width:100%;flex:1 1 auto;min-height:0;height:100%;max-height:640px;object-fit:cover;object-position:center 12%}
.px.adv2 .adv2-face figcaption{padding:16px 18px 20px;text-align:center}
.px.adv2 .adv2-face figcaption strong{display:block;font-family:"Archivo",system-ui,sans-serif;font-size:18px;color:var(--ink)}
.px.adv2 .adv2-face figcaption span{display:block;font-size:14.5px;color:var(--ink-soft);margin-top:4px}
.px.adv2 .adv2-chat{padding:34px 38px 26px;display:flex;flex-direction:column;min-width:0}
.px.adv2 .adv2-title{font-family:"Archivo",system-ui,sans-serif;font-weight:800;font-size:26px;letter-spacing:-0.01em;color:var(--ink);margin:0}
.px.adv2 .adv2-by{font-size:15px;color:var(--ink-soft);margin:2px 0 0}
.px.adv2 .adv2-log{margin-top:20px;display:flex;flex-direction:column;gap:14px;max-height:560px;overflow-y:auto;padding-right:4px}
.px.adv2 .adv2-msg{display:flex;gap:12px;align-items:flex-start}
.px.adv2 .adv2-av{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:center 15%;flex:0 0 44px;border:2px solid #fff;box-shadow:0 2px 8px rgba(13,36,64,.15)}
.px.adv2 .adv2-bubble{background:#eef2f8;border-radius:16px;padding:14px 18px;font-size:16px;line-height:1.55;color:#1f2937;max-width:100%;min-width:0}
.px.adv2 .adv2-bubble p{margin:0}
.px.adv2 .adv2-bubble p+p{margin-top:6px}
.px.adv2 .adv2-bubble strong{color:var(--ink)}
.px.adv2 .adv2-user{justify-content:flex-end}
.px.adv2 .adv2-user .adv2-bubble{background:var(--navy);color:#fff;max-width:80%;white-space:pre-wrap;word-break:break-word}
.px.adv2 .adv2-err .adv2-bubble{background:rgba(214,69,69,.08);border:1px solid rgba(214,69,69,.3)}
.px.adv2 .adv2-typing .adv2-bubble{color:var(--ink-soft);font-style:italic}
.px.adv2 .adv2-plan{flex:1 1 auto;background:#f6f8fc;border:1px solid #e1e6ef}
.px.adv2 .adv2-plan .px-adv-plan{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.px.adv2 .adv2-plan .px-adv-sub{font-size:16px;margin:16px 0 0}
.px.adv2 .adv2-plan .px-adv-totals{margin-top:14px}
.px.adv2 .adv2-plan .px-adv-notes{margin:10px 0 0;padding-left:20px}
.px.adv2 .adv2-plan .px-adv-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.px.adv2 .adv2-plan .px-adv-cta .px-btn{margin-top:0}
.px.adv2 .adv2-chips{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.px.adv2 .adv2-chip{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#fff;border:1px solid #cfd6e2;border-radius:12px;padding:16px 18px;font:inherit;font-size:16.5px;font-weight:600;color:var(--ink);cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}
.px.adv2 .adv2-chip:hover{border-color:#1d4ed8;box-shadow:0 4px 14px rgba(29,78,216,.10)}
.px.adv2 .adv2-chip[aria-pressed="true"]{border-color:var(--green);background:#f1faf4}
.px.adv2 .adv2-chip:focus-visible{outline:3px solid #2f6bff;outline-offset:3px}
.px.adv2 .adv2-chip svg{flex:0 0 26px;width:26px;height:26px;fill:none;stroke:#1d4ed8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.px.adv2 .adv2-chip span{flex:1}
.px.adv2 .adv2-chip .adv2-go{flex:0 0 16px;width:16px;height:16px;stroke:var(--ink-soft)}
.px.adv2 .adv2-link{text-align:center;margin:18px 0 0;font-size:16px}
.px.adv2 .adv2-link a{color:#1d4ed8;text-decoration:underline;text-underline-offset:3px}
.px.adv2 .adv2-form{margin-top:20px;display:flex;align-items:center;gap:10px;border:1px solid #b8c2d3;border-radius:16px;padding:6px 6px 6px 18px;background:#fff}
.px.adv2 .adv2-form:focus-within{border-color:#2f6bff;box-shadow:0 0 0 3px rgba(47,107,255,.18)}
.px.adv2 .adv2-form input[type=text]{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:16.5px;color:#111827;background:transparent;padding:12px 0;box-shadow:none}
.px.adv2 .adv2-form input[type=text]::placeholder{color:#6b7280}
.px.adv2 .adv2-send{flex:0 0 52px;width:52px;height:52px;border-radius:50%;border:0;background:#1d4ed8;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.px.adv2 .adv2-send:hover{background:#1a43b8}
.px.adv2 .adv2-send:focus-visible{outline:3px solid #0d1f4c;outline-offset:3px}
.px.adv2 .adv2-send[disabled]{opacity:.55;cursor:wait}
.px.adv2 .adv2-send svg{width:22px;height:22px;fill:#fff}
.px.adv2 .adv2-note{font-size:14px;color:var(--ink-soft);margin:10px 0 0}
.px.adv2 .adv2-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.px.adv2 .adv2-again{background:none;border:0;padding:0;font:inherit;font-size:15px;color:#1d4ed8;text-decoration:underline;cursor:pointer;margin-top:8px}
@media(max-width:900px){
  .px.adv2 .adv2-card{grid-template-columns:1fr}
  .px.adv2 .adv2-face{flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid #e9edf4}
  .px.adv2 .adv2-face img{width:110px;height:110px;flex:0 0 110px;border-radius:50%;margin:16px 0 16px 18px;max-height:none}
  .px.adv2 .adv2-face figcaption{text-align:left}
  .px.adv2 .adv2-chat{padding:24px 18px 20px}
}
@media(max-width:560px){.px.adv2 .adv2-chips{grid-template-columns:1fr}.px.adv2 .adv2-log{max-height:none}}
.px.adv2 [hidden]{display:none!important}
.px.adv2 .adv2-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.px.adv2 .adv2-qr{background:#fff;border:1px solid #1d4ed8;color:#1d4ed8;border-radius:999px;padding:8px 14px;font:inherit;font-size:15px;font-weight:600;line-height:1.2;cursor:pointer;transition:background .15s,color .15s}
.px.adv2 .adv2-qr:hover{background:#1d4ed8;color:#fff}
.px.adv2 .adv2-qr:focus-visible{outline:3px solid #2f6bff;outline-offset:2px}
.px.adv2 .adv2-plan .adv2-quick{margin-top:14px}

/* 1.1.1: the theme draws its own focus border inside the field; the whole box already shows focus */
.px.adv2 .adv2-form input[type=text],.px.adv2 .adv2-form input[type=text]:focus,.px.adv2 .adv2-form input[type=text]:focus-visible,.px.adv2 .adv2-form input[type=text]:hover{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
.px.adv2 .adv2-form:focus-within{border-color:#2f6bff;box-shadow:0 0 0 3px rgba(47,107,255,.25)}
