﻿
/* *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }*/
/*body {
            font-family: 'Nunito', sans-serif;*/
/* background: linear-gradient(135deg, #e8f4fd 0%, #f0f9f0 50%, #fdf6e8 100%);
            //min-height: 100vh;*/
/*}*/
:root {
    /*--pink: #FF2D78;*/
    /*--green: #7DC829;*/
    /*--blue: #00AEEF;*/
    /*--dark: #1a1a2e;*/
    /*--grad: linear-gradient(135deg, #FF2D78, #00AEEF);*/
    /*--grad2: linear-gradient(135deg, #7DC829, #00AEEF);*/
}

#chatbox {
    width: 350px;
    position: fixed;
    bottom: 0;
    right: 20px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.22);
    display: none;
    overflow: hidden;
    z-index: 9999;
    animation: slideUp 0.35s ease;
    font-family: 'Nunito', sans-serif;
    /* max-height:450px;
            overflow-y:scroll;
            scrollbar-width: none;
            -ms-overflow-style: none; */
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cb-header {
    background: linear-gradient(135deg, #FF2D78, #00AEEF);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cb-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cb-header-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.35);
    overflow: hidden;
}

.cb-brand-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

    .cb-brand-logo span.pink {
        color: #FFB3CC;
    }

    .cb-brand-logo span.green {
        color: #C5F060;
    }

    .cb-brand-logo span.blue {
        color: #A0E8FF;
    }

    .cb-brand-logo span.white {
        color: #fff;
    }

.cb-header-status {
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    margin-top: 2px;
}

.cb-online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C5F060;
    margin-right: 4px;
    vertical-align: middle;
    box-shadow: 0 0 6px #C5F060;
}

.cb-header-actions {
    display: flex;
    gap: 12px;
}

    .cb-header-actions button {
        background: none;
        border: none;
        color: rgba(255,255,255,0.6);
        cursor: pointer;
        font-size: 16px;
        padding: 0;
        transition: color .2s;
    }

        .cb-header-actions button:hover {
            color: #fff;
        }

/* ══ CHAT BODY ══ */
#chat-body {
    padding: 14px;
    max-height: 430px;
    overflow-y: auto;
    background: #f4f6f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    #chat-body::-webkit-scrollbar {
        width: 4px;
    }

    #chat-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

.bot-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.bot-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF2D78, #00AEEF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    overflow: hidden;
}

.bot-content {
    display: flex;
    flex-direction: column;
    max-width: 84%;
}

.bot-bubble {
    background: #fff;
    border-radius: 4px 16px 16px 16px;
    border-left: 3px solid #FF2D78;
    padding: 9px 13px;
    font-size: 13px;
    color: #222;
    line-height: 1.55;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.user-row {
    display: flex;
    justify-content: flex-end;
}

.user-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 78%;
}

.user-bubble {
    background: linear-gradient(135deg, #FF2D78, #00AEEF);
    color: #fff;
    border-radius: 16px 4px 16px 16px;
    padding: 9px 13px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(255,45,120,0.25);
}

.fab-online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 99999;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(76,175,80,0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(76,175,80,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76,175,80,0);
    }
}

.cb-ts {
    font-size: 10px;
    color: #bbb;
    margin-top: 3px;
    padding-left: 2px;
}

.cb-ts-right {
    text-align: right;
    padding-right: 2px;
}

.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 9px 13px;
    background: #fff;
    border-radius: 4px 16px 16px 16px;
    border-left: 3px solid #FF2D78;
    width: fit-content;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FF2D78;
    animation: bounce 1.2s infinite;
}

    .dot:nth-child(2) {
        animation-delay: .2s;
        background: #7DC829;
    }

    .dot:nth-child(3) {
        animation-delay: .4s;
        background: #00AEEF;
    }

