.vexwod-wa-widget{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.vexwod-wa-fab{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 12px 14px;
    background-color: #25D366 !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
}

.vexwod-wa-fab:hover{ filter: brightness(.98); }
.vexwod-wa-fab-icon{ display:flex; }
.vexwod-wa-fab-text{ font-weight: 700; }

.vexwod-wa-panel{
    width: 320px;
    max-width: calc(100vw - 36px);
    position: absolute;
    right: 0;
    bottom: 58px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    border: 1px solid rgba(0,0,0,.06);
}

.vexwod-wa-header{
    background: #25D366;
    color: #fff;
    padding: 14px 14px 12px;
    position: relative;
}

.vexwod-wa-header-title{
    font-weight: 800;
    font-size: 15px;
}

.vexwod-wa-header-subtitle{
    font-size: 12px;
    opacity: .95;
    margin-top: 6px;
    line-height: 1.3;
}

.vexwod-wa-close{
    position: absolute;
    right: 10px;
    top: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,.18);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.vexwod-wa-body{
    padding: 10px;
    background: #f7f7f8;
}

.vexwod-wa-empty{
    background:#fff;
    border:1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
}

.vexwod-wa-agents{
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.vexwod-wa-agent-btn{
    width: 100%;
    border: 1px solid rgba(0,0,0,.07);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.vexwod-wa-agent-btn:hover{
    border-color: rgba(0,0,0,.12);
}

.vexwod-wa-agent-avatar{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vexwod-wa-agent-avatar img{
    width: 42px;
    height: 42px;
    object-fit: cover;
    display: block;
}

.vexwod-wa-agent-avatar--placeholder{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e6e6e8;
    display: block;
}

.vexwod-wa-agent-info{
    display:flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.vexwod-wa-agent-name{
    font-weight: 800;
    font-size: 13px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vexwod-wa-agent-role{
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Form view */
.vexwod-wa-back{
    border: none;
    background: transparent;
    color: #2271b1;
    cursor: pointer;
    font-weight: 700;
    padding: 6px 2px 10px;
}

.vexwod-wa-selected{
    display:flex;
    align-items:center;
    gap: 10px;
    background:#fff;
    border:1px solid rgba(0,0,0,.06);
    border-radius:10px;
    padding: 10px;
    margin-bottom: 10px;
}

.vexwod-wa-selected-avatar img{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display:block;
}

.vexwod-wa-selected-name{
    font-weight: 800;
    font-size: 13px;
}

.vexwod-wa-selected-title{
    font-size: 12px;
    color:#666;
}

.vexwod-wa-form{
    background:#fff;
    border:1px solid rgba(0,0,0,.06);
    border-radius:10px;
    padding: 10px;
}

.vexwod-wa-field{
    display:block;
    margin-bottom: 10px;
    font-size: 12px;
    color:#333;
}

.vexwod-wa-field span{
    display:block;
    font-weight: 700;
    margin-bottom: 6px;
}

.vexwod-wa-field input,
.vexwod-wa-field textarea{
    width: 100%;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    outline: none;
}

.vexwod-wa-field textarea{ resize: vertical; }

.vexwod-wa-send{
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 11px 12px;
    background: #25D366;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.vexwod-wa-send:hover{ filter: brightness(.98); }

.vexwod-wa-error{
    margin-top: 10px;
    color: #b32d2e;
    font-weight: 700;
    font-size: 12px;
}
