/* ============================================
   AI chat widget (Bentonit Systems) – adaptovaná šablona
   Namespace: #kf-chat
   Barvy dle projektu: accent #c9a96e (gold), tmavá #1a1a1a
   Fonty: Inter (sans), DM Serif Display (headings)
   ============================================ */

#kf-chat{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:9999;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    letter-spacing:.02em;
}

#kf-chat *{box-sizing:border-box}

#kf-chat .kf-btn{
    width:56px;
    height:56px;
    border:none;
    cursor:pointer;
    font-size:24px;
    line-height:1;
    background:#c9a96e;
    color:#1a1a1a;
    border-bottom:3px solid #a8894f;
    box-shadow:0 0 14px rgba(201,169,110,.45);
    transition:transform .15s,background .15s;
}
#kf-chat .kf-btn:hover{background:#e3cd9f;transform:translateY(-2px)}
#kf-chat .kf-btn:active{transform:translateY(0)}

#kf-chat .kf-whd{
    position:fixed;
    right:20px;
    bottom:84px;
    width:340px;
    height:480px;
    background:#1a1a1a;
    border:1px solid #3a3a3a;
    border-bottom:3px solid #c9a96e;
    display:none;
    flex-direction:column;
    box-shadow:0 8px 30px rgba(0,0,0,.55);
}
#kf-chat .kf-whd.open{display:flex}

#kf-chat .kf-head{
    display:flex;
    align-items:center;
    background:#1a1a1a;
    color:#fff;
    padding:12px 14px;
    font-family:'DM Serif Display',Georgia,serif;
    font-size:.95rem;
    letter-spacing:.02em;
    border-bottom:2px solid #c9a96e;
    flex-shrink:0;
}

#kf-chat .kf-head-btn{
    width:28px;
    height:28px;
    border:1px solid #444;
    background:transparent;
    color:#bbb;
    cursor:pointer;
    font-size:.9rem;
    line-height:1;
    transition:all .15s;
}
#kf-chat .kf-head-btn:hover{border-color:#c9a96e;color:#c9a96e}

#kf-chat .kf-msgs{
    flex:1;
    overflow-y:auto;
    padding:12px;
    background:#1a1a1a;
    display:flex;
    flex-direction:column;
    gap:8px;
}
#kf-chat .kf-msgs::-webkit-scrollbar{width:6px}
#kf-chat .kf-msgs::-webkit-scrollbar-thumb{background:#3a3a3a}
#kf-chat .kf-msgs::-webkit-scrollbar-track{background:transparent}

#kf-chat .kf-msg{
    max-width:85%;
    padding:9px 12px;
    font-size:.88rem;
    line-height:1.5;
}
#kf-chat .kf-user{
    background:#c9a96e;
    color:#1a1a1a;
    margin-left:auto;
    border-left:3px solid #e3cd9f;
}
#kf-chat .kf-bot{
    background:#2d2d2d;
    color:#eee;
    margin-right:auto;
    border-left:3px solid #c9a96e;
}
#kf-chat .kf-msg a{color:#e3cd9f;font-weight:700;text-decoration:underline}
#kf-chat .kf-typing{padding:9px 13px;font-size:.82rem;color:#999;font-style:italic}

#kf-chat .kf-foot{
    display:flex;
    border-top:1px solid #3a3a3a;
    flex-shrink:0;
}
#kf-chat .kf-foot input{
    flex:1;
    border:none;
    padding:12px 14px;
    font-size:.88rem;
    outline:none;
    background:#1a1a1a;
    color:#fff;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
}
#kf-chat .kf-foot input::placeholder{color:#666}
#kf-chat .kf-foot button{
    width:50px;
    background:#c9a96e;
    color:#1a1a1a;
    border:none;
    cursor:pointer;
    font-size:1.1rem;
    transition:background .15s;
}
#kf-chat .kf-foot button:hover{background:#e3cd9f}
#kf-chat .kf-foot button:disabled{background:#555;cursor:not-allowed}

#kf-chat .kf-card{
    border:1px solid #3a3a3a;
    border-left:3px solid #c9a96e;
    margin:8px 0;
    overflow:hidden;
}
#kf-chat .kf-card-h{
    background:#1a1a1a;
    padding:8px 12px;
    font-size:.72rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#c9a96e;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
}
#kf-chat .kf-card-b{padding:10px 12px;font-size:.85rem;color:#ddd;line-height:1.6}
#kf-chat .kf-card-b p{margin-bottom:6px}
#kf-chat .kf-card-b ul{padding-left:0;margin:4px 0;list-style:none}
#kf-chat .kf-card-b li{padding:2px 0 2px 16px;position:relative}
#kf-chat .kf-card-b li::before{content:"▸";position:absolute;left:0;color:#c9a96e}
#kf-chat .kf-card-b a{color:#e3cd9f;font-weight:700;text-decoration:underline}

#kf-chat .kf-opts{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 10px 0;
    padding:0 4px;
}
#kf-chat .kf-opt{
    border:1.5px solid #c9a96e;
    background:transparent;
    color:#c9a96e;
    padding:5px 10px;
    cursor:pointer;
    font-size:.8rem;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    font-weight:600;
    letter-spacing:.03em;
    transition:all .12s;
    white-space:nowrap;
}
#kf-chat .kf-opt:hover{background:#c9a96e;color:#1a1a1a}
#kf-chat .kf-opt.kf-opt-custom{border-style:dashed;color:#999;border-color:#666}
#kf-chat .kf-opt.kf-opt-custom:hover{background:#666;color:#fff;border-color:#666}

#kf-chat .kf-actions{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:0 0 10px 0;
    padding:0 4px;
}
#kf-chat .kf-action{
    border:1.5px solid #c9a96e;
    background:transparent;
    color:#c9a96e;
    padding:5px 10px;
    cursor:pointer;
    font-size:.8rem;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    font-weight:600;
    letter-spacing:.03em;
    transition:all .12s;
}
#kf-chat .kf-action:hover{background:#c9a96e;color:#1a1a1a}

@media(max-width:540px){
    #kf-chat{right:12px;bottom:12px}
    #kf-chat .kf-btn{width:48px;height:48px;font-size:22px}
    #kf-chat .kf-whd{width:calc(100vw - 24px);height:60vh;right:0;bottom:60px}
}
