/* Website Chatbot Widget */
.ck-chatbot { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: inherit; }

.ck-chatbot-toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, #002B5B, #0077B6);
    color: #fff; font-size: 1.4rem; box-shadow: 0 4px 20px rgba(0,43,91,.35);
    transition: transform .2s, box-shadow .2s; position: relative;
}
.ck-chatbot-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(0,43,91,.45); }

.ck-chatbot-panel {
    position: absolute; bottom: 70px; right: 0;
    width: 380px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,.15);
    display: flex; flex-direction: column; overflow: hidden;
    animation: ckSlideUp .25s ease;
}
@keyframes ckSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ck-chatbot-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: linear-gradient(135deg, #002B5B, #0077B6); color: #fff;
}
.ck-chatbot-header-info { display: flex; align-items: center; gap: 10px; }
.ck-chatbot-header-info small { display: block; opacity: .8; font-size: .75rem; }
.ck-chatbot-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
}
.ck-chatbot-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.1rem; padding: 4px; opacity: .8; }
.ck-chatbot-close:hover { opacity: 1; }

.ck-chatbot-messages {
    flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
    background: #f8fafc;
}

.ck-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; word-break: break-word; }
.ck-msg-bot { background: #fff; border: 1px solid #e2e8f0; align-self: flex-start; border-bottom-left-radius: 4px; }
.ck-msg-user { background: #002B5B; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ck-msg-bot a { color: #0077B6; }
.ck-msg-bot strong { font-weight: 600; }

.ck-chatbot-quick {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid #e2e8f0;
}
.ck-quick-btn {
    padding: 5px 12px; border-radius: 20px; border: 1px solid #002B5B;
    background: #fff; color: #002B5B; font-size: .78rem; cursor: pointer; transition: all .15s;
}
.ck-quick-btn:hover { background: #002B5B; color: #fff; }

.ck-chatbot-form {
    display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; background: #fff;
}
.ck-chatbot-form input {
    flex: 1; border: 1px solid #e2e8f0; border-radius: 24px; padding: 10px 16px;
    font-size: .9rem; outline: none;
}
.ck-chatbot-form input:focus { border-color: #0077B6; }
.ck-chatbot-form button {
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: #002B5B; color: #fff; display: flex; align-items: center; justify-content: center;
}
.ck-chatbot-form button:disabled { opacity: .5; cursor: not-allowed; }

.ck-typing { display: flex; gap: 4px; padding: 10px 14px; }
.ck-typing span { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: ckBounce 1.2s infinite; }
.ck-typing span:nth-child(2) { animation-delay: .2s; }
.ck-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ckBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

.d-none { display: none !important; }

@media (max-width: 480px) {
    .ck-chatbot { bottom: 16px; right: 16px; }
    .ck-chatbot-panel { width: calc(100vw - 32px); height: calc(100vh - 100px); }
}