@keyframes bounce {
    0%,60%,100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

.opt-section-label {
    font-size: 11px;
    font-weight: 800;
    color: #FF2D78;
    letter-spacing: .6px;
    margin: 10px 0 5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.opt-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.opt-btn {
    background: #f9f9f9;
    border: 1.5px solid #ddd;
    border-radius: 22px;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
    text-align: left;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
}

    .opt-btn:hover:not(.selected) {
        background: #fff0f5;
        border-color: #FF2D78;
    }

    .opt-btn.selected {
        background: linear-gradient(135deg, #FF2D78, #00AEEF);
        color: #fff;
        border-color: transparent;
    }

    .opt-btn[disabled] {
        cursor: default;
        pointer-events: none;
    }

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.radio-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 22px;
    border: 1.5px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-family: 'Nunito', sans-serif;
    transition: all .2s;
}

    .radio-btn .radio-circle {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid #ccc;
        flex-shrink: 0;
        transition: all .2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .radio-btn.selected {
        background: linear-gradient(135deg, #FF2D78, #00AEEF);
        color: #fff;
        border-color: transparent;
    }

        .radio-btn.selected .radio-circle {
            border-color: rgba(255,255,255,0.8);
            background: rgba(255,255,255,0.3);
        }

    .radio-btn:hover:not(.selected) {
        background: #fff0f5;
        border-color: #FF2D78;
    }

/* YES/NO */
.yn-row {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

.yn-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 22px;
    border: 1.5px solid #ddd;
    background: #f9f9f9;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: all .2s;
    text-align: center;
    color: #333;
}

    .yn-btn.selected {
        background: linear-gradient(135deg, #FF2D78, #00AEEF);
        color: #fff;
        border-color: transparent;
    }

    .yn-btn:hover:not(.selected) {
        background: #fff0f5;
        border-color: #FF2D78;
    }

.confirm-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #7DC829, #00AEEF);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all .2s;
    font-family: 'Nunito', sans-serif;
}

    .confirm-btn:hover:not(:disabled) {
        filter: brightness(1.1);
    }

    .confirm-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

#cb-input-area {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#cb-prefix {
    font-size: 13px;
    color: #444;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

#cb-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

#cb-user-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #222;
    background: transparent;
    font-family: 'Nunito', sans-serif;
}

    #cb-user-input::placeholder {
        color: #bbb;
    }

#cb-send-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 20px;
    padding: 0 4px;
    transition: transform .15s, color .15s;
    pointer-events: none;
}

    #cb-send-btn:hover {
        transform: scale(1.2);
    }

#cb-final-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 26px 18px;
    text-align: center;
    background: #fff;
    gap: 0;
}

.cb-final-emoji {
    font-size: 60px;
    margin-bottom: 12px;
}

.cb-final-text {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 18px;
}

.cb-final-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

.cb-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    transition: all .2s;
}

    .cb-action-btn:hover {
        transform: translateY(-1px);
    }

.cb-btn-appt:hover {
    background: linear-gradient(135deg, #FF2D78, #ff6fa8) !important;
}

.cb-btn-appt {
    background: linear-gradient(135deg, #FF2D78, #ff6fa8) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.cb-btn-call {
    background: linear-gradient(135deg, #7DC829, #a8e05f);
    color: #fff;
}

.cb-btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.cb-wa-note {
    font-size: 12px;
    color: #666;
    margin: 4px 0 2px;
    line-height: 1.5;
}

.cb-restart-btn {
    margin-top: 14px;
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .cb-restart-btn:hover {
        color: #FF2D78;
    }

#chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7DC829, #00AEEF);
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 9999;
    /*overflow: hidden;*/
    border: none;
    box-shadow: 0 4px 18px rgba(255,45,120,0.45);
    transition: transform .2s;
}

    #chat-fab:hover {
        transform: scale(1.1);
    }

.fab-inner {
    /*display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;*/
    /*overflow: hidden;*/
}

.fab-tooth {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.fab-label {
    font-family: 'Poppins', sans-serif;
    font-size: 7px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1;
}

.dic-welcome-banner {
    background: linear-gradient(135deg, #FF2D78 0%, #00AEEF 100%);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    text-align: center;
}

    .dic-welcome-banner .dic-logo-text {
        font-family: 'Poppins', sans-serif;
        font-weight: 800;
        font-size: 15px;
        line-height: 1.1;
    }

        .dic-welcome-banner .dic-logo-text .w-pink {
            color: #FFB3CC;
        }

        .dic-welcome-banner .dic-logo-text .w-green {
            color: #C5F060;
        }

        .dic-welcome-banner .dic-logo-text .w-blue {
            color: #A0E8FF;
        }

        .dic-welcome-banner .dic-logo-text .w-white {
            color: #fff;
        }

    .dic-welcome-banner .dic-tagline {
        font-size: 11px;
        color: rgba(255,255,255,0.85);
        margin-top: 4px;
    }
