:root{
  --rk-chat-primary:#0b2a4a;      /* deep navy  */
  --rk-chat-primary-2:#123f6d;
  --rk-chat-accent:#1e88e5;       /* vacuum blue */
  --rk-chat-accent-soft:#e8f2fc;
  --rk-chat-wa:#25d366;
  --rk-chat-call:#1e88e5;
  --rk-chat-bg:#f4f7fb;
  --rk-chat-text:#1c2733;
  --rk-chat-muted:#6b7a8a;
  --rk-chat-bar-h:72px;           /* height of your mobile bottom bar */
}

/* ---------- RIGHT WALL (desktop) ---------- */
.rk-chat-wall{position:fixed;right:0;top:60%;transform:translateY(-50%);z-index:9998;display:flex;flex-direction:column;gap:8px}
.rk-chat-wall a,.rk-chat-wall button{width:50px;height:50px;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;border-radius:12px 0 0 12px;box-shadow:-2px 3px 12px rgba(0,0,0,.22);transition:width .2s,filter .2s;text-decoration:none;padding:0}
.rk-chat-wall a:hover,.rk-chat-wall button:hover{width:58px;filter:brightness(1.08)}
.rk-chat-wall svg{width:26px;height:26px;fill:currentColor}
.rk-chat-btn-chat{background:linear-gradient(135deg,var(--rk-chat-primary),var(--rk-chat-accent));position:relative}
.rk-chat-btn-chat .rk-chat-dot{position:absolute;top:7px;left:8px;width:10px;height:10px;border-radius:50%;background:#ff5252;border:2px solid #fff}
.rk-chat-btn-wa{background:var(--rk-chat-wa)}
.rk-chat-btn-call{background:var(--rk-chat-call)}

/* ---------- CHAT WINDOW ---------- */
.rk-chat-window{position:fixed;right:70px;bottom:24px;width:380px;max-width:calc(100vw - 90px);height:600px;max-height:calc(100vh - 48px);background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(8,25,45,.35);display:flex;flex-direction:column;overflow:hidden;z-index:9999;font-family:'Segoe UI',Roboto,Arial,sans-serif;font-size:14px;color:var(--rk-chat-text);opacity:0;visibility:hidden;transform:translateY(18px) scale(.97);transition:opacity .25s,transform .25s,visibility .25s}
.rk-chat-window.rk-chat-open{opacity:1;visibility:visible;transform:none}
.rk-chat-window *{box-sizing:border-box}

.rk-chat-head{background:linear-gradient(135deg,var(--rk-chat-primary),var(--rk-chat-primary-2));padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto}
.rk-chat-logo{background:#fff;border-radius:8px;padding:4px 10px;display:flex;align-items:center;height:42px}
.rk-chat-logo img{height:32px;width:auto;max-width:170px;display:block;object-fit:contain}
.rk-chat-head-actions{display:flex;gap:8px}
.rk-chat-icon-btn{width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.15);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;padding:0}
.rk-chat-icon-btn:hover{background:rgba(255,255,255,.3)}
.rk-chat-icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.rk-chat-status{background:var(--rk-chat-accent-soft);color:var(--rk-chat-primary);font-size:12px;padding:6px 14px;display:flex;align-items:center;gap:7px;flex:0 0 auto}
.rk-chat-status i{width:8px;height:8px;border-radius:50%;background:#2ecc71;display:inline-block}

.rk-chat-body{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:14px;background:var(--rk-chat-bg);scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.rk-chat-body::-webkit-scrollbar{width:6px}
.rk-chat-body::-webkit-scrollbar-thumb{background:#c5d0dc;border-radius:6px}

.rk-chat-msg{display:flex;margin-bottom:10px;animation:rkChatIn .25s ease}
.rk-chat-msg-user{justify-content:flex-end}
.rk-chat-bubble{max-width:86%;padding:10px 13px;border-radius:14px;line-height:1.5;word-wrap:break-word;overflow-wrap:anywhere}
.rk-chat-msg-bot .rk-chat-bubble{background:#fff;border:1px solid #e3eaf2;border-bottom-left-radius:4px}
.rk-chat-msg-user .rk-chat-bubble{background:linear-gradient(135deg,var(--rk-chat-primary-2),var(--rk-chat-accent));color:#fff;border-bottom-right-radius:4px}
.rk-chat-bubble a{color:var(--rk-chat-accent);font-weight:600}
.rk-chat-bubble ul{margin:6px 0 0;padding-left:18px}
.rk-chat-typing{display:flex;gap:4px;padding:13px 15px}
.rk-chat-typing span{width:7px;height:7px;border-radius:50%;background:#9db0c4;animation:rkChatDot 1.1s infinite}
.rk-chat-typing span:nth-child(2){animation-delay:.18s}
.rk-chat-typing span:nth-child(3){animation-delay:.36s}
@keyframes rkChatDot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
@keyframes rkChatIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.rk-chat-quick-row{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 12px}
.rk-chat-quick-btn{border:1.5px solid var(--rk-chat-accent);background:#fff;color:var(--rk-chat-primary-2);border-radius:20px;padding:7px 13px;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;transition:all .18s;font-family:inherit;line-height:1.2}
.rk-chat-quick-btn:hover{background:var(--rk-chat-accent);color:#fff}
.rk-chat-quick-btn.rk-chat-primary{background:var(--rk-chat-primary-2);border-color:var(--rk-chat-primary-2);color:#fff}

.rk-chat-card{background:#fff;border:1px solid #e3eaf2;border-radius:12px;overflow:hidden;margin-bottom:10px;max-width:70%}
.rk-chat-card img{width:100%;height:166px;object-fit:cover;display:block;background:#eef2f7}
.rk-chat-card-body{padding:10px 12px}
.rk-chat-card h4{margin:0 0 4px;font-size:14.5px;color:var(--rk-chat-primary)}
.rk-chat-card p{margin:0 0 8px;color:var(--rk-chat-muted);font-size:13px;line-height:1.45}

/* ---------- ENQUIRY FORM ---------- */
.rk-chat-form{background:#fff;border:1px solid #e3eaf2;border-radius:14px;padding:14px;margin-bottom:12px}
.rk-chat-form h4{margin:0 0 3px;color:var(--rk-chat-primary);font-size:15px}
.rk-chat-form small{display:block;color:var(--rk-chat-muted);margin-bottom:10px}
.rk-chat-form label{display:block;font-size:12px;font-weight:600;color:#44546a;margin:8px 0 3px}
.rk-chat-form input[type=text],.rk-chat-form input[type=email],.rk-chat-form input[type=tel],.rk-chat-form select,.rk-chat-form textarea{width:100%;border:1.5px solid #d5dee8;border-radius:8px;padding:9px 10px;font-size:14px;font-family:inherit;background:#fbfcfe;color:var(--rk-chat-text);outline:0;transition:border .15s}
.rk-chat-form textarea{resize:vertical;min-height:70px}
.rk-chat-form input:focus,.rk-chat-form select:focus,.rk-chat-form textarea:focus{border-color:var(--rk-chat-accent);background:#fff}
.rk-chat-form .rk-chat-hp{position:absolute!important;left:-9999px;opacity:0;height:0;width:0}
.rk-chat-turnstile{margin-top:10px;min-height:65px}
.rk-chat-turnstile-invalid{outline:2px solid #e53935;border-radius:6px}
.rk-chat-error{color:#e53935;font-size:12px;margin-top:4px;min-height:14px}
.rk-chat-submit{width:100%;margin-top:10px;border:0;border-radius:8px;padding:11px;background:linear-gradient(135deg,var(--rk-chat-primary),var(--rk-chat-accent));color:#fff;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit}
.rk-chat-submit:disabled{opacity:.6;cursor:wait}

/* ---------- COMPOSER ---------- */
.rk-chat-composer{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #e3eaf2;background:#fff;flex:0 0 auto}
.rk-chat-composer input{flex:1;min-width:0;border:1.5px solid #d5dee8;border-radius:22px;padding:10px 14px;font-size:14px;outline:0;font-family:inherit}
.rk-chat-composer input:focus{border-color:var(--rk-chat-accent)}
.rk-chat-send{width:42px;height:42px;border-radius:50%;border:0;background:var(--rk-chat-accent);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:0}
.rk-chat-send svg{width:19px;height:19px;fill:#fff}

/* ---------- MOBILE BOTTOM-BAR ITEM HOOK ---------- */
.rk-chat-bar-item{cursor:pointer}

/* ---------- MOBILE ---------- */
@media (max-width:991px){
  .rk-chat-wall{display:none!important}         /* right wall hidden: bottom bar takes over */
  .rk-chat-window{right:0;left:0;bottom:calc(var(--rk-chat-bar-h) + env(safe-area-inset-bottom,0px));width:100%;max-width:100%;height:calc(100dvh - var(--rk-chat-bar-h) - env(safe-area-inset-bottom,0px) - 12px);max-height:none;border-radius:18px 18px 0 0}
  .rk-chat-bubble{max-width:90%}
  .rk-chat-body{padding:12px}
  .rk-chat-composer input{font-size:16px}       /* stops iOS zoom on focus */
  .rk-chat-form input,.rk-chat-form select,.rk-chat-form textarea{font-size:16px}
  body.rk-chat-lock{overflow:hidden}
}
@media (max-width:360px){
  .rk-chat-logo img{max-width:120px}
  .rk-chat-quick-btn{font-size:12.5px;padding:6px 11px}
}