/*==================================================
SCM SMART DOCK
==================================================*/

#scm-smart-dock{

    position:fixed;

    right:0;

    bottom:100px;

    width:52px;

    background:#fff;

    border-radius:12px 0 0 12px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    overflow:hidden;

    transition:width .25s ease;

    z-index:999999;

}

#scm-smart-dock:hover{

    width:150px;

}

/*====================*/

.dock-item{

    display:flex;

    align-items:center;

    width:220px;

    height:40px;

    text-decoration:none;

    color:#444;

    border-bottom:1px solid #eee;

    transition:.25s;

    padding:0 15px;

    box-sizing:border-box;

}

.dock-item:last-child{

    border-bottom:none;

}

/*====================*/

.dock-icon{

    position:relative;

    width:22px;

    min-width:22px;

    height:22px;

    display:flex;

    justify-content:center;

    align-items:center;

}

.dock-icon i{

    color:#603ec8;

    font-size:16px;

    transition:.25s;

}

/*====================*/

/*=========================================
Dock Text
=========================================*/

.dock-text{

    margin-left:14px;

    white-space:nowrap;

    color:#444;

    opacity:0;

    visibility:hidden;

    transition:opacity .25s;

    font-size:13px;

    font-weight:600;

}

#scm-smart-dock:hover .dock-text{

    opacity:1;

    visibility:visible;

}

/*====================*/

.dock-item:hover{

    background:#603ec8;

}

.dock-item:hover .dock-icon i{

    color:#fff;

}

.dock-item:hover>span:last-child{

    color:#fff;

}

/*====================*/

.dock-ai{

    background:#603ec8;

}

.dock-ai .dock-icon i{

    color:#fff;

}

.dock-ai>span:last-child{

    color:#fff;

    opacity:1;

}

/*====================*/

.dock-badge{

    position:absolute;

    top:-6px;

    right:-6px;

    min-width:16px;

    height:16px;

    padding:0 4px;

    border-radius:20px;

    background:#ff3b30;

    color:#fff;

    font-size:10px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

    line-height:1;

    border:2px solid #fff;

    box-sizing:border-box;

}

/*=========================================
SCM SMART ALERTS
=========================================*/

/* Bell ring */

@keyframes scmBellRing{

    0%{transform:rotate(0deg);}
    2%{transform:rotate(18deg);}
    4%{transform:rotate(-18deg);}
    6%{transform:rotate(15deg);}
    8%{transform:rotate(-15deg);}
    10%{transform:rotate(10deg);}
    12%{transform:rotate(0deg);}
    100%{transform:rotate(0deg);}

}

/* Badge Pulse */

@keyframes scmPulse{

    0%{

        transform:scale(1);

        box-shadow:0 0 0 rgba(255,59,48,.5);

    }

    50%{

        transform:scale(1.25);

        box-shadow:
        0 0 15px rgba(255,59,48,.9);

    }

    100%{

        transform:scale(1);

        box-shadow:0 0 0 rgba(255,59,48,.5);

    }

}

/* Purple Glow */

@keyframes scmGlow{

    0%{

        box-shadow:0 0 0 rgba(96,62,200,0);

    }

    50%{

        box-shadow:
        0 0 18px rgba(96,62,200,.55);

    }

    100%{

        box-shadow:0 0 0 rgba(96,62,200,0);

    }

}

#dock-notification.has-alert .dock-icon{

    animation:scmGlow 2.8s infinite;

    border-radius:50%;

}

#dock-notification.has-alert .dock-icon i{

    animation:scmBellRing 3s infinite;

    transform-origin:top center;

}

#dock-notification.has-alert .dock-badge{

    animation:scmPulse 1.5s infinite;

}


/*=========================================
SCM SMART TOAST
=========================================*/

#scm-smart-toast{

    position:fixed;

    right:60px;

    bottom:180px;

    background:#603ec8;

    color:#fff;

    padding:12px 18px;

    border-radius:14px;

    display:none;

    align-items:center;

    gap:10px;

    box-shadow:0 18px 40px rgba(0,0,0,.18);

    opacity:0;

    transform:translateX(30px);

    transition:
        opacity .35s,
        transform .35s;

    z-index:999999;

}

#scm-smart-toast.show{

    display:flex;

    opacity:1;

    transform:translateX(0);

}

#scm-smart-toast i{

    color:#fff;

}


/*====================*/

#dock-top{

    display:none;
     align-items:center;

}


/*====================*/

@media(max-width:768px){

    #scm-smart-dock{

        width:48px;

        bottom:150px;

    }

    #scm-smart-dock:hover{

        width:180px;

    }

    .dock-item{

        width:180px;

        height:42px;

    }

}


/*==================================================
SCM AI Action Button
==================================================*/

.scm-ai-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    margin-top:12px;

    padding:12px 18px;

    background:#603ec8;

    color:#fff;

    border-radius:10px;

    text-decoration:none;

    font-weight:600;

    transition:.25s;

    box-shadow:0 8px 20px rgba(96,62,200,.25);

}

.scm-ai-button:hover{

    background:#4d31a5;

    transform:translateY(-2px);

    box-shadow:0 12px 28px rgba(96,62,200,.35);

}

.scm-ai-response ul{

    margin:12px 0;

    padding-left:18px;

}

.scm-ai-response li{

    margin-bottom:8px;

}

/*End here*/


#scm-chat-toggle:hover{
    transform:scale(1.05);
}

