/* ============================================================
   FLOATING MULTI-AGENT MODE
   ============================================================ */
.trad-whatsapp-wrapper {
    position: relative;
    z-index: 9999;
    font-family: inherit;
}
.trad-whatsapp-floating {
    position: fixed;
}
.trad-whatsapp-floating-bottom-right {
    bottom: 30px;
    right: 30px;
}
.trad-whatsapp-floating-bottom-left {
    bottom: 30px;
    left: 30px;
}
.trad-whatsapp-inline {
    display: inline-block;
}
.trad-whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: #fff;
    cursor: pointer;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    gap: 10px;
}
.trad-whatsapp-button:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.trad-whatsapp-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.trad-whatsapp-text {
    font-size: 16px;
    font-weight: 500;
}
.trad-whatsapp-popup {
    position: absolute;
    bottom: calc(100% + 20px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10;
}
.trad-whatsapp-floating-bottom-left .trad-whatsapp-popup {
    right: auto;
    left: 0;
}
.trad-whatsapp-popup.trad-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.trad-whatsapp-header {
    background: #095e54;
    color: #fff;
    padding: 24px 20px;
    text-align: center;
}
.trad-whatsapp-header-icon {
    margin-bottom: 15px;
}
.trad-whatsapp-header-icon svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}
.trad-whatsapp-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.2;
}
.trad-whatsapp-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}
.trad-whatsapp-body {
    padding: 20px;
    background: #e5ddd5;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}
.trad-whatsapp-body::-webkit-scrollbar { width: 6px; }
.trad-whatsapp-body::-webkit-scrollbar-track { background: #e5ddd5; }
.trad-whatsapp-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
.trad-whatsapp-agent {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.trad-whatsapp-agent:last-child { margin-bottom: 0; }
.trad-whatsapp-agent:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.trad-whatsapp-agent-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}
.trad-whatsapp-agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.trad-whatsapp-agent-info { flex-grow: 1; }
.trad-whatsapp-agent-name { font-weight: 600; font-size: 15px; color: #333; margin: 0 0 3px; }
.trad-whatsapp-agent-tagline { font-size: 12px; color: #777; margin: 0; line-height: 1.3; }
.trad-whatsapp-agent-icon {
    width: 24px; height: 24px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trad-whatsapp-agent-icon svg { width: 12px; height: 12px; fill: currentColor; }


/* ============================================================
   INLINE CHAT WINDOW MODE
   ============================================================ */
.trad-wa-inline-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    font-family: inherit;
}

/* --- Chat Window Card --- */
.trad-wa-chatwin {
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    margin-bottom: 12px;
}
.trad-wa-chatwin.trad-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header */
.trad-wa-cw-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    color: #fff;
}
.trad-wa-cw-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.5);
}
.trad-wa-cw-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.25);
}
.trad-wa-cw-avatar-placeholder svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}
.trad-wa-cw-header-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.trad-wa-cw-hname {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trad-wa-cw-hstatus {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 5px;
}
.trad-wa-cw-dot {
    width: 8px;
    height: 8px;
    background: #7fff7a;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(127,255,122,0.6);
}

/* Body / Bubble */
.trad-wa-cw-body {
    background-color: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 32c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zM10 30c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm40 0c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z' fill='%23c9b99a' opacity='.2'/%3E%3C/svg%3E");
    padding: 16px;
    min-height: 120px;
}
.trad-wa-cw-bubble {
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 10px 12px 6px;
    max-width: 90%;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.09);
    position: relative;
}
.trad-wa-cw-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #fff transparent transparent;
}
.trad-wa-cw-sender {
    font-size: 12px;
    font-weight: 600;
    color: #cc8b2f;
    margin-bottom: 4px;
}
.trad-wa-cw-msg {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
}
.trad-wa-cw-time {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
}

/* Footer / Reply Bar */
.trad-wa-cw-footer {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 10px 8px 14px;
    text-decoration: none;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.trad-wa-cw-footer:hover { background: #f9f9f9; }
.trad-wa-cw-placeholder {
    flex-grow: 1;
    font-size: 14px;
    color: #aaa;
    pointer-events: none;
}
.trad-wa-cw-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trad-wa-cw-send-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* --- Trigger Buttons --- */
.trad-wa-cw-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border-radius: 50px;
    background: #cc8b2f;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    user-select: none;
    /* gap, padding, margin, border-radius overridden by Elementor controls */
}
.trad-wa-cw-btn:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transform: translateY(-2px);
}

/* Avatar + Name + Subtitle */
.trad-wa-btn-avatar-sub {
    padding: 8px 18px 8px 8px;
    gap: 10px;
}
.trad-wa-btn-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.5);
}
.trad-wa-btn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trad-wa-btn-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.trad-wa-btn-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.82);
    line-height: 1.2;
}

/* Avatar + Name only */
.trad-wa-btn-avatar-name {
    padding: 6px 16px 6px 6px;
    gap: 8px;
}
.trad-wa-btn-avatar-name .trad-wa-btn-name {
    font-size: 15px;
}

/* Icon + Text */
.trad-wa-btn-icon-text {
    padding: 10px 20px;
    gap: 10px;
    background: #25d366;
}
.trad-wa-btn-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
}
.trad-wa-btn-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
.trad-wa-btn-icon-text .trad-wa-btn-name {
    font-size: 15px;
    font-weight: 600;
}
