/* EzzyAI Launcher */

#ezzy-launcher{

    position:fixed;

    right:30px;

    bottom:30px;

    width:64px;

    height:64px;

    border:none;

    border-radius:50%;

    background:#2563EB;

    color:#fff;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:0 12px 30px rgba(0,0,0,.18);

    transition:.25s;

    z-index:999999;

}

#ezzy-launcher:hover{

    transform:translateY(-3px);

}

#ezzy-launcher svg{

    width:28px;

    height:28px;

}

/* ==========================
   Chat Window
========================== */

#ezzy-window{

    position:fixed;

    right:30px;

    bottom:110px;

    width:380px;

    height:70vh;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    display:none;

    flex-direction:column;

    box-shadow:0 20px 60px rgba(0,0,0,.20);

    z-index:999998;

}

/* Tablet */
@media (max-width:1024px){

#ezzy-window{

    width:420px;

    height:80vh;

	}

}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width:767px){

    /* Chat Window */

    #ezzy-window{

        position:fixed;

        top:0;

        left:0;

        right:0;

        bottom:90px;

        width:100%;

        height:auto;

        border-radius:0;

    }

    /* Header */

    .ezzy-header{

        padding:14px 18px;

    }

    .ezzy-header h3{

        font-size:20px;

    }

    /* Messages */

    .ezzy-body{

        padding:18px;

    }

    .ezzy-bubble{

        max-width:calc(100vw - 90px);

    }

    /* Footer */

    .ezzy-footer{

        padding:14px;

        padding-bottom:calc(14px + env(safe-area-inset-bottom));

    }

    /* Launcher */

    #ezzy-launcher-wrapper{

        bottom:90px !important;

        right:20px !important;

    }

    /* Keep Need Help visible */

    #ezzy-launcher-label{

        display:flex;

        height:42px;

        padding:0 20px;

        font-size:14px;

    }

}

.ezzy-header{

    background:#2563EB;

    color:#fff;

    padding:18px 20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.ezzy-header h3{

    margin:0;

    font-size:22px;

    font-weight:700;

    line-height:1.2;

    color:#fff;

    font-family:Inter,Arial,sans-serif;

}

.ezzy-header small{

    display:block;

    margin-top:6px;

    font-size:13px;

    color:rgba(255,255,255,.85);

    font-family:Inter,Arial,sans-serif;

}

#ezzy-close{

    width:34px;

    height:34px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.2);

    color:#fff;

    cursor:pointer;

    font-size:20px;

}

.ezzy-body{

    flex:1;

    overflow-y:auto;

    padding:24px;

}

.ezzy-body h2{

    margin:0 0 16px;

    font-size:28px;

    font-weight:700;

    line-height:1.2;

    color:#111827;

}

.ezzy-body p{

    margin:0;

    font-size:15px;

    line-height:1.7;

    color:#6B7280;

}

/* ===========================
   BRAND
=========================== */

.ezzy-brand h3{

    margin:0;

    color:#fff;

    font-size:18px;

}

.ezzy-brand small{

    display:block;

    margin-top:4px;

    color:rgba(255,255,255,.85);

    font-size:12px;

}

.ezzy-status{

    display:flex;

    align-items:center;

    gap:6px;

    margin-top:6px;

    font-size:12px;

    color:#E5E7EB;

}

.ezzy-dot{

    width:8px;

    height:8px;

    background:#22C55E;

    border-radius:50%;

}

/* ===========================
   Welcome Card
=========================== */

.ezzy-card{

    background:#F8FAFC;

    border:1px solid #E5E7EB;

    border-radius:16px;

    padding:22px;

    text-align:center;

}

.ezzy-avatar{

    width:60px;

    height:60px;

    background:#2563EB;

    color:#fff;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    margin:0 auto 16px;

}

.ezzy-card h2{

    margin:0;

    font-size:24px;

}

.ezzy-card p{

    margin-top:12px;

    color:#6B7280;

}

.ezzy-sub{

    font-size:14px;

}

/* ===========================
   Quick Actions
=========================== */

.ezzy-actions{

    margin-top:20px;

    display:flex;

    flex-direction:column;

    gap:12px;

    margin-bottom:20px;

}

.ezzy-action{

    border:none;

    background:#fff;

    border:1px solid #E5E7EB;

    border-radius:12px;

    padding:14px 18px;

    cursor:pointer;

    text-align:left;

    transition:.25s;

    font-size:15px;

}

.ezzy-action:hover{

    border-color:#2563EB;

    background:#F8FAFC;

}

/* ===========================
   Footer
=========================== */

.ezzy-footer{

    display:flex;

    gap:10px;

    padding:16px;

    border-top:1px solid #E5E7EB;

    background:#fff;

    flex-shrink:0;

}

#ezzy-message{

    flex:1;

    border:1px solid #D1D5DB;

    border-radius:999px;

    padding:12px 18px;

    outline:none;

}

#ezzy-send{

    width:46px;

    height:46px;

    border:none;

    border-radius:50%;

    background:#2563EB;

    color:#fff;

    cursor:pointer;

}

