/* =========================================================================
   CCC Supply Assistant — chat widget styles
   Uses the site's tokens (--navy, --teal, ...) from site.css.
   ========================================================================= */
.cccx-launcher{
  position:fixed; right:20px; bottom:calc(20px + var(--cccx-offset,0px)); z-index:1500;
  display:flex; align-items:center; gap:10px; padding:8px 18px 8px 8px;
  background:var(--navy,#001E42); color:#fff; border:0; border-radius:999px;
  font:600 15px/1.2 inherit; font-family:inherit; cursor:pointer;
  box-shadow:0 10px 28px rgba(0,30,66,.28); transition:bottom .25s ease, transform .15s ease;
}
.cccx-launcher:hover{transform:translateY(-1px);}
.cccx-launcher:focus-visible{outline:var(--focus-ring,3px solid #005F73);outline-offset:3px;}
.cccx-launcher-mark{width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;flex-shrink:0;}
.cccx-launcher-mark img{width:30px;height:auto;display:block;}
.cccx-launcher-text{text-align:left;}
.cccx-launcher-text small{display:block;font-weight:500;font-size:12px;color:rgba(255,255,255,.75);margin-top:2px;}
.cccx-launcher[aria-expanded="true"]{display:none;}

.cccx-panel{
  position:fixed; right:20px; bottom:20px; z-index:2000;
  width:400px; max-width:calc(100vw - 40px); height:min(680px, calc(100vh - 40px));
  background:#fff; border-radius:18px; overflow:hidden; display:flex; flex-direction:column;
  box-shadow:0 24px 60px rgba(0,30,66,.28); border:1px solid rgba(0,30,66,.08);
  font-family:inherit; color:var(--gray,#4F4F50);
  padding:0; margin:0; /* override the site's global section padding */
}
.cccx-panel[hidden]{display:none;}

.cccx-head{background:var(--navy,#001E42);color:#fff;padding:14px 12px 14px 16px;display:flex;align-items:center;gap:12px;flex-shrink:0;}
.cccx-head .cccx-launcher-mark{width:38px;height:38px;}
.cccx-head-title{flex:1;min-width:0;}
.cccx-head-title strong{display:block;font-size:15.5px;line-height:1.25;}
.cccx-head-title span{display:block;font-size:12.5px;color:rgba(255,255,255,.72);margin-top:1px;}
.cccx-iconbtn{background:transparent;border:0;color:#fff;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;cursor:pointer;flex-shrink:0;}
.cccx-iconbtn:hover{background:rgba(255,255,255,.12);}
.cccx-iconbtn:focus-visible{outline:3px solid #7FD0E0;outline-offset:1px;}
.cccx-iconbtn svg{width:19px;height:19px;}

.cccx-log{flex:1;overflow-y:auto;padding:18px 14px 8px;background:var(--bg,#F5F8F9);scroll-behavior:smooth;}
.cccx-msg{max-width:88%;margin:0 0 10px;font-size:14.5px;line-height:1.55;word-wrap:break-word;}
.cccx-msg p{margin:0 0 6px;} .cccx-msg p:last-child{margin-bottom:0;}
.cccx-msg ul{margin:4px 0 6px;padding-left:18px;} .cccx-msg li{margin-bottom:3px;}
.cccx-bot{background:#fff;border:1px solid var(--border,#E1E8EA);border-radius:4px 14px 14px 14px;padding:10px 13px;color:#2F3437;}
.cccx-user{margin-left:auto;background:var(--navy,#001E42);color:#fff;border-radius:14px 4px 14px 14px;padding:9px 13px;width:fit-content;}
.cccx-bot a{color:var(--teal-text,#037288);text-decoration:underline;font-weight:600;}
.cccx-bot strong{color:var(--navy,#001E42);}

/* product cards */
.cccx-products{display:flex;flex-direction:column;gap:8px;margin:0 0 10px;max-width:92%;}
.cccx-prod{background:#fff;border:1px solid var(--border,#E1E8EA);border-radius:12px;padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:start;}
.cccx-prod-name{font-weight:700;color:var(--navy,#001E42);font-size:14.5px;line-height:1.3;}
.cccx-prod-sku{font-size:12px;font-weight:600;color:var(--teal-text,#037288);font-variant-numeric:tabular-nums;}
.cccx-prod-meta{grid-column:1/-1;font-size:13px;color:var(--gray-2,#696F73);line-height:1.45;}
.cccx-prod-add{grid-row:1/3;grid-column:2;align-self:center;background:var(--teal,#047F98);color:#fff;border:0;border-radius:999px;padding:7px 13px;font:600 13px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap;}
.cccx-prod-add:hover{background:var(--teal-text,#037288);}
.cccx-prod-add:focus-visible{outline:var(--focus-ring,3px solid #005F73);outline-offset:2px;}

/* quote slip (review + confirmation) */
.cccx-slip{background:#fff;border:1px solid #CFE3E8;border-radius:12px;margin:0 0 10px;max-width:92%;overflow:hidden;font-size:13.5px;}
.cccx-slip-head{background:#EAF5F8;padding:9px 13px;display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-bottom:1px dashed #9CCBD6;}
.cccx-slip-head strong{color:var(--navy,#001E42);font-size:14px;}
.cccx-slip-head span{font-size:12px;color:var(--teal-text,#037288);font-weight:700;font-variant-numeric:tabular-nums;}
.cccx-slip table{width:100%;border-collapse:collapse;}
.cccx-slip td{padding:6px 13px;border-bottom:1px solid #EEF2F3;vertical-align:top;line-height:1.4;}
.cccx-slip td:first-child{color:var(--gray-2,#696F73);width:38%;}
.cccx-slip td:last-child{color:#2F3437;}
.cccx-slip tr:last-child td{border-bottom:0;}
.cccx-slip .cccx-line{font-weight:600;color:var(--navy,#001E42);}
.cccx-slip .cccx-line small{display:block;font-weight:500;color:var(--gray-2,#696F73);font-size:12px;}
.cccx-ref{font-size:22px;font-weight:800;color:var(--navy,#001E42);letter-spacing:.01em;font-variant-numeric:tabular-nums;}

/* quick replies */
.cccx-chips{display:flex;flex-wrap:wrap;gap:7px;padding:2px 0 12px;}
.cccx-chip{background:#fff;color:var(--teal-text,#037288);border:1.5px solid var(--teal,#047F98);border-radius:999px;padding:7px 13px;font:600 13.5px/1.2 inherit;font-family:inherit;cursor:pointer;text-decoration:none;display:inline-block;}
.cccx-chip:hover{background:var(--teal,#047F98);color:#fff;}
.cccx-chip:focus-visible{outline:var(--focus-ring,3px solid #005F73);outline-offset:2px;}
.cccx-chip.is-primary{background:var(--teal,#047F98);color:#fff;}
.cccx-chip.is-primary:hover{background:var(--teal-text,#037288);border-color:var(--teal-text,#037288);}

.cccx-typing{display:inline-flex;gap:4px;padding:12px 14px;background:#fff;border:1px solid var(--border,#E1E8EA);border-radius:4px 14px 14px 14px;margin-bottom:10px;}
.cccx-typing i{width:6px;height:6px;border-radius:50%;background:#9AB6BE;animation:cccx-dot 1s infinite ease-in-out;}
.cccx-typing i:nth-child(2){animation-delay:.15s}.cccx-typing i:nth-child(3){animation-delay:.3s}
@keyframes cccx-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.cccx-form{display:flex;gap:8px;padding:10px 12px 6px;border-top:1px solid var(--border,#E1E8EA);background:#fff;flex-shrink:0;}
.cccx-input{flex:1;min-width:0;border:1.5px solid var(--field-border,#6F7F88);border-radius:12px;padding:10px 12px;font:400 15px/1.3 inherit;font-family:inherit;color:#2F3437;background:#fff;}
.cccx-input:focus{border-color:var(--teal,#047F98);}
.cccx-input:focus-visible{outline:3px solid #005F73;outline-offset:1px;}
.cccx-send{background:var(--navy,#001E42);color:#fff;border:0;border-radius:12px;width:44px;flex-shrink:0;display:grid;place-items:center;cursor:pointer;}
.cccx-send:hover{background:var(--navy-2,#0B2C52);}
.cccx-send:focus-visible{outline:var(--focus-ring,3px solid #005F73);outline-offset:2px;}
.cccx-send svg{width:18px;height:18px;}
.cccx-foot{font-size:11.5px;color:var(--gray-2,#696F73);padding:0 14px 10px;background:#fff;line-height:1.4;flex-shrink:0;}
.cccx-foot a{color:var(--gray-2,#696F73);}

/* "Add to quote" buttons injected on products.html */
.sku-quote-btn{margin-top:10px;background:transparent;color:var(--teal-text,#037288);border:1.5px solid var(--teal,#047F98);border-radius:999px;padding:6px 13px;font:600 13px/1.2 inherit;font-family:inherit;cursor:pointer;}
.sku-quote-btn:hover{background:var(--teal,#047F98);color:#fff;}
.sku-quote-btn:focus-visible{outline:var(--focus-ring,3px solid #005F73);outline-offset:2px;}

.cccx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

@media (max-width:560px){
  .cccx-launcher{right:14px;bottom:calc(14px + var(--cccx-offset,0px) + env(safe-area-inset-bottom,0px));padding:7px;}
  .cccx-launcher-text{display:none;}
  .cccx-launcher-mark{width:44px;height:44px;}
  .cccx-panel{inset:0;right:0;bottom:0;width:100%;max-width:100%;height:100%;border-radius:0;border:0;
    padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);}
  .cccx-input{font-size:16px;} /* prevents iOS zoom-on-focus */
  .cccx-msg,.cccx-products,.cccx-slip{max-width:94%;}
}
@media (prefers-reduced-motion:reduce){
  .cccx-launcher,.cccx-log{transition:none;scroll-behavior:auto;}
  .cccx-typing i{animation:none;opacity:.6;}
}
@media print{.cccx-launcher,.cccx-panel{display:none !important;}}

/* 44 px tap targets */
.cccx-chip{min-height:44px;padding:10px 15px;display:inline-flex;align-items:center;}
.cccx-iconbtn{width:44px;height:44px;}
.cccx-prod-add{min-height:44px;padding:10px 15px;}
.cccx-send{min-height:44px;}
