/* Marzuki WhatsApp Marketing Pro Styling */
#mwap-widget-root {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Positions */
.mwap-pos-bottom-right { bottom: 25px; right: 25px; }
.mwap-pos-bottom-left { bottom: 25px; left: 25px; }
.mwap-pos-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.mwap-pos-center-modal { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Floating Trigger Button */
.mwap-floating-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    border: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.mwap-floating-btn:hover {
    transform: scale(1.08);
}

.mwap-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.6;
    animation: mwap-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes mwap-ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Chat Card */
.mwap-card {
    width: 340px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    margin-bottom: 16px;
    animation: mwap-slide-up 0.3s ease-out;
}

@keyframes mwap-slide-up {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.mwap-card-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mwap-card-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.mwap-badge-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    margin-right: 6px;
}

.mwap-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.mwap-card-body {
    padding: 16px;
    background: #f8fafc;
}

.mwap-card-subtitle {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Lead Form */
.mwap-lead-form {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mwap-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    outline: none;
}

.mwap-input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Agent List */
.mwap-agent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.mwap-agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mwap-agent-item:hover {
    border-color: #25d366;
    background: #f0fdf4;
    transform: translateY(-1px);
}

.mwap-agent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #25d366;
}

.mwap-agent-meta {
    flex: 1;
    min-width: 0;
}

.mwap-agent-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.mwap-agent-role {
    display: block;
    font-size: 11px;
    color: #64748b;
}

.mwap-chat-arrow {
    color: #25d366;
    font-size: 14px;
}

/* Shortcode Buttons */
.mwap-shortcode-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
}

.mwap-shortcode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.mwap-shortcode-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
}

.mwap-shortcode-btn:hover {
    background: #128c7e;
    transform: scale(1.02);
}