/*
Theme Name: ChatNest Demo
Theme URI: https://ajqureshi.com/
Author: AJ Qureshi
Author URI: https://ajqureshi.com/
Description: Live demo site theme for the ChatNest WhatsApp chat plugin. Builds the demo homepage, a contact page and a small WooCommerce demo store on its own. Install the ChatNest plugin and add your agents.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatnest-demo
*/

:root{--ink:#16302F;--deep:#0E4A45;--green:#17A863;--mint:#E3F6EC;--paper:#F5F9F8;--line:#D3E2DF;--muted:#55706C;--wrap:1180px;
 --head:'Bricolage Grotesque','Figtree',system-ui,sans-serif;--body:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif}
*,*::before,*::after{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-padding-top:90px}
body{margin:0;background:#fff;color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
img{max-width:100%;height:auto}
a{color:var(--deep)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--green);outline-offset:3px}
h1,h2,h3,h4{font-family:var(--head);color:var(--ink);letter-spacing:-.01em;line-height:1.15;margin:0 0 .5em}
p{margin:0 0 1em}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.cnd-wrap{max-width:var(--wrap);margin:0 auto;padding-left:20px;padding-right:20px}
.cnd-wrap>*,.cnd-grid>*{min-width:0}

/* header */
.cnd-head{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line)}
@supports (backdrop-filter:blur(8px)){.cnd-head{backdrop-filter:blur(10px)}}
.admin-bar .cnd-head{top:32px}
@media (max-width:782px){.admin-bar .cnd-head{top:46px}}
@media (max-width:600px){.admin-bar .cnd-head{top:0}}
.cnd-head-in{display:flex;align-items:center;gap:20px;min-height:68px}
.cnd-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-family:var(--head);font-weight:800;font-size:1.3rem;flex:none}
.cnd-logo svg{width:34px;height:34px;flex:none}
.cnd-logo small{font-family:var(--body);font-weight:500;font-size:.8rem;color:var(--muted);margin-left:2px}
.cnd-nav{margin-left:auto}
.cnd-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px;flex-wrap:wrap}
.cnd-nav a{display:block;padding:8px 12px;border-radius:10px;text-decoration:none;color:var(--ink);font-weight:500;font-size:.97rem}
.cnd-nav a:hover{background:var(--paper)}
.cnd-cart{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--paper);color:var(--deep);text-decoration:none;flex:none}
.cnd-cart svg{width:22px;height:22px}
.cnd-cart b{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--green);color:#fff;font-size:.72rem;display:grid;place-items:center}
.cnd-menu-btn{display:none;margin-left:auto;background:var(--paper);border:0;border-radius:12px;width:42px;height:42px;cursor:pointer;color:var(--ink)}
.cnd-menu-btn svg{width:22px;height:22px}
@media (max-width:860px){
 .cnd-menu-btn{display:grid;place-items:center}
 .cnd-nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);margin:0;display:none;padding:10px 20px 16px}
 .cnd-nav.is-open{display:block}
 .cnd-nav ul{flex-direction:column}
 .cnd-nav a{padding:12px}
}

