/* "Ask PEPPERCORN" - the chat button in the corner of every page.

   It lived inside the home page alone, so a visitor on any other page - which
   is where the ads land - had nowhere to ask a question (Dave, 2026-11-23).
   The markup is built by chat.js; these are its styles, moved here unchanged.
   The colours it needs are set on the widget itself, because not every page
   defines the home page's variables. It is a button that waits to be pressed:
   it does not open by itself over the page. */
.chat-widget{--ink:#221A12;--ink-soft:#6B5F4C;--line:#E8DFC8;--ox:#b5283f;--ox-deep:#7c2b25;--surface:#FAF7F1;--green:#6E7C4C;
  --pc-text:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Helvetica,Arial,sans-serif;}
.chat-widget{position:fixed;right:22px;bottom:22px;z-index:80;font-family:var(--pc-text);}
.chat-toggle{height:56px;padding:0 20px 0 16px;gap:10px;border-radius:28px;border:none;cursor:pointer;
  font-family:var(--pc-text);font-size:15px;font-weight:600;letter-spacing:.01em;
  background:linear-gradient(135deg,var(--ox),var(--ox-deep));color:#fff;
  box-shadow:0 10px 26px -8px rgba(181,40,63,.55);display:flex;align-items:center;justify-content:center;
  transition:transform .15s ease, box-shadow .15s ease;}
.chat-toggle:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 14px 30px -8px rgba(181,40,63,.65);}
.chat-toggle svg{width:26px;height:26px;flex:none;}
.chat-toggle-label{white-space:nowrap;}
.chat-header-title{font-family:var(--pc-text);font-size:13px;font-weight:600;letter-spacing:.02em;margin-right:8px;opacity:.85;}
/* On a phone the button is its icon alone. With its words it lay across the
   page's own text - on the landing pages, across the offer (seen on an
   iPhone, 2026-11-24). The label stays for screen readers through the
   button's aria-label. */
@media (max-width:640px){
  .chat-toggle{width:46px;height:46px;padding:0;justify-content:center;border-radius:50%;}
  .chat-toggle svg{width:22px;height:22px;}
  .chat-toggle-label{display:none;}
}
.chat-panel{position:absolute;right:0;bottom:70px;width:340px;max-width:calc(100vw - 44px);
  height:480px;max-height:calc(100vh - 140px);background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:0 24px 60px -20px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden;}
.chat-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;
  border-bottom:1px solid var(--line);flex:none;}
.chat-header .pc-word{font-size:14px;margin:0;}
.chat-close{appearance:none;background:none;border:none;font-size:20px;line-height:1;color:var(--ink-soft);
  cursor:pointer;padding:0 2px;}
.chat-close:hover{color:var(--ox);}
.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;}
.chat-msg{font-size:13.5px;line-height:1.5;padding:9px 12px;border-radius:12px;max-width:85%;}
.chat-msg-bot{background:var(--surface,#f5f1e6);color:var(--ink);align-self:flex-start;border-bottom-left-radius:3px;}
.chat-msg-user{background:var(--ox);color:#fff;align-self:flex-end;border-bottom-right-radius:3px;}
.chat-msg-typing{opacity:.5;font-style:italic;}
.chat-input-row{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);flex:none;}
.chat-input-row input{flex:1;box-sizing:border-box;padding:9px 12px;border:1px solid var(--line);
  border-radius:20px;font-family:var(--pc-text);font-size:13.5px;background:#fff;color:var(--ink);}
.chat-input-row input:focus{outline:none;border-color:var(--ox);}
.chat-input-row button{width:36px;height:36px;flex:none;border-radius:50%;border:none;cursor:pointer;
  background:linear-gradient(135deg,var(--ox),var(--ox-deep));color:#fff;font-size:15px;}
.chat-contact-box{padding:14px 16px;border-top:1px solid var(--line);flex:none;background:#fafaf8;}
.chat-contact-intro{font-family:'JetBrains Mono',monospace;font-size:10.5px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-soft);margin-bottom:10px;}
.chat-contact-box input,.chat-contact-box textarea{width:100%;box-sizing:border-box;padding:8px 10px;
  border:1px solid var(--line);border-radius:8px;font-family:var(--pc-text);font-size:13px;
  background:#fff;color:var(--ink);margin-bottom:8px;}
.chat-contact-box textarea{min-height:56px;resize:vertical;font-family:inherit;}
.chat-contact-box input:focus,.chat-contact-box textarea:focus{outline:none;border-color:var(--ox);}
.chat-contact-box button{width:100%;padding:9px;border:none;border-radius:8px;color:#fff;cursor:pointer;
  background:linear-gradient(135deg,var(--ox),var(--ox-deep));font-family:'JetBrains Mono',monospace;
  font-size:12px;font-weight:500;letter-spacing:.03em;}
.chat-contact-box button:disabled{opacity:.6;cursor:not-allowed;}
.chat-contact-msg{margin-top:8px;font-size:12.5px;min-height:16px;}
.chat-contact-msg.ok{color:var(--green);}
.chat-contact-msg.err{color:var(--ox);}
.chat-panel[hidden]{display:none;}
@media (max-width:480px){.chat-panel{right:-6px;}}