#scm-chat-window{

    position:fixed;
    right:20px;
    bottom:30px;
    width:330px;
    height:480px;

    flex-direction:column;

    background:#fff;
    border-radius:16px;
    overflow:hidden;

    z-index:999999;
    box-shadow:0 10px 40px rgba(0,0,0,.18);
}

/* Hidden by default */
#scm-chat-window.scm-chat-hidden{
    display:none;
}

/* Visible when opened */
#scm-chat-window:not(.scm-chat-hidden){
    display:flex;
}

.scm-header{

    flex-shrink:0;

    background:#603ec8;

    color:#fff;

    padding:15px;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.scm-header small{
    display:block;
    opacity:.8;
}

#scm-close-chat{
    width:28px;
    height:28px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;
    border-radius:50%;

    transition:.2s;
}

#scm-close-chat:hover{
    background:rgba(255,255,255,.15);
}

#scm-chat-messages{

    flex:1;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    padding:15px;

    background:#f8f9fb;
}

.scm-bot-message,
.scm-user-message{
    margin-bottom:12px;
    padding:12px;
    border-radius:10px;
    max-width:100%;
}

.scm-bot-message{
    background:#fff;
}

.scm-user-message{
    background:#603ec8;
    color:#fff;
    margin-left:auto;
}

.scm-chat-input{

    display:flex;

    align-items:center;

    gap:10px;

    padding:12px;

    background:#fff;

    border-top:1px solid #eee;

    flex-shrink:0;
}

.scm-chat-input input{
    flex:1;
    border:none;
    padding:15px;
    outline:none;
}

.scm-chat-input button{
    border:none;
    background:#603ec8;
    color:#fff;
    cursor:pointer;
    padding: 8px;
    border-radius: 07px;
}



#scm-chat-suggestions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
}

.scm-suggestion{
    background:#f5f5f5;
    border:1px solid #ddd;
    border-radius:20px;
    padding:5px 1px;
    cursor:pointer;
    font-size:13px;
}

.scm-suggestion:hover{
    background:#603ec8;
    color:#fff;
}


/* Welcome area */
.scm-bot-message{
    font-size:14px;
    line-height:1.5;
}


/* Quick Actions */
/* 3-column grid */
.scm-quick-actions{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:4px;

   /* margin-top:0px;*/
}

/* Full-width payment button */
.scm-primary-action{

    margin-top:10px;
}

.scm-payment{

    width:100%;

    padding:11px;

    font-size:13px;

    font-weight:700;

    background:#603ec8;

    color:#fff;

    border:none;

    border-radius:10px;
}

.scm-payment:hover{

    background:#4e2eb3;

    transform:translateY(-2px);

    box-shadow:0 6px 18px rgba(96,62,200,.25);
}

/* Chips */
.scm-suggestion{

    width:100%;

    padding:10px 8px;

    border:1px solid #e5ddff;

    border-radius:10px;

    background:#f8f5ff;

    color:#603ec8;

    font-size:12px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

    text-align:center;

    white-space:nowrap;
}

.scm-suggestion:hover{

    background:#603ec8;

    color:#fff;

    transform:translateY(-2px);

    box-shadow:0 6px 16px rgba(96,62,200,.25);

}

#scm-user-question{
    flex:1;
    min-width:0;
}

#scm-send-message{
    flex-shrink:0;
}

/*Chat Bubles*/
.scm-bot-message{

    background:#fff;

    border-radius:12px;

    padding:12px;

    margin-bottom:12px;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

    word-break:break-word;
}

.scm-user-message{

    background:#603ec8;

    color:#fff;

    border-radius:12px;

    padding:12px;

    margin-bottom:12px;

    margin-left:40px;

    word-break:break-word;
}

/* Typing Indicator */
#scm-typing-indicator{
    padding:12px 15px;
    background:#f8f9fb;
}

.scm-typing-bubble{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;

    background:#fff;
    border-radius:20px;

    padding:10px 14px;

    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.scm-typing-bubble span{

    width:8px;
    height:8px;

    background:#603ec8;

    border-radius:50%;

    animation: scmTyping 1.4s infinite ease-in-out;
}

.scm-typing-bubble span:nth-child(2){
    animation-delay:.2s;
}

.scm-typing-bubble span:nth-child(3){
    animation-delay:.4s;
}

@keyframes scmTyping{

    0%,80%,100%{
        transform:scale(.5);
        opacity:.4;
    }

    40%{
        transform:scale(1);
        opacity:1;
    }

}


/*Footer*/
.scm-chat-footer{

    flex-shrink:0;

    text-align:center;

    padding:10px;

    font-size:11px;

    color:#999;

    background:#fff;

    border-top:1px solid #eee;
}



/* Welcome */
.scm-welcome-title{
    margin:0 0 6px;
    font-size:16px;
    font-weight:700;
    color:#222;
}

.scm-welcome-text{
    margin:0 0 14px;
    font-size:13px;
    line-height:1.5;
    color:#666;
}

/* Header */
.scm-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    background:#603ec8;
    color:#fff;
}

/* Takes remaining space */
.scm-header-info{
    flex:1;
}

/* Center text */
.scm-header-text{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.scm-header-text strong{
    display:block;
    color:#fff;
    font-size:16px;
    font-weight:700;
    line-height:1.2;
}

.scm-header-text small{
    display:block;
    margin-top:2px;
    color:rgba(255,255,255,.85);
    font-size:12px;
}

/* Buttons */
.scm-suggestion{
    padding:8px 14px;
    font-size:12px;
}