/* ============================
   Better Welcome Card
============================ */

.ezzy-text{

    margin-top:12px;

    font-size:15px;

    color:#4B5563;

}

.ezzy-sub{

    margin-top:8px;

    font-size:13px;

    color:#6B7280;

}

/* ============================
   Premium Quick Actions
============================ */

.ezzy-action{

    display:flex;

    justify-content:space-between;

    align-items:center;

    width:100%;

    padding:16px 18px;

    border:1px solid #E5E7EB;

    border-radius:14px;

    background:#fff;

    cursor:pointer;

    transition:.25s;

}

.ezzy-action strong{

    display:block;

    font-size:15px;

}

.ezzy-action small{

    display:block;

    margin-top:4px;

    color:#6B7280;

    font-size:13px;

}

.ezzy-action span{

    font-size:20px;

    color:#2563EB;

}

.ezzy-action:hover{

    background:#F8FAFC;

    border-color:#2563EB;

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(37,99,235,.10);

}
/* ==========================
   Messages
========================== */

#ezzy-messages{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.ezzy-message{

    display:flex;

    align-items:flex-start;

    gap:12px;

}

.ezzy-avatar-small{

    width:42px;

    height:42px;

    border-radius:50%;

    background:#2563EB;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

    overflow:hidden;

}

.ezzy-avatar-small img{

    width:100%;

    height:100%;

    object-fit:contain;

    display:block;

}

.ezzy-bubble{

    background:#F8FAFC;

    border:1px solid #E5E7EB;

    border-radius:16px;

    padding:14px 18px;

    max-width:240px;

}

.ezzy-bubble strong{

    display:block;

    margin-bottom:8px;

    font-size:14px;

}

.ezzy-bubble p{

    margin:0 0 8px;

    font-size:14px;

    line-height:1.6;

}

.ezzy-bubble p:last-child{

    margin-bottom:0;

}

/* ===============================
   User Bubble
================================ */

.ezzy-message-user{

    justify-content:flex-end;

}

.ezzy-user-bubble{

    background:#2563EB;

    color:#fff;

}

.ezzy-user-bubble p{

    color:#fff;

}

.ezzy-message{

    animation:ezzyFade .25s ease;

}

@keyframes ezzyFade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ----------------------------------------------------------
   Markdown Formatting
---------------------------------------------------------- */

.ezzy-bubble h1,
.ezzy-bubble h2,
.ezzy-bubble h3,
.ezzy-bubble h4{
    margin:12px 0 8px;
    font-weight:700;
}

.ezzy-bubble p{
    margin:8px 0;
    line-height:1.6;
}

.ezzy-bubble ul,
.ezzy-bubble ol{
    margin:10px 0 10px 20px;
    padding-left:18px;
}

.ezzy-bubble li{
    margin:6px 0;
}

.ezzy-bubble strong{
    font-weight:700;
}

.ezzy-bubble a{
    color:#2563eb;
    text-decoration:underline;
}

.ezzy-bubble pre{
    background:#f5f5f5;
    padding:12px;
    border-radius:8px;
    overflow:auto;
}

.ezzy-bubble code{
    font-family:Consolas, monospace;
}

.ezzy-bubble table{
    width:100%;
    border-collapse:collapse;
    margin:12px 0;
}

.ezzy-bubble th,
.ezzy-bubble td{
    border:1px solid #ddd;
    padding:8px;
    text-align:left;
}

/* ==========================================================
   Launcher Wrapper
========================================================== */

#ezzy-launcher-wrapper{

    position:fixed;

    display:flex;

    align-items:center;

    z-index:999999;

}

/* Right Position */

#ezzy-launcher-wrapper.right{

    flex-direction:row;

}

/* Left Position */

#ezzy-launcher-wrapper.left{

    flex-direction:row-reverse;

}

/* ==========================================================
   Launcher Label
========================================================== */

#ezzy-launcher-label{

    background:#fff;

    color:#374151;

    height:48px;

    padding:0 26px;

    border-radius:999px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:15px;

    font-weight:600;

    white-space:nowrap;

    box-shadow:0 10px 25px rgba(0,0,0,.12);

    transition:.25s;

}

/* overlap */

#ezzy-launcher-wrapper.right #ezzy-launcher-label{

    margin-right:-18px;

    padding-right:42px;

}

#ezzy-launcher-wrapper.left #ezzy-launcher-label{

    margin-left:-18px;

    padding-left:42px;

}

/* ==========================================================
   Launcher Logo
========================================================== */

#ezzy-launcher{

    position:relative;

    flex-shrink:0;

    border:none;

    border-radius:50%;

    background:#2563EB;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.18);

    transition:.25s;

}

#ezzy-launcher:hover{

    transform:translateY(-3px);

}

#ezzy-launcher img{

    display:block;

    object-fit:contain;

    object-position:center;

}

@media (max-width:767px){

    #ezzy-launcher-label{

        display:none;

    }

}