/* Yoder Outdoor Living — builder ordering buttons + checkout. Uses the site's own tokens from styles.css. */

/* ---- builder: Ready to order? ---- */
.ob-box{border:1px solid var(--line);background:var(--surface);padding:20px;margin:18px 0 22px;display:grid;gap:12px}
.ob-h{font-size:24px}
.ob-p{margin:0;color:var(--muted);font-size:15px}
.ob-btns{display:flex;flex-wrap:wrap;gap:10px}
.ob-btns .btn{flex:1 1 180px;min-height:52px;font-size:15px}
.ob-status{margin:0;font-size:14px;font-weight:600;min-height:1.2em}
.ob-status.err{color:#9b2c1f}
.ob-saved p{margin:0 0 8px;font-size:14px}
.ob-link{display:flex;gap:8px}
.ob-link input{flex:1;min-width:0;font:inherit;font-size:14px;padding:10px 12px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.ob-mail{margin-top:14px;padding-top:14px;border-top:1px dashed var(--line)}
.ob-mail .ob-status{margin-top:8px}
.ob-or{margin:6px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}

/* ---- checkout page ---- */
.co{padding:26px 0 70px}
.co-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:20px}
.co-head h1{font-size:clamp(30px,6vw,44px)}
.co-secure{font:500 11px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.co-banner{border:1px solid #c9a227;background:color-mix(in srgb,#c9a227 12%,var(--surface));padding:10px 14px;font-size:14px;margin-bottom:16px}
.co-banner b{font-weight:700}
.co-grid{display:grid;gap:22px}
@media (min-width:960px){.co-grid{grid-template-columns:minmax(0,1fr) 380px;align-items:start}.co-side{position:sticky;top:92px}}
.co-card{border:1px solid var(--line);background:var(--surface);padding:20px}
.co-card+.co-card{margin-top:16px}
.co-card h2{font-size:24px;margin-bottom:4px}
.co-step{font:500 11px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--brass);margin:0 0 6px}
.co-sub{margin:0 0 16px;color:var(--muted);font-size:14px}
.co-row{display:grid;gap:12px;margin-bottom:12px}
@media (min-width:560px){.co-row.two{grid-template-columns:1fr 1fr}.co-row.addr{grid-template-columns:2fr 1fr 1fr}}
.co-q{margin:14px 0 6px;font-size:13px;font-weight:600}
.field .opt{font-weight:400;color:var(--muted)}
.field input[aria-invalid="true"]{border-color:#9b2c1f}
.co-err{color:#9b2c1f;font-size:14px;font-weight:600;margin:10px 0 0;min-height:1.2em}

/* building summary */
.co-hero{width:100%;aspect-ratio:1600/722;object-fit:cover;background:linear-gradient(#cfe3f3,#eef3f2);border:1px solid var(--line);display:block}
.co-title{font-family:var(--display);font-size:24px;margin:14px 0 6px;line-height:1.15}
.co-specs{margin:0 0 12px;padding-left:18px;color:var(--muted);font-size:14px}
.co-edit{font-size:14px}
.co-lines{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--line)}
.co-lines li{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.co-lines li small{display:block;color:var(--muted);font-size:12px}
.co-lines li b{white-space:nowrap;font-weight:600}
.co-lines li.tot{font-size:16px;border-bottom:0}
.co-lines li.tot b{font-weight:700}
.co-lines li.due{background:var(--pine);color:var(--pine-ink);padding:12px;margin-top:6px;border:0;font-size:16px}
.co-lines li.due small{color:color-mix(in srgb,var(--pine-ink) 75%,transparent)}
.co-lines li.bal{color:var(--muted)}
.co-lines li.free b{color:#2e6b3f}

/* payment choice */
.co-pay{display:grid;gap:10px}
.co-opt{display:block;position:relative;border:1px solid var(--line);background:var(--bg);padding:16px 16px 16px 48px;cursor:pointer}
.co-opt input{position:absolute;left:16px;top:19px;width:20px;height:20px;accent-color:var(--ink)}
.co-opt b{display:block;font-size:16px}
.co-opt span{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.co-opt.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.co-opt.off{cursor:default;opacity:.85;padding-left:16px}
.co-opt.off a{font-weight:600}

.co-terms{display:flex;gap:12px;align-items:flex-start;margin:16px 0 0;font-size:14px}
.co-terms input{width:22px;height:22px;flex:none;margin-top:1px;accent-color:var(--ink)}
.co-go{width:100%;min-height:56px;font-size:16px;margin-top:16px}
.co-go[disabled]{opacity:.55;cursor:wait}
.co-back{display:inline-block;margin-top:12px;font-size:14px}

/* card form */
#card-container{min-height:90px;margin:6px 0 4px}
.co-mock{border:1px dashed var(--muted);padding:14px;font-size:14px;display:grid;gap:10px;background:var(--bg)}
.co-mock .btn{width:100%}
.co-cardnote{font-size:12px;color:var(--muted);margin:8px 0 0}

/* confirmation */
.co-done{text-align:left}
.co-check{width:54px;height:54px;border-radius:50%;background:#2e6b3f;color:#fff;display:grid;place-items:center;font-size:28px;margin-bottom:14px}
.co-num{font:600 15px var(--mono);letter-spacing:.06em}
.co-next{border-left:3px solid var(--brass);padding:4px 0 4px 14px;margin:18px 0}
.co-hidden{display:none!important}
@media (max-width:560px){.co-card{padding:16px}.co{padding-top:14px}}

/* phones: what you're buying and what's due today come first */
.co-page .mbar-q{display:none}
@media (max-width:959px){
  .co-side{order:-1}
  .co-hero{max-height:150px}
  .co-side .co-title{font-size:20px;margin-top:10px}
}

/* checkout from a quote link: just contact, address, agree, pay */
.co-easy .co-step,.co-easy [data-site],.co-easy #q-ground,.co-easy #q-surface,.co-easy #q-access,.co-easy .co-row:has(#s-notes){display:none!important}

/* builder: delivery address + price */
.ob-addr{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:600;margin:10px 0 0}
.ob-addr small{font-weight:400;color:var(--muted)}
.ob-addr input{font:inherit;font-size:16px;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);width:100%;box-sizing:border-box}
.ob-deliv{font-weight:700;font-size:15px;margin:6px 0 4px;min-height:1.2em}

/* payment choices + rent-to-own */
.co-opt.dis{opacity:.6;cursor:not-allowed}
.co-opt.dis span.why{color:#9b2c1f}
.co-rto{margin-top:14px;padding:16px;border:1px solid var(--line);background:var(--bg)}
.co-h3{font-size:17px;margin:18px 0 8px}
.co-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:560px){.co-months{grid-template-columns:repeat(4,minmax(0,1fr))}.co-row.three{grid-template-columns:1fr 1fr 1fr}.co-row.addr4{grid-template-columns:2fr 1fr 1.2fr 1fr}}
.co-months .chip span{display:flex;flex-direction:column;align-items:center;line-height:1.25;padding:8px 6px;text-align:center}
.co-months .chip small{font-weight:400;font-size:12px;color:var(--muted)}
.co-rto-sum{font-size:14px;margin:10px 0 0;min-height:1.2em}
.co-fine{font-size:12.5px;color:var(--muted);margin:-4px 0 12px;line-height:1.45}
.co-check2{display:flex;gap:10px;align-items:center;font-size:14px;margin:6px 0 12px}
.co-check2 input{width:20px;height:20px;flex:none;accent-color:var(--ink)}
.co-co{margin:4px 0 8px;font-size:14px}
.co-co summary{cursor:pointer;font-weight:600;margin-bottom:10px}
.co-months .chip input:checked+span small{color:inherit;opacity:.85}
.co-row.four{grid-template-columns:1fr 1fr}
@media (min-width:560px){.co-row.four{grid-template-columns:1fr 1fr 1fr 1fr}}
.co-alt+.co-alt{border-top:1px dashed var(--line);padding-top:10px}
.co-rto[data-on="platinum"] [data-prov="heartland"],.co-rto[data-on="heartland"] [data-prov="platinum"]{display:none!important}
.co-ups{border-top:1px solid var(--line);margin-top:10px;padding-top:8px}
.co-ups-h{font-size:14px;font-weight:700;margin:0 0 4px}
.co-ups .co-check2{margin:6px 0}.co-ups .co-check2 b{font-family:var(--mono);font-weight:500;margin-left:4px}

/* Quick Buy orders: window placement diagram + confirmation summary */
.co-plan{margin:10px 0 6px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#f6f7f4}
.co-plan-h{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 4px}
.co-plan .yp{display:block;width:100%;max-width:260px;height:auto;margin:0 auto}
.co-plan-l{list-style:none;padding:0;margin:6px 0 0;font-size:13px}.co-plan-l b{color:#3b82c4}
.co-done-sum{list-style:none;padding:0;margin:14px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.co-done-sum li{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line);font-size:14.5px}
.co-done-sum li:last-child{border-bottom:0}.co-done-sum span{color:var(--muted)}

/* real product photos (Quick Buy, playsets): show the whole picture */
.co-hero.co-photo{object-fit:contain;aspect-ratio:4/3;height:auto;background:#eef0ec}
@media (max-width:959px){.co-hero.co-photo{max-height:220px}}
/* checkout progress: Customize ✓ → Delivery → Payment → Review & Pay */
.co-prog{list-style:none;display:flex;gap:6px;padding:0;margin:4px 0 18px;counter-reset:st;flex-wrap:wrap}
.co-prog li{counter-increment:st;flex:1 1 0;min-width:70px;font:700 13px/1.2 var(--body);color:var(--muted);padding:9px 0 0;border-top:4px solid var(--line)}
.co-prog li::before{content:counter(st) ". "}
.co-prog li.done{color:#2f6a43;border-color:#2f6a43}.co-prog li.done::before{content:"✓ "}
.co-prog li.cur{color:var(--ink,#1d2420);border-color:#27412f}
.co-prog[hidden]{display:none}

/* ---- checkout steps (Oct 27): one short step at a time ---- */
.co-panel[hidden]{display:none!important}
.co-actions{margin-top:16px}
.co-actions .co-go{width:100%;min-height:54px;font-size:17px}
.co-saved{font-size:12.5px;color:var(--muted);margin:10px 0 0;text-align:center}
.co-back[hidden]{display:none}
.co-actions .co-back{display:block;text-align:center;margin-top:12px;font-weight:600}
.co-ferr{display:block;color:#9b2c1f;font-size:13px;font-weight:600;margin-top:4px}
.co-main input[aria-invalid=true],.co-main select[aria-invalid=true]{border-color:#9b2c1f;box-shadow:0 0 0 1px #9b2c1f}
details.co-more,details.co-why{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
details.co-more>summary,details.co-why>summary{cursor:pointer;font-weight:700;font-size:15px;min-height:32px}
details.co-why>summary{font-weight:600;font-size:14px;color:var(--muted)}
details.co-why p{font-size:14px;color:var(--muted);margin:8px 0 0}
.co-termbox{margin-top:14px}
.co-today{margin-top:16px;border:2px solid #27412f;border-radius:12px;padding:14px 16px;background:#f3f6f2}
.co-today:empty{display:none}
.co-today-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.co-today-top span{font:700 15px var(--body)}
.co-today-top b{font:800 26px/1 var(--body);color:#1f3a2a}
.co-today-what{margin:4px 0 8px;font-size:14px;color:var(--muted)}
.co-today-l{margin:0;padding-left:18px;font-size:14px;display:grid;gap:4px}
.co-recap{list-style:none;padding:0;margin:12px 0 0;border-top:1px solid var(--line)}
.co-recap li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.co-recap li span{color:var(--muted);flex:0 0 auto}.co-recap li b{text-align:right;font-weight:600}
.co-after{margin-top:16px;font-size:14px}.co-after-h{font-weight:700;margin:0 0 4px}.co-after ol{margin:0;padding-left:20px;display:grid;gap:3px}
#co-pay{width:100%;min-height:56px;font-size:17px}
.co-linkbtn{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer;font-weight:600}
.co-sumbar{display:none}
@media (max-width:959px){
  .co-sumbar{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font:inherit;color:inherit;cursor:pointer;min-height:58px}
  .co-sumbar span{display:flex;flex-direction:column;min-width:0}
  .co-sumbar small{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .co-sumbar-r{align-items:flex-end;flex:0 0 auto}.co-sumbar-r b{font-size:17px;color:#1f3a2a}.co-sumbar-r small{text-decoration:underline}
  .co-side #co-sumcard,.co-side .co-sideq{display:none}
  .co-side.open #co-sumcard{display:block;margin-top:8px}
  .co-side.open .co-sumbar{border-radius:12px}
}
/* checkout: no menus or banners pulling people away (logo + phone stay) */
.co-page .strip,.co-page .site-header .menu,.co-page .mnav-b,.co-page .mnav-p,.co-page .site-footer .foot>div:not(.foot-brand){display:none!important}
.co-page .mbar{grid-template-columns:1fr 1fr!important}
.co-strip .bh-strip{grid-template-columns:1fr 1fr;margin-top:14px}.co-strip .bh-strip li{padding:8px 10px}.co-strip .bh-strip b{font-size:13px}.co-strip .bh-strip small{display:none}

/* ---- Oct 28 round 2: route-accurate progress, sticky primary button, review with Edit links ---- */
.co-prog li button{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
.co-prog li a{color:inherit}
.co-prog-m{display:none;margin:-8px 0 14px;font:700 14px var(--body);color:#27412f}
@media (max-width:600px){.co-prog li{font-size:0;min-width:0;padding-top:0}.co-prog li::before{font-size:0}.co-prog{gap:4px;margin-bottom:8px}.co-prog-m{display:block}}
.co-approve{background:#eef5ef;border-left:4px solid #2e6b3f;border-radius:8px;padding:10px 12px;font-weight:600;font-size:14.5px;margin:12px 0}
.co-approve[hidden]{display:none}
.co-why1{display:block;font-size:12.5px;color:var(--muted);margin-top:4px}
.co-recap li{flex-wrap:wrap}
.co-recap li b{flex:1;text-align:right}
.co-edit-l{flex:0 0 100%;text-align:right;font-style:normal;font-size:13.5px}
.co-edit-l a,.co-edit-l button{background:none;border:0;padding:4px 0;font:inherit;font-weight:700;color:#27412f;text-decoration:underline;cursor:pointer;min-height:32px}
@media (min-width:600px){.co-edit-l{flex:0 0 auto;padding-left:10px}}
.co-pol details{border-top:1px solid var(--line)}.co-pol summary{cursor:pointer;font-weight:600;padding:10px 0}.co-pol p{font-size:14px;color:var(--muted);margin:0 0 10px}
.co-bar{display:none}
@media (max-width:959px){
  .co-page .mbar{display:none!important}
  .co-bar:not([hidden]){display:flex;align-items:center;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(255,255,255,.97);border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 18px rgba(0,0,0,.08)}
  .co-bar-p{display:flex;flex-direction:column;min-width:0}.co-bar-p b{font:800 18px/1.1 var(--body)}.co-bar-p small{font-size:12px;color:var(--muted)}
  .co-bar .btn{flex:1;min-height:52px;font-size:15.5px;line-height:1.2;padding:8px 12px;border-radius:12px}
  .co-bar-help{flex:0 0 48px;height:48px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer}
  .co-bar-help svg{width:20px;height:20px;fill:#27412f}
  body.co-typing .co-bar{display:none!important}
  .co-page .site-footer{padding-bottom:120px}
  .co-page main{padding-bottom:90px}
}
