/* ==========================================================================
   FRONTEND DESIGN INTERFACE COMPONENT SPECIFICATION
   ========================================================================== */
#mass-floating-suite-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2147483647; /* Enforces absolute visibility stack top layer */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#mass-suite-trigger-node {
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#mass-suite-trigger-node:hover { transform: translateY(-2px); }

/* Clean UI Status Indicators Animations Pulse Pulse */
.mass-pulse-glow {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: massStatusPulse 1.8s infinite;
}

@keyframes massStatusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

#mass-suite-frame-container {
    width: 380px;
    height: 520px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 75px;
    right: 0;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}
.mass-frame-hidden { display: none !important; opacity: 0; pointer-events: none; }

#mass-frame-header-node {
    background: #111111;
    color: #ffffff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mass-branding-meta { display: flex; align-items: center; gap: 8px; }
.mass-branding-meta h4 { margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
.mass-live-status-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; }
.mass-frame-close-action { background: none; border: none; color: #aaa; font-size: 22px; cursor: pointer; }
.mass-frame-close-action:hover { color: #fff; }

#mass-frame-viewport-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Operational Chat Bubble Layout Structures Bounded */
.mass-chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    max-width: 82%;
    line-height: 1.45;
    word-wrap: break-word;
}
.mass-bubble-ai { background: #ffffff; color: #111111; align-self: flex-start; border: 1px solid #e8e8e8; border-top-left-radius: 2px; }
.mass-bubble-user { background: #111111; color: #ffffff; align-self: flex-end; border-top-right-radius: 2px; }

#mass-frame-control-footer {
    padding: 12px;
    border-top: 1px solid #eeeeee;
    display: flex;
    gap: 8px;
    background: #ffffff;
    align-items: center;
}
#mass-client-input-field {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
#mass-client-input-field:focus { border-color: #111; }
#mass-dispatch-action-btn { background: #111; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }

/* Micro Downsampled Recording Node Element Toggle States */
#mass-audio-capture-node {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    padding: 8px 11px;
    border-radius: 50%;
    cursor: pointer;
}
#mass-audio-capture-node.mass-node-recording {
    background: #d91212;
    color: white;
    border-color: #d91212;
    animation: massAudioPulse 1.2s infinite;
}

@keyframes massAudioPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Active Inside-Chat Structural CTA Buy Now Button Hook */
.mass-chat-action-cta-btn {
    display: block;
    background: #d91212;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    width: 100%;
    box-shadow: 0 4px 12px rgba(217,18,18,0.25);
}
.mass-chat-action-cta-btn:hover { background: #111111; }

/* Responsive Grid Adaptation Framework Overrides Mobile Viewport */
@media (max-width: 480px) {
    #mass-suite-frame-container {
        width: 92vw;
        height: 75vh;
        right: -10px;
        bottom: 70px;
    }
}