.kb-chat-root,
.kb-chat-root * { box-sizing: border-box; }
.kb-chat-root { --kw-gold:#d4a017; --kw-gold-light:#f1c84c; --kw-black:#0c0c0c; --kw-red:#e52b2b; font-family:Arial,Helvetica,sans-serif; }
.kb-chat-launcher {
  position:fixed; z-index:998; right:22px; bottom:22px; width:62px; height:62px;
  display:grid; place-items:center; border:2px solid rgba(255,255,255,.25); border-radius:50%;
  background:linear-gradient(145deg,var(--kw-gold-light),var(--kw-gold)); color:#090909;
  box-shadow:0 13px 32px rgba(0,0,0,.34),0 0 0 7px rgba(212,160,23,.13); cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease;
}
.kb-chat-launcher:hover { transform:translateY(-3px) scale(1.03); box-shadow:0 17px 38px rgba(0,0,0,.4),0 0 0 8px rgba(212,160,23,.15); }
.kb-chat-launcher:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.kb-chat-launcher svg { width:29px; height:29px; }
.kb-chat-badge { position:absolute; right:-2px; top:-5px; min-width:23px; height:23px; display:grid; place-items:center; padding:0 5px; border:2px solid #fff; border-radius:20px; background:var(--kw-red); color:#fff; font-size:12px; font-weight:900; }
.kb-chat-toast { position:fixed; z-index:997; right:22px; bottom:101px; width:min(310px,calc(100vw - 34px)); padding:15px 42px 15px 16px; border:1px solid #333; border-radius:13px; background:#111; color:#fff; box-shadow:0 16px 40px rgba(0,0,0,.3); animation:kwChatIn .35s ease both; }
.kb-chat-toast strong { display:block; margin-bottom:4px; color:var(--kw-gold-light); font-size:15px; }
.kb-chat-toast p { margin:0; color:#ddd; font-size:13.5px; line-height:1.45; }
.kb-chat-toast button { position:absolute; right:10px; top:9px; border:0; background:transparent; color:#aaa; font-size:22px; cursor:pointer; }
.kb-chat-panel { position:fixed; z-index:999; right:22px; bottom:98px; width:min(380px,calc(100vw - 30px)); height:min(620px,calc(100dvh - 125px)); display:none; overflow:hidden; border:1px solid #303030; border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.4); }
.kb-chat-panel.kb-open { display:flex; flex-direction:column; animation:kwChatIn .24s ease both; }
.kb-chat-header { display:flex; align-items:center; gap:11px; padding:16px 17px; background:linear-gradient(135deg,#090909,#1d1d1d); color:#fff; }
.kb-chat-mark { width:38px; height:38px; display:grid; place-items:center; border:1.5px solid var(--kw-gold); border-radius:9px; color:var(--kw-gold); font-weight:1000; font-style:italic; }
.kb-chat-header-text { min-width:0; flex:1; }
.kb-chat-header-text strong { display:block; font-size:15px; letter-spacing:.2px; }
.kb-chat-status { display:flex; align-items:center; gap:6px; margin-top:3px; color:#bbb; font-size:12px; }
.kb-chat-status i { width:8px; height:8px; border-radius:50%; background:#8c8c8c; }
.kb-chat-status i.kw-online { background:#38c172; box-shadow:0 0 0 3px rgba(56,193,114,.17); }
.kb-chat-close { width:35px; height:35px; display:grid; place-items:center; border:0; border-radius:50%; background:#272727; color:#fff; font-size:22px; cursor:pointer; }
.kb-chat-body { min-height:0; flex:1; display:flex; flex-direction:column; background:#f7f7f5; }
.kb-chat-intro { padding:20px 18px 8px; text-align:center; }
.kb-chat-intro h2 { margin:0 0 7px; color:#111; font-size:22px; line-height:1.15; }
.kb-chat-intro p { margin:0; color:#666; font-size:14px; line-height:1.5; }
.kb-chat-form { padding:13px 18px 18px; overflow:auto; }
.kb-chat-field { margin-bottom:12px; }
.kb-chat-field label { display:block; margin:0 0 5px; color:#222; font-size:13px; font-weight:800; }
.kb-chat-field input,.kb-chat-field textarea { width:100%; padding:12px 13px; border:1.5px solid #d8d8d8; border-radius:8px; background:#fff; color:#111; font:14px/1.4 Arial,Helvetica,sans-serif; }
.kb-chat-field textarea { min-height:100px; resize:vertical; }
.kb-chat-field input:focus,.kb-chat-field textarea:focus { outline:0; border-color:var(--kw-gold); box-shadow:0 0 0 3px rgba(212,160,23,.16); }
.kb-chat-submit { width:100%; min-height:46px; border:0; border-radius:8px; background:var(--kw-gold); color:#080808; font-size:13px; font-weight:900; letter-spacing:.4px; cursor:pointer; }
.kb-chat-submit:disabled { opacity:.6; cursor:wait; }
.kb-chat-error { display:none; margin:0 18px 14px; padding:10px 12px; border:1px solid #efb1b1; border-radius:7px; background:#fff0f0; color:#a51d1d; font-size:12.5px; line-height:1.4; }
.kb-chat-error.kb-show { display:block; }
.kb-chat-conversation { min-height:0; flex:1; display:none; flex-direction:column; }
.kb-chat-conversation.kb-show { display:flex; }
.kb-chat-messages { min-height:0; flex:1; overflow-y:auto; padding:18px 15px 10px; }
.kb-chat-message { max-width:82%; margin:0 0 10px; padding:10px 12px; border-radius:13px 13px 13px 4px; background:#fff; color:#222; box-shadow:0 2px 8px rgba(0,0,0,.07); font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.kb-chat-message.kb-visitor { margin-left:auto; border-radius:13px 13px 4px 13px; background:#161616; color:#fff; }
.kb-chat-message small { display:block; margin-top:5px; color:#999; font-size:10px; }
.kb-chat-message.kb-visitor small { color:#aaa; }
.kb-chat-welcome { margin:0 auto 14px; max-width:92%; padding:8px 10px; border-radius:10px; background:#fff5d7; color:#73570b; font-size:12px; line-height:1.4; text-align:center; }
.kb-chat-reply-form { display:flex; gap:8px; padding:11px; border-top:1px solid #ddd; background:#fff; }
.kb-chat-reply-form textarea { min-height:44px; max-height:110px; flex:1; resize:none; padding:11px 12px; border:1.5px solid #d8d8d8; border-radius:9px; font:14px/1.4 Arial,Helvetica,sans-serif; }
.kb-chat-reply-form textarea:focus { outline:0; border-color:var(--kw-gold); }
.kb-chat-send { width:46px; height:46px; flex:none; display:grid; place-items:center; border:0; border-radius:9px; background:var(--kw-gold); color:#090909; cursor:pointer; }
.kb-chat-send svg { width:21px; height:21px; }
.kb-chat-closed { display:none; padding:12px 15px; border-top:1px solid #ddd; background:#fff8e6; color:#74590e; font-size:12.5px; text-align:center; }
.kb-chat-closed.kb-show { display:block; }
.kb-chat-honeypot { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
@keyframes kwChatIn { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:none; } }
@media (max-width:520px) {
  .kb-chat-launcher { right:15px; bottom:15px; width:58px; height:58px; }
  .kb-chat-toast { right:15px; bottom:88px; }
  .kb-chat-panel { inset:12px 10px 84px; width:auto; height:auto; border-radius:16px; }
}
@media (prefers-reduced-motion:reduce) { .kb-chat-toast,.kb-chat-panel.kb-open { animation:none; } .kb-chat-launcher { transition:none; } }


.kb-visitor-counter{display:inline-flex;gap:18px;align-items:center;margin:8px 0 0;padding:6px 10px;border:1px solid rgba(212,160,23,.3);border-radius:999px;color:#c9c9c9;font-size:10px;line-height:1.2;letter-spacing:.04em}.kb-visitor-counter[hidden]{display:none!important}.kb-visitor-counter span{display:inline-flex;gap:5px;align-items:center}.kb-visitor-counter b{font-weight:600;color:#929292}.kb-visitor-counter strong{color:#e2b52b;font-size:11px}@media(max-width:600px){.kb-visitor-counter{gap:12px;font-size:9px;padding:5px 8px}}

/* Kirkbooth visitor chat visibility and photo booth mark */
.kb-chat-root .kb-chat-form { background:#191919; color:#f7f7f7; }
.kb-chat-root .kb-chat-field label { color:#f7f7f7; }
.kb-chat-root .kb-chat-field input,
.kb-chat-root .kb-chat-field textarea { background:#fff; color:#171717; }
.kb-chat-root .kb-chat-mark { overflow:hidden; padding:0; background:#111; border-color:#d4a017; }
.kb-chat-root .kb-chat-mark img { display:block; width:100%; height:100%; object-fit:cover; border-radius:7px; }

/* Strong contrast for pre-chat labels across website themes */
.kb-chat-root .kb-chat-panel .kb-chat-prechat .kb-chat-form .kb-chat-field > label {
 color:#f8f8f8 !important; opacity:1 !important; visibility:visible !important;
 font-size:14px !important; font-weight:700 !important; text-shadow:none !important;
}
.kb-chat-root .kb-chat-form input, .kb-chat-root .kb-chat-form textarea {
 background:#fff !important; color:#111 !important;
}
.kb-chat-root .kb-chat-form input::placeholder, .kb-chat-root .kb-chat-form textarea::placeholder {color:#666 !important;opacity:1;}
.kb-chat-root .kb-chat-mark { border-color:#ccc !important; background:#050505 !important; }
.kb-chat-root .kb-chat-mark img { object-fit:contain; }