/* buttons */
.cnd-btn{display:inline-block;padding:14px 24px;border-radius:12px;font-weight:600;text-decoration:none;font-size:1rem;text-align:center;white-space:normal}
.cnd-btn-main{background:var(--deep);color:#fff}
.cnd-btn-main:hover{background:var(--ink);color:#fff}
.cnd-btn-line{border:2px solid var(--deep);color:var(--deep);padding:12px 22px}
.cnd-btn-line:hover{background:var(--paper)}

/* hero */
.cnd-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center;padding-top:64px;padding-bottom:72px}
.cnd-hero h1{font-size:clamp(2.3rem,5vw,3.6rem);font-weight:800;line-height:1.05;margin:0}
.cnd-lead{margin:20px 0 0;font-size:1.15rem;color:var(--muted);max-width:34em}
.cnd-ver{display:inline-block;margin-bottom:18px;font-size:.88rem;font-weight:600;color:var(--deep);background:var(--mint);padding:5px 12px;border-radius:999px}
.cnd-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.cnd-hint{margin:18px 0 0;font-size:.95rem;color:var(--muted)}

/* chat thread mockup */
.cnd-thread{background:var(--deep);border-radius:28px 28px 28px 6px;padding:26px 22px;display:flex;flex-direction:column;gap:12px;box-shadow:0 24px 50px -24px rgba(14,74,69,.55)}
.cnd-msg{max-width:86%;padding:11px 15px;border-radius:16px;font-size:.96rem;line-height:1.45}
.cnd-in{background:#fff;color:var(--ink);border-bottom-left-radius:4px}
.cnd-out{align-self:flex-end;background:var(--mint);color:var(--ink);border-bottom-right-radius:4px}
.cnd-who{display:block;font-size:.78rem;font-weight:600;color:var(--green);margin-bottom:2px}
.cnd-pick{display:grid;gap:8px;background:rgba(255,255,255,.08);border-radius:14px;padding:10px}
.cnd-agent{display:flex;align-items:center;gap:10px;background:#fff;border-radius:10px;padding:8px 10px;font-size:.92rem;line-height:1.3}
.cnd-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#fff;font-size:.85rem;flex:none}
.cnd-agent small{display:block;color:var(--muted);font-size:.78rem}
.cnd-dot{margin-left:auto;width:9px;height:9px;border-radius:50%;background:var(--green);flex:none}
.cnd-dot.off{background:#B7C4C1}
.cnd-thread>*{opacity:0;transform:translateY(8px);animation:cndIn .45s ease forwards}
.cnd-thread>:nth-child(2){animation-delay:.5s}.cnd-thread>:nth-child(3){animation-delay:1.1s}.cnd-thread>:nth-child(4){animation-delay:1.8s}
@keyframes cndIn{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cnd-thread>*{animation:none;opacity:1;transform:none}}

/* sections */
.cnd-sec{padding-top:64px;padding-bottom:64px;border-top:1px solid var(--line)}
.cnd-sec>h2{font-size:clamp(1.7rem,3.2vw,2.3rem);font-weight:700;max-width:22em;margin:0}
.cnd-sub{margin:10px 0 0;color:var(--muted);max-width:40em}

/* live try */
.cnd-try{margin-top:32px;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:28px}
.cnd-try h3{font-size:1.1rem;font-weight:700;margin:0 0 6px}
.cnd-note{font-size:.93rem;color:var(--muted);margin:0 0 16px}
.cnd-note code{background:#fff;border:1px solid var(--line);border-radius:6px;padding:1px 6px;font-size:.88em}
.cnd-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}
.cnd-split .cnd-try{margin-top:0}
.cnd-missing{background:#FFF7E6;border:1px dashed #E0B45A;color:#6B4E12;border-radius:12px;padding:14px 16px;font-size:.95rem}

/* features */
.cnd-feat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 36px;margin-top:40px}
.cnd-feat h3{font-size:1.15rem;font-weight:700;margin:0 0 12px;padding-bottom:10px;border-bottom:2px solid var(--green);display:inline-block}
.cnd-feat ul{list-style:none;margin:0;padding:0}
.cnd-feat li{padding:7px 0;border-bottom:1px solid var(--line);font-size:.97rem}
.cnd-feat li:last-child{border-bottom:0}

/* products strip */
.cnd-prods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:32px}
.cnd-prod{text-decoration:none;color:var(--ink);display:block}
.cnd-prod img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:16px;background:var(--paper)}
.cnd-prod strong{display:block;margin-top:10px;font-weight:600}
.cnd-prod span{color:var(--muted);font-size:.95rem}

/* steps */
.cnd-steps{counter-reset:s;list-style:none;margin:32px 0 0;padding:0;display:grid;gap:14px;max-width:760px}
.cnd-steps li{counter-increment:s;display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start}
.cnd-steps li::before{content:counter(s);width:44px;height:44px;border-radius:50%;background:var(--mint);color:var(--deep);font-weight:700;display:grid;place-items:center;font-family:var(--head)}
.cnd-steps strong{display:block}
.cnd-steps span{color:var(--muted);font-size:.95rem}
.cnd-login{margin-top:24px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:14px 18px;max-width:760px}

/* buy */
.cnd-buy{margin-top:24px;margin-bottom:72px;background:var(--deep);color:#fff;border-radius:24px;padding:44px 40px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px}
.cnd-buy h2{color:#fff;font-size:clamp(1.6rem,3vw,2.2rem);margin:0}
.cnd-buy p{color:#CFE7E1;margin:8px 0 0}
.cnd-btn-buy{background:#fff;color:var(--deep)}
.cnd-btn-buy:hover{background:var(--mint);color:var(--deep)}

/* pages */
.cnd-page{padding-top:48px;padding-bottom:72px}
.cnd-page-title{font-size:clamp(2rem,4vw,2.8rem);font-weight:800;margin:0 0 24px}
.cnd-content{max-width:860px}
.cnd-content>*{max-width:100%}
.cnd-wide .cnd-content{max-width:none}
.cnd-content table{width:100%;border-collapse:collapse}
.cnd-table-wrap{overflow-x:auto;max-width:100%}

/* footer */
.cnd-foot{background:var(--paper);border-top:1px solid var(--line);padding:36px 0;font-size:.93rem;color:var(--muted)}
.cnd-foot-in{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center}
.cnd-foot a{color:var(--deep)}

/* WooCommerce */
.woocommerce .cnd-page ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0 0 32px;padding:0}
.woocommerce .cnd-page ul.products::before,.woocommerce .cnd-page ul.products::after{display:none}
.woocommerce .cnd-page ul.products li.product{width:auto!important;margin:0!important;float:none!important;min-width:0}
.woocommerce ul.products li.product a img{border-radius:16px;margin-bottom:10px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--body);font-weight:600;font-size:1.02rem;color:var(--ink)}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--deep);font-weight:600}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--deep);color:#fff;border-radius:10px;font-weight:600;padding:.75em 1.2em}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--ink);color:#fff}
.woocommerce button.button.alt,.woocommerce a.button.alt{background:var(--deep)}
.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover{background:var(--ink)}
.woocommerce div.product div.images img{border-radius:18px}
.woocommerce span.onsale{background:var(--green);border-radius:999px;min-height:auto;min-width:auto;padding:4px 10px;line-height:1.4}
.woocommerce .woocommerce-breadcrumb{color:var(--muted)}
.woocommerce-store-notice,p.demo_store{display:none!important}

@media (max-width:900px){
 .cnd-hero{grid-template-columns:minmax(0,1fr);gap:40px;padding-top:40px;padding-bottom:56px}
 .cnd-feat{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cnd-prods,.woocommerce .cnd-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
 body{font-size:16px}
 .cnd-feat,.cnd-split{grid-template-columns:minmax(0,1fr)}
 .cnd-buy{padding:32px 24px}
 .cnd-try{padding:20px}
 .cnd-prods,.woocommerce .cnd-page ul.products{gap:14px}
}

/* small store polish */
.cnd-prod ins,.woocommerce .price ins{text-decoration:none}
.woocommerce button.button.alt.disabled,.woocommerce button.button.alt:disabled,.woocommerce button.button.alt:disabled[disabled]{background:var(--deep);color:#fff;opacity:.55}
.woocommerce div.product form.cart .variations select,.woocommerce .woocommerce-ordering select,.woocommerce .quantity .qty{border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;font-size:.97rem;background:#fff;color:var(--ink);min-height:44px;max-width:100%}
.woocommerce .quantity .qty{width:5em}
.woocommerce div.product form.cart .variations th,.woocommerce div.product form.cart .variations td{vertical-align:middle;padding:6px 8px 6px 0}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:10px 10px 0 0}
