/* orbit-demo-widget.css
 * Orbit Demo Section Widget - Complete Styling
 * Dark theme optimized for Elementor integration
 */

/* ═══════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Variables)
   ═══════════════════════════════════════════════════════════════ */

.commplify-live-demo-widget {
    /* Light Theme (default — matches the WordPress/Elementor page) */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.3);
    --accent: #db2777;
    --accent-glow: rgba(219, 39, 119, 0.3);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    
    /* Fonts */
    --font-heading: 'Overpass', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-subheading: 'Lato', sans-serif;
    --font-nav: 'Inter', sans-serif;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #2D5BFF 0%, #7A5CFF 50%, #3CE6FF 100%);
    --gradient-2: linear-gradient(135deg, #0B85AF 0%, #2D5BFF 50%, #FF3FA4 100%);
    --gradient-3: linear-gradient(135deg, #6366F1 0%, #8B5CF6 40%, #EC4899 75%, #F472B6 100%);
    --current-gradient: var(--gradient-1);
    --gradient-main: var(--current-gradient);
    --gradient-1-light: linear-gradient(135deg, #809CFF 0%, #A08AFF 50%, #8CF4FF 100%);
    --gradient-2-light: linear-gradient(135deg, #56B4CA 0%, #7C8CFF 50%, #FF7FC4 100%);
    --gradient-3-light: linear-gradient(135deg, #989AF7 0%, #B89CF9 40%, #F58FC3 75%, #F9A9D3 100%);
    --current-gradient-light: var(--gradient-1-light);
    --gradient-4: linear-gradient(135deg, #0B85AF 0%, #FF3FA4 100%);
    --gradient-4-light: linear-gradient(135deg, #56B4CA 0%, #FF9BC8 100%);
    
    /* Shadows and Spacing */
    --br-dflt: 12px;
    --br-nav: 0, 0, 15px, 15px;
    --bg-semi-trans: rgba(255, 255, 255, 0.1);
}

/* Dark Theme (when [data-theme="dark"] or .dark-theme is set on a parent) */
[data-theme="dark"] .commplify-live-demo-widget,
.dark-theme .commplify-live-demo-widget {
    --bg-body: #050507;
    --bg-surface: #0f1016;
    --bg-glass: rgba(20, 20, 25, 0.55);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #ec4899;
    --accent-glow: rgba(236, 72, 153, 0.5);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}


/* ═══════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

.commplify-live-demo-widget {
    color: var(--text-main);
    font-family: var(--font-body);
    box-sizing: border-box;
}

.commplify-live-demo-widget * {
    box-sizing: border-box;
}

.commplify-live-demo-widget .glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION & CONTAINER LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.commplify-live-demo-widget.orbit-demo {
    /* No background — inherits from the Elementor page/section */
    padding: 4rem 0;
    width: 100%;
}

.commplify-live-demo-widget .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.commplify-live-demo-widget .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.commplify-live-demo-widget .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: inherit; /* inherit from page so it works on both light & dark pages */
    font-family: var(--font-heading);
}

.commplify-live-demo-widget .section-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   ORBIT INTERFACE STYLES
   ═══════════════════════════════════════════════════════════════ */




/* Demo container for the orbit simulation */
.commplify-live-demo-widget .orbit-interface {
    width: 100%;
    max-width: 790px;
    margin: 0 auto;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Tab bar for the orbit demo modules */
.commplify-live-demo-widget .orbit-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
}

.commplify-live-demo-widget .orbit-tab {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: background 0.3s, color 0.3s;
}

.commplify-live-demo-widget .orbit-tab.active {
    background: var(--primary);
    color: #fff;
}

/* Content area for the orbit demo messages */
.commplify-live-demo-widget .orbit-content {
    flex: 1;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--text-main);
}

/* Individual message in the orbit demo */
.commplify-live-demo-widget .orbit-message {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Unique Selling Points (USP) Section */
.commplify-live-demo-widget .usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.commplify-live-demo-widget .usp-card {
    padding: 1.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background 0.3s ease;
}

.commplify-live-demo-widget .usp-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.commplify-live-demo-widget .usp-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.commplify-live-demo-widget .usp-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
}

.commplify-live-demo-widget .usp-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Simulation mode toggle buttons below the core capabilities header */
.commplify-live-demo-widget .sim-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.commplify-live-demo-widget .sim-mode-toggle button {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.commplify-live-demo-widget .sim-mode-toggle button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Orbit modules graphical simulation container */
.commplify-live-demo-widget .orbit-sim {
    display: none;
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.commplify-live-demo-widget .orbit-sim .module-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    gap: 1rem;
}

.commplify-live-demo-widget .orbit-sim .module-icon {
    font-size: 3rem;
}

.commplify-live-demo-widget .orbit-sim .module-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.commplify-live-demo-widget .orbit-sim .module-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 400px;
}

/* Show the orbit simulation when active */
.commplify-live-demo-widget .orbit-active .orbit-sim {
    display: block;
}

/* Hide the text-based demo when orbit mode is active */
.commplify-live-demo-widget .orbit-active #demo {
    display: none;
}

/* Orbit mode toggle for switching between text and graphic demos */
.commplify-live-demo-widget .orbit-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.commplify-live-demo-widget .orbit-mode-btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.commplify-live-demo-widget .orbit-mode-btn:hover {
    background: rgba(255,255,255,0.05);
}

.commplify-live-demo-widget .orbit-mode-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Orbit graphic container */
.commplify-live-demo-widget .orbit-graphic {
    min-height: 260px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.commplify-live-demo-widget .orbit-graphic.hidden {
    display: none;
}

/* Graphic module container */
.commplify-live-demo-widget .graphic-module {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.commplify-live-demo-widget .graphic-module .icon-large {
    font-size: 3rem;
    display: inline-block;
    animation: pop 0.8s ease-out forwards;
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Co-QA bars animation */
.commplify-live-demo-widget .bars {
    display: flex;
    gap: 0.3rem;
    align-items: flex-end;
    height: 50px;
}

.commplify-live-demo-widget .bars .bar {
    width: 8px;
    background: var(--primary);
    animation: bar-anim 1s infinite ease-in-out alternate;
    border-radius: 4px;
}

.bars .bar:nth-child(1) { animation-duration: 0.8s; }
.bars .bar:nth-child(2) { animation-duration: 0.6s; }
.bars .bar:nth-child(3) { animation-duration: 0.9s; }
.bars .bar:nth-child(4) { animation-duration: 0.7s; }
.bars .bar:nth-child(5) { animation-duration: 1s; }

@keyframes bar-anim {
    0% { height: 10px; }
    100% { height: 50px; }
}

/* Emotion gauge */
.commplify-live-demo-widget .emotion-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.commplify-live-demo-widget .gauge-track {
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.commplify-live-demo-widget .gauge-pointer {
    width: 20px;
    height: 6px;
    background: var(--primary);
    border-radius: 3px;
    position: absolute;
    left: 0;
    animation: slide-gauge 2s infinite ease-in-out;
}

@keyframes slide-gauge {
    0% { left: 0; }
    50% { left: 80%; }
    100% { left: 10%; }
}

/* Workflow builder animation */
.commplify-live-demo-widget .workflow {
    display: flex;
    gap: 1rem;
}

.commplify-live-demo-widget .workflow .node {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--primary);
    animation: bob 1s infinite ease-in-out alternate;
}

.workflow .node:nth-child(2) { animation-delay: 0.3s; }
.workflow .node:nth-child(3) { animation-delay: 0.6s; }

@keyframes bob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Mega menu styling */
.commplify-live-demo-widget .mega-menu {
    display: none;
    /* Fix mega menu positioning: use fixed positioning so it aligns with
       the navigation bar regardless of scrolling. Place it below the nav
       using a constant offset (approximately the nav height). */
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.commplify-live-demo-widget .mega-menu.open {
    display: block;
}


/* Mega menu layout: fixed left visual + 3 content columns (2 rows) */
.commplify-live-demo-widget .mega-columns {
  display:grid;
  grid-template-columns: 320px repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* Make the visual column span all grid rows (so it matches total menu height) */
.commplify-live-demo-widget .mega-column.mega-visual {
  grid-row: 1 / -1;
  padding: 0;
}

/* Visual media should stretch to full available height */
.commplify-live-demo-widget .mega-visual-media {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Responsive: stack on smaller widths */
@media (max-width: 1100px){
  .commplify-live-demo-widget .mega-columns {
    grid-template-columns: 280px repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px){
  .commplify-live-demo-widget .mega-columns {
    grid-template-columns: 1fr;
  }
  .commplify-live-demo-widget .mega-column.mega-visual {
    grid-row: auto;
  }
  .commplify-live-demo-widget .mega-visual-media {
    min-height: 200px;
  }
}
/* ===== Mega Menu: force proper leftmost visual + no items under image ===== */

/* Remove container padding effect by using mega-inner wrapper */
.commplify-live-demo-widget .mega-menu .mega-inner {
  padding: 0;            /* no 6rem padding */
  max-width: none;       /* use full mega-menu width */
  margin: 0;             /* no centering constraints */
}

/* Fixed 4-column grid: [visual] + 3 content columns */
.commplify-live-demo-widget .mega-menu .mega-columns {
  display: grid;
  grid-template-columns: 360px repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  grid-auto-flow: row;   /* predictable placement */
}

/* Visual ALWAYS stays in column 1 and spans all rows */
.commplify-live-demo-widget .mega-menu .mega-column.mega-visual {
  grid-column: 1;
  grid-row: 1 / -1;
  padding: 0;
}



/* Responsive */
@media (max-width: 1100px){
  .commplify-live-demo-widget .mega-menu .mega-columns {
    grid-template-columns: 320px repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px){
  .commplify-live-demo-widget .mega-menu .mega-columns {
    grid-template-columns: 1fr;
  }
  .commplify-live-demo-widget .mega-menu .mega-column.mega-visual {
    grid-row: auto;
  }
  .commplify-live-demo-widget .mega-menu .mega-visual-media {
    min-height: 200px;
  }
}




/* ===== Mega menu layout: LEFT visual + RIGHT 4-col grid (matches your target screenshot) ===== */

.commplify-live-demo-widget .mega-menu .mega-layout {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;    /* makes visual match height of grid */
  width: 100%;
}

/* Left image column */
.commplify-live-demo-widget .mega-menu .mega-visual {
  flex: 0 0 300px;         /* width of red-marked area */
  display: flex;
  min-width: 260px;
}

.commplify-live-demo-widget .mega-menu .mega-visual-media {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 200px;       /* safety */
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  position: relative;
  background-size: contain;
  background-position: center;
}

/* Right side: 4 columns, auto rows (like original mega menu) */
.commplify-live-demo-widget .mega-menu .mega-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-content: start;
}

/* Responsive */
@media (max-width: 1100px){
  .mega-menu .mega-visual{ flex-basis: 260px; }
  .mega-menu .mega-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px){
  .mega-menu .mega-layout{ flex-direction: column; }
  .mega-menu .mega-visual{ flex-basis: auto; }
  .mega-menu .mega-grid{ grid-template-columns: 1fr; }
}



.commplify-live-demo-widget .mega-column h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.commplify-live-demo-widget .mega-column p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Parent link column in mega menu */
.commplify-live-demo-widget .mega-column.mega-parent h4 a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
}

/*
 * Top announcement strip
 *
 * Positioned below the navigation bar and inside the hero section.
 * The width matches the nav, and the semi‑transparent glass background
 * allows the underlying hero gradient to show through. The text uses
 * the primary brand colour for contrast. Reduced top margin keeps the
 * hero content closer to the nav for a tighter layout.
 */
/*
 * Top announcement strip
 *
 * Positioned within the hero section, this glass card inherits the hero's
 * gradient backdrop. It is semi‑transparent to let the colours show through
 * and uses the primary colour for text. Adjust width and margin to centre
 * the bar under the nav. A soft shadow adds subtle separation.
 */


/* -- Orbit Suite Graphic Simulation Styles -- */
/* Mini mail card for Co‑Mail */
.commplify-live-demo-widget .mini-mail {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}
.commplify-live-demo-widget .mini-mail .mail-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.75rem;
}
.commplify-live-demo-widget .mini-mail .mail-body p {
    margin: 0;
}
.commplify-live-demo-widget .mail-classify,
.commplify-live-demo-widget .mail-response {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.commplify-live-demo-widget .mail-response {
    font-style: italic;
}
/* Co-Mail Actions — single source of truth (keep only this one) */
.commplify-live-demo-widget .mail-actions {
    display: flex;
    flex-direction: row !important;   /* force horizontal */
    gap: 0.75rem;
    margin-top: 1rem;

    width: 100%;
    align-items: stretch;              /* equal height */
    justify-content: space-between;    /* spread nicely */
    flex-wrap: nowrap;                /* do not stack */
}

.commplify-live-demo-widget .mail-actions .mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;

    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;

    border: none;
    cursor: pointer;

    white-space: nowrap;
    text-align: center;

    /* content-first sizing, but still shares available space */
    min-width: max-content;
    flex: 1 1 auto;

    /* IMPORTANT: prevents any inherited width:100% from breaking layout */
    width: auto !important;
}

.commplify-live-demo-widget .mail-actions .mail-btn:hover {
    background: var(--accent);
}

.commplify-live-demo-widget .mail-btn:hover {
    background: var(--accent);
}

/* QA conversation bubbles and report */
.commplify-live-demo-widget .qa-convo {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.commplify-live-demo-widget .voice-bubble {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    max-width: 90%;
    color: var(--text-main);
}
.commplify-live-demo-widget .voice-bubble.customer {
    align-self: flex-start;
}
.commplify-live-demo-widget .voice-bubble.agent {
    align-self: flex-end;
    background: rgba(99, 102, 241, 0.2);
}
.commplify-live-demo-widget .voice-icon {
    font-size: 1.2rem;
}
.commplify-live-demo-widget .qa-report {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.commplify-live-demo-widget .qa-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.commplify-live-demo-widget .qa-gauge {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 0.5rem;
}
.commplify-live-demo-widget .qa-pointer {
    position: absolute;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--primary);
}
.commplify-live-demo-widget .qa-score {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pilot chat with suggestions */
.commplify-live-demo-widget .pilot-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.commplify-live-demo-widget .chat-bubble {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    position: relative;
    color: var(--text-main);
}
.commplify-live-demo-widget .chat-bubble.customer {
    align-self: flex-start;
}
.commplify-live-demo-widget .chat-bubble.agent {
    align-self: flex-end;
    background: rgba(99, 102, 241, 0.2);
}
.commplify-live-demo-widget .tooltip {
    position: absolute;
    top: -2rem;
    right: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    color: var(--primary);
    display: flex;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Emotion chat with sentiment panel */
/* Emotion chat with sentiment panel */
.commplify-live-demo-widget .emotion-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}
.commplify-live-demo-widget .emotion-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 3;
    max-height: 220px;
    overflow-y: auto;
}
.commplify-live-demo-widget .emotion-bubble {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
    color: var(--text-main);
}
.commplify-live-demo-widget .emotion-bubble.agent {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}
.commplify-live-demo-widget .emotion-bubble.customer {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
}
.commplify-live-demo-widget .sentiment-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}
.commplify-live-demo-widget .sentiment-bar {
    position: relative;
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.commplify-live-demo-widget .sentiment-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--bar-percent, 50%);
    background: var(--primary);
    border-radius: 3px;
}
.commplify-live-demo-widget .sentiment-label {
    position: absolute;
    right: -1.5rem;
    top: -0.5rem;
    font-size: 1rem;
}

/* ==========================================
   PRICING PAGE – NEW LAYOUT + CARDS
========================================== */

.commplify-live-demo-widget .pricing-layout {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 980px){
  .commplify-live-demo-widget .pricing-layout {
    grid-template-columns: 1fr;
  }
}

.commplify-live-demo-widget .pricing-side {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 110px; /* keeps it visible under your fixed navbar */
}

@media (max-width: 980px){
  .pricing-side{ position: relative; top: auto; }
}

.commplify-live-demo-widget .pricing-side-head h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.commplify-live-demo-widget .pricing-side .muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.commplify-live-demo-widget .pricing-steps {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.commplify-live-demo-widget .pricing-step {
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: rgba(255,255,255,0.03);
}

.commplify-live-demo-widget .pricing-step .step-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.commplify-live-demo-widget .pricing-step .step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.commplify-live-demo-widget .pricing-side-cta {
  margin-top: 1rem;
}

/* Cards grid */
.commplify-live-demo-widget .pricing-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1100px){
  .commplify-live-demo-widget .pricing-options {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.commplify-live-demo-widget .pricing-option {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  cursor: pointer; /* helps communicate click-to-select */
}

.commplify-live-demo-widget .pricing-option:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

/* Selected state (on click) */
.commplify-live-demo-widget .pricing-option.is-selected {
  border-color: var(--primary);
  box-shadow: 0 16px 46px rgba(0,0,0,0.22);
  transform: translateY(-6px);
}

/* Featured (not selected by default) */
.commplify-live-demo-widget .pricing-option.featured {
  border-color: rgba(99, 102, 241, 0.35);
}

.commplify-live-demo-widget .pricing-option .plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.commplify-live-demo-widget .pricing-option .icon {
  font-size: 2.4rem;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.commplify-live-demo-widget .pricing-option h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.commplify-live-demo-widget .pricing-option p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.commplify-live-demo-widget .pricing-option ul {
  list-style: none;
  margin-bottom: 1.4rem;
  padding-left: 0;
  width: 100%;
}

.commplify-live-demo-widget .pricing-option ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: left;
}

.commplify-live-demo-widget .pricing-option ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

.commplify-live-demo-widget .pricing-option a.btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================
   PRICING FAQ – ACCESSIBLE ACCORDION
========================================== */

.commplify-live-demo-widget .faq-section {
  max-width: 980px;
  margin: 0 auto;
}

.commplify-live-demo-widget .faq-item {
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 0;
}

.commplify-live-demo-widget .faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  padding: 0.75rem 0;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.commplify-live-demo-widget .faq-q:focus {
  outline: none;
}

.commplify-live-demo-widget .faq-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.05);
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.commplify-live-demo-widget .faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.28s ease;
}

.commplify-live-demo-widget .faq-a p {
  margin: 0.25rem 0 0.85rem 0;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Active */
.commplify-live-demo-widget .faq-item.active .faq-ico {
  transform: rotate(45deg); /* turns + into x-ish */
}


/* Updated Orbit Graphic Simulation Styles */

.commplify-live-demo-widget .orbit-graphic {
    /*
     * Increase the minimum height of the orbit graphic container so that
     * taller modules like the Co‑Emotion sentiment demo can fit without
     * truncation. Align content to the top so conversations and graphs
     * start at the top of the card instead of being vertically centred.
     */
    min-height: 340px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

.commplify-live-demo-widget .orbit-graphic.hidden {
    display: none;
}

/* Co-Mail: Mini Mailbox */
.commplify-live-demo-widget .mailbox {
    width: 100%;
    max-width: 790px;
}

.commplify-live-demo-widget .mail-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.commplify-live-demo-widget .mail-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.commplify-live-demo-widget .mail-item.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.commplify-live-demo-widget .mail-preview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.commplify-live-demo-widget .mail-from {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8rem;
}

.commplify-live-demo-widget .mail-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.commplify-live-demo-widget .mail-subject {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.commplify-live-demo-widget .mail-snippet {
    color: var(--text-muted);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commplify-live-demo-widget .mail-classification {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary);
    display: inline-block;
}

.commplify-live-demo-widget .mail-response {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-main);
    border-left: 3px solid var(--primary);
    animation: fadeIn 0.3s ease-out;
}

.commplify-live-demo-widget .mail-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease-out;
}

/* Co-QA: Conversation List */
.commplify-live-demo-widget .qa-agent-header {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commplify-live-demo-widget .qa-agent-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.commplify-live-demo-widget .qa-overall-score {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.commplify-live-demo-widget .qa-conversation-list {
    display: flex;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
}

.commplify-live-demo-widget .qa-convo-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.commplify-live-demo-widget .qa-convo-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.commplify-live-demo-widget .qa-convo-card.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.commplify-live-demo-widget .qa-convo-snippet {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commplify-live-demo-widget .qa-convo-score {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

.commplify-live-demo-widget .qa-detailed-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.commplify-live-demo-widget .qa-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.commplify-live-demo-widget .qa-transcription-pane.is-hidden {
    display: none;
}

.commplify-live-demo-widget .qa-analysis-pane.is-full {
    grid-column: 1 / -1;
}

.commplify-live-demo-widget .qa-coaching-wide {
    width: 100%;
}

.commplify-live-demo-widget .transcript-ts {
    display: inline-block;
    width: 46px;
    margin-right: 0.5rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.85;
}

/* Load more button in QA conversation list */
.commplify-live-demo-widget .qa-load-more {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.75rem;
    text-decoration: underline;
    padding: 0.25rem;
}

/* Suggestions section in QA detailed view */
.commplify-live-demo-widget .qa-suggestions {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.75rem;
}

.commplify-live-demo-widget .qa-transcription {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.commplify-live-demo-widget .transcript-line {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.commplify-live-demo-widget .transcript-line.agent {
    background: rgba(99, 102, 241, 0.1);
    margin-left: 1rem;
}

.commplify-live-demo-widget .transcript-line.customer {
    background: rgba(255, 255, 255, 0.05);
    margin-right: 1rem;
}

.commplify-live-demo-widget .qa-detailed-report {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1rem;
}

/* Co-Pilot: Enhanced Suggestions */
.commplify-live-demo-widget .pilot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* AI suggestion pills (used in Co‑Pilot + Co‑Emotion) */
.commplify-live-demo-widget .ai-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.commplify-live-demo-widget .ai-pill {
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.commplify-live-demo-widget .ai-pill:hover {
    transform: translateY(-1px);
    filter: saturate(1.05);
}

.commplify-live-demo-widget .ai-pill:active {
    transform: translateY(0px);
    opacity: 0.95;
}

.commplify-live-demo-widget .ai-pill:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.commplify-live-demo-widget .suggestion-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.commplify-live-demo-widget .suggestion-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.commplify-live-demo-widget .suggestion-item.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
}

/* Rationale for suggestions is hidden by default and revealed on hover */
.commplify-live-demo-widget .suggestion-rationale {
    display: none;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Reveal rationale when hovering over a suggestion */
.commplify-live-demo-widget .suggestion-item:hover .suggestion-rationale {
    display: block;
}

/* Co-Emotion: Enhanced Sentiment Tracker */
.commplify-live-demo-widget .emotion-meter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.commplify-live-demo-widget .emotion-emoji {
    font-size: 1.2rem;
    min-width: 24px;
}

.commplify-live-demo-widget .emotion-scale {
    flex: 1;
    height: 6px;
    background: linear-gradient(to right, #ef4444, #f97316, #eab308, #22c55e, #10b981);
    border-radius: 3px;
    position: relative;
}

.commplify-live-demo-widget .emotion-marker {
    position: absolute;
    top: -2px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
}

.commplify-live-demo-widget .emotion-value {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Sentiment graph panel sits to the right of the emotion chat. It stretches
   vertically to visualise the sentiment trend and allocates flexible
   horizontal space. */
.commplify-live-demo-widget .sentiment-graph {
    /*
     * The sentiment graph should occupy the full height of the
     * accompanying chat column so that emotion points remain visible
     * throughout the conversation. Use flex:1 so it takes the
     * remaining horizontal space and set the height to 100% of
     * its parent. A minimum height ensures the graph is at least
     * as tall as the chat’s initial height (220px) but will expand
     * if the chat grows. Position relative allows absolute
     * positioning of the line and points.
     */
    flex: 1;
    height: 100%;
    min-height: 220px;
    position: relative;
    margin-top: 0;
}

.commplify-live-demo-widget .graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.commplify-live-demo-widget .graph-point {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.commplify-live-demo-widget .graph-point.active {
    width: 8px;
    height: 8px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* AI rationale text displayed below the sentiment graph */
.commplify-live-demo-widget .ai-rationale {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Co‑Emotion: CSAT graph (1–5) */
.commplify-live-demo-widget .csat-graph {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.commplify-live-demo-widget .csat-graph-head {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.commplify-live-demo-widget .csat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.commplify-live-demo-widget .csat-scale {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.commplify-live-demo-widget .csat-plot {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.5rem;

  height: 180px;     /* choose what looks best */
  min-height: 150px;
}

.commplify-live-demo-widget .csat-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.commplify-live-demo-widget [data-theme="light"] .csat-grid {
    stroke: rgba(0,0,0,0.12);
}

.commplify-live-demo-widget .csat-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.2;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.commplify-live-demo-widget .csat-dot {
    fill: var(--primary);
    opacity: 0.85;
}

.commplify-live-demo-widget .csat-dot.is-active {
    fill: var(--accent);
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.commplify-live-demo-widget .emotion-state-line {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-main);
}

.commplify-live-demo-widget .ai-suggestion-bar {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.commplify-live-demo-widget .ai-suggestion-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

/* Updated Chat Bubbles */
.commplify-live-demo-widget .chat-bubble {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 90%;
    line-height: 1.3;
}

.commplify-live-demo-widget .emotion-bubble {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 90%;
    line-height: 1.3;
}

.commplify-live-demo-widget .voice-bubble {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 90%;
    line-height: 1.3;
}

/* =========================================================
 * Co-Build (Workflow Builder) — Single Source of Truth Styles
 * NOTE: This section replaces ALL previous flow-diagram/connector CSS
 * to prevent conflicts.
 * ========================================================= */

.commplify-live-demo-widget .graphic-module {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Workflow canvas */
.commplify-live-demo-widget .flow-diagram {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;

    /* The canvas grows as nodes are dragged down; keep footer space */
    min-height: 480px;
    padding: 26px 22px 96px;

    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.18);

    /* Very transparent dotted background (visible on dark) */
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 16px 16px;
    background-position: 0 0;

    box-shadow: var(--shadow-lg);
    overflow: visible; /* allow canvas growth while parent can scroll */
}

/* Dots for light mode */
.commplify-live-demo-widget [data-theme="light"] .flow-diagram {
    background: rgba(255, 255, 255, 0.75);
    background-image: radial-gradient(rgba(0, 0, 0, 0.10) 1px, transparent 1px);
    border: 1px solid var(--border-glass);
}

/* SVG connector layer */
.commplify-live-demo-widget .flow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Rectangular connectors (slight curves at corners = round joins) */
.commplify-live-demo-widget .connector-line {
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round; /* makes right-angles slightly curved */
    filter: none; /* remove any black glow artifacts */
}

.commplify-live-demo-widget [data-theme="light"] .connector-line {
    stroke: rgba(15, 23, 42, 0.45);
}

/* Active connector (during deploy animation) — NO black background */
.commplify-live-demo-widget .connector-active {
    stroke: var(--primary);
    stroke-width: 3.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8 8;
    animation: connectorDash 900ms linear infinite;
    filter: none;
}

@keyframes connectorDash {
    to { stroke-dashoffset: -16; }
}

/* If your JS still injects an arrow element, hide it to avoid off-placement */
.connector-arrow { display: none !important; }

/* Edge labels shown over path connectors */
.commplify-live-demo-widget .edge-label-rect {
    fill: rgba(0, 0, 0, 0.28);
    stroke: rgba(255, 255, 255, 0.14);
}

.commplify-live-demo-widget .edge-label-text {
    fill: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.commplify-live-demo-widget [data-theme="light"] .edge-label-rect {
    fill: rgba(255, 255, 255, 0.85);
    stroke: rgba(15, 23, 42, 0.14);
}
.commplify-live-demo-widget [data-theme="light"] .edge-label-text {
    fill: rgba(15, 23, 42, 0.9);
}

/* Nodes: draggable + centered by JS (absolute positions) */
.commplify-live-demo-widget .flow-node,
.commplify-live-demo-widget .condition-block,
.commplify-live-demo-widget .merge-dot {
    position: absolute;
    z-index: 2; /* above connectors */
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.commplify-live-demo-widget .dragging {
    cursor: grabbing !important;
    opacity: 0.98;
}

/* Base node */
.commplify-live-demo-widget .flow-node {
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* Transparent color mapping (type by class) */
.commplify-live-demo-widget .flow-node.start {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.30);
}
.commplify-live-demo-widget .flow-node.action {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.30);
}
.commplify-live-demo-widget .flow-node.integration {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.28);
}
.commplify-live-demo-widget .flow-node.end {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

/* Decision/Condition diamond (rhombus) */
.commplify-live-demo-widget .condition-block {
    width: 180px;
    height: 110px;
    display: grid;
    place-items: center;

    border-radius: 18px;
    border: 2px dashed rgba(245, 158, 11, 0.60);
    background: rgba(245, 158, 11, 0.12);

    transform: rotate(45deg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.commplify-live-demo-widget .condition-block span {
    transform: rotate(-45deg);
    font-weight: 800;
    white-space: nowrap;
    color: var(--text-main);
}

/* Optional small badge on condition */
.commplify-live-demo-widget .condition-block::before {
    content: "?";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: rgba(245, 158, 11, 0.95);

    display: grid;
    place-items: center;
    font-size: 12px;
    line-height: 1;
}

/* Merge anchor */
.commplify-live-demo-widget .merge-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.07);
}

/* Appear animation */
.commplify-live-demo-widget .node-hidden {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 360ms ease, transform 360ms ease;
}
.commplify-live-demo-widget .node-show {
    opacity: 1;
    transform: translateY(0);
}

/* Plus icon attached to each node (except end) */
.commplify-live-demo-widget .node-plus {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.22);

    display: grid;
    place-items: center;

    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.commplify-live-demo-widget .node-plus::before {
    content: "+";
    opacity: 0.95;
}

.commplify-live-demo-widget .node-plus:hover {
    background: rgba(255, 255, 255, 0.06);
}

.commplify-live-demo-widget .node-plus.clicking {
    animation: plusClick 420ms ease;
}

@keyframes plusClick {
    0%   { transform: translateY(-50%) scale(1); }
    45%  { transform: translateY(-50%) scale(1.16); box-shadow: 0 0 0 4px rgba(255,255,255,0.06); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Sequential pulse used during deployment */
@keyframes pulseNode {
    0%   { transform: scale(1); box-shadow: none; }
    40%  { transform: scale(1.04); box-shadow: 0 0 0 2px rgba(255,255,255,0.10), 0 0 28px rgba(255,255,255,0.16); }
    100% { transform: scale(1); box-shadow: none; }
}
.pulse { animation: pulseNode 900ms ease-in-out; }

/* Footer pinned to bottom of the growing canvas (JS should update bottom position if canvas grows) */
.commplify-live-demo-widget .flow-footer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* top is set dynamically by JS in ensureCanvasFitsContent() */
    width: min(560px, 92%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.commplify-live-demo-widget .flow-status {
    width: fit-content;
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-main);

    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    text-align: center;
}

.commplify-live-demo-widget [data-theme="light"] .flow-status {
    background: rgba(255, 255, 255, 0.70);
}

/* Deploy button (kept compatible with existing site button styling) */
.commplify-live-demo-widget .deploy-btn {
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* ------------------------------------------------------------------
 * Additional classes and overrides added during enhancements
 * ------------------------------------------------------------------ */

/* Top Strip Card Stack */
/* .top-strip { */
    /* position: relative; */
    /* height: 1.5rem; */
    /* overflow: hidden; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* background: var(--bg-glass); */
    /* border: 1px solid var(--border-glass); */
    /* border-radius: 8px; */
    /* padding: 0 1rem; */
    /* margin-bottom: 1rem; */
    /* font-size: 0.8rem; */
    /* color: var(--text-main); */
    /* backdrop-filter: blur(12px); */
    /* -webkit-backdrop-filter: blur(12px); */
/* } */

/* container */
/* container */
.commplify-live-demo-widget .top-strip-stack {
  width: 50%;
  max-width: 1400px;
  margin: 0 auto 1rem;
  position: relative;

  height: 2.9rem;

  --n: 3;
  --cycle: 15s;
  --step: 11px;

  isolation: isolate;
  overflow: hidden;
  padding-bottom: 0.6rem;
}

/* card base */
.commplify-live-demo-widget .top-strip-stack .top-strip {
  position: absolute;
  left: 0; right: 0;
  top: 0;

  height: 1.7rem;
  padding: 0.55rem 1rem;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);

  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-main);
  text-align: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  text-shadow: 0 1px 0 rgba(0,0,0,0.12);

  will-change: transform, opacity, filter;
  transform: translateZ(0);

  pointer-events: none;

  animation: stripCard3 var(--cycle) infinite linear;
  animation-delay: calc((var(--i) * -1) * (var(--cycle) / var(--n)));
  animation-fill-mode: both;
}

/*
  VISUAL STATES (balanced toward original)
*/
@keyframes stripCard3{
  /* FRONT — visually solid */
  0%,
  31.5%{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    z-index: 3;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 99%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 99%,
      transparent 100%
    );
  }

  /* FRONT → MIDDLE — very light fade */
  33.34%,
  64.5%{
    opacity: 0.22;
    transform: translateY(calc(var(--step) * 1.05)) scale(0.955);
    filter: blur(1.1px);
    z-index: 2;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 92%,
      rgba(0,0,0,0.85) 97%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 92%,
      rgba(0,0,0,0.85) 97%,
      transparent 100%
    );
  }

  /* MIDDLE → BACK — clear vanishing */
  66.67%,
  94.5%{
    opacity: 0.09;
    transform: translateY(calc(var(--step) * 2.15)) scale(0.92);
    filter: blur(1.9px);
    z-index: 1;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 82%,
      rgba(0,0,0,0.55) 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 82%,
      rgba(0,0,0,0.55) 92%,
      transparent 100%
    );
  }

  /* RESET ABOVE */
  96.5%,
  100%{
    opacity: 0;
    transform: translateY(-14px) scale(1.02);
    filter: blur(0);
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 100%);
  }
}

@media (prefers-reduced-motion: reduce){
  .commplify-live-demo-widget .top-strip-stack .top-strip {
    animation: none;
    position: static;
    opacity: 1;
    transform: none;
    filter: none;
    white-space: normal;
    pointer-events: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .commplify-live-demo-widget .top-strip-stack {
    height: auto;
    overflow: visible;
    padding-bottom: 0;
  }
}


@media (prefers-reduced-motion: reduce){
  .commplify-live-demo-widget .top-strip-stack .top-strip {
    animation: none;
    position: static;
    opacity: 1;
    transform: none;
    filter: none;
    white-space: normal;
    pointer-events: auto;

    -webkit-mask-image: none;
    mask-image: none;
  }
  .commplify-live-demo-widget .top-strip-stack {
    height: auto;
    overflow: visible;
    padding-bottom: 0;
  }
}


.commplify-live-demo-widget .stack-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.commplify-live-demo-widget .stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    animation: stack-slide 12s infinite;
}

.commplify-live-demo-widget .stack-card:nth-child(1) {
    animation-delay: 0s;
}
.commplify-live-demo-widget .stack-card:nth-child(2) {
    animation-delay: 4s;
}
.commplify-live-demo-widget .stack-card:nth-child(3) {
    animation-delay: 8s;
}

@keyframes stack-slide {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    30% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* BCS Extra Controls */
.commplify-live-demo-widget .bcs-extra {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.commplify-live-demo-widget .bcs-extra label {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    color: var(--text-main);
}
.commplify-live-demo-widget .bcs-extra input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

/* Orbit Redirect Button */
.commplify-live-demo-widget .orbit-redirect-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}
.commplify-live-demo-widget .pill-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.commplify-live-demo-widget .pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Chat Bubble Alignment */
.commplify-live-demo-widget .chat-bubble {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}
.commplify-live-demo-widget .chat-bubble.agent {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}
.commplify-live-demo-widget .chat-bubble.customer {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
}

/* Voice Chat Alignment */
.commplify-live-demo-widget .voice-chat-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    width: 100%;
}
.commplify-live-demo-widget .voice-chat-message.user {
    flex-direction: row-reverse;
    text-align: right;
}
.commplify-live-demo-widget .voice-chat-message.user .bubble {
    background: var(--primary);
    color: #fff;
}
.commplify-live-demo-widget .voice-chat-message.ai .bubble {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}
.commplify-live-demo-widget .voice-chat-message.human .bubble {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

/* Emotion Bubble Alignment */
.commplify-live-demo-widget .emotion-bubble {
    max-width: 85%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}
.commplify-live-demo-widget .emotion-bubble.agent {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}
.commplify-live-demo-widget .emotion-bubble.customer {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
}

/* Pilot suggestions superscript spacing */
.commplify-live-demo-widget .pilot-suggestions sup {
    margin-left: 0.75rem;
    /* Make suggestion options appear like superscript to visually separate them from the label */
    vertical-align: super;
}

.commplify-live-demo-widget .deploy-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.commplify-live-demo-widget .deploy-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Modal */
.commplify-live-demo-widget .flow-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    border-radius: 20px;
}

.commplify-live-demo-widget .flow-modal {
    width: min(520px, 92%);
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: rgba(10, 10, 12, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.commplify-live-demo-widget .flow-modal h4 {
    margin: 0 0 8px;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: var(--text-main);
}

.commplify-live-demo-widget .flow-modal p {
    margin: 0 0 10px;
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.35;
    color: var(--text-main);
}

.commplify-live-demo-widget .flow-modal .hint {
    font-size: 12px;
    opacity: 0.88;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px 10px;
    margin-bottom: 12px;
}

.commplify-live-demo-widget .flow-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.commplify-live-demo-widget .flow-modal-actions button {
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Orbit Demo Widget
   Desktop (>840px) is perfect. Below 840px: scroll-based tabs + layout fixes.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 840px) {

    /* Section */
    .commplify-live-demo-widget.orbit-demo {
        padding: 2.5rem 0;
    }
    .commplify-live-demo-widget .container {
        padding: 0;
    }
    .commplify-live-demo-widget .section-header {
        margin-bottom: 1.75rem;
    }
    /* !important needed — theme/Elementor h2 stylesheet loads after ours */
    .commplify-live-demo-widget .section-header h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    .commplify-live-demo-widget .section-header p {
        font-size: 0.9rem;
    }

    /* ── orbit-interface: must be overflow:visible so the tab scroll works ──
       The base rule sets overflow:hidden (for border-radius clipping).
       We override it here and re-apply clipping only on the graphic area. */
    .commplify-live-demo-widget .orbit-interface {
        overflow: visible !important;
        /* Maintain the card shape with clip-path instead */
        border-radius: 12px;
    }
    /* Clip the inner content area so items don't overflow card corners */
    .commplify-live-demo-widget .orbit-graphic {
        overflow: hidden;
        border-radius: 0 0 12px 12px;
    }

    /* Tab bar: horizontally scrollable — all 5 tabs always reachable */
    .commplify-live-demo-widget .orbit-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.4rem;
        padding: 0.6rem 0.75rem;
        /* clip the tab row to card width so it doesn't visually overflow */
        border-radius: 12px 12px 0 0;
    }
    .commplify-live-demo-widget .orbit-tabs::-webkit-scrollbar {
        display: none;
    }
    .commplify-live-demo-widget .orbit-tab {
        flex: 0 0 auto !important;   /* never shrink — swipe to reach all tabs */
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    /* Mail items */
    .commplify-live-demo-widget .mail-item {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    /* Stack sender + date vertically so long email addresses don't overflow */
    .commplify-live-demo-widget .mail-preview {
        flex-direction: column !important;
        gap: 0.1rem;
    }
    .commplify-live-demo-widget .mail-from {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .commplify-live-demo-widget .mail-time {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Mail buttons: wrap into rows */
    .commplify-live-demo-widget .mail-actions {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .commplify-live-demo-widget .mail-actions .mail-btn {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        width: auto !important;
        font-size: 0.65rem;
        padding: 0.3rem 0.4rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Co-Mail expanded action buttons: stack full-width */
    .commplify-live-demo-widget .flow-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .commplify-live-demo-widget .flow-modal-actions button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Co-Emotion: stack chat + CSAT vertically */
    .commplify-live-demo-widget .emotion-wrapper {
        flex-direction: column;
    }
    .commplify-live-demo-widget .emotion-chat {
        flex: unset;
        width: 100%;
        max-height: 180px;
    }
    .commplify-live-demo-widget .csat-wrapper {
        flex: unset;
        width: 100%;
    }

    /* Co-Pilot pills: wrap */
    .commplify-live-demo-widget .pilot-suggestions {
        flex-wrap: wrap;
    }
    .commplify-live-demo-widget .ai-pill {
        font-size: 0.72rem;
    }

    /* Co-Build flow */
    .commplify-live-demo-widget .flow-diagram {
        min-height: 280px;
        min-width: 480px;
        padding: 12px 10px 70px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    .commplify-live-demo-widget .flow-node {
        font-size: 0.62rem;
        min-width: 128px;
        padding: 10px 22px;
    }
    .commplify-live-demo-widget .condition-block {
        width: 120px;
        height: 80px;
    }
    .commplify-live-demo-widget .condition-block span {
        font-size: 0.65rem;
    }
    .commplify-live-demo-widget .flow-footer {
        min-width: 480px;
    }
    /* Allow orbit-graphic to scroll horizontally when flow-diagram is wider */
    .commplify-live-demo-widget .orbit-graphic:has(.flow-diagram) {
        overflow-x: auto;
    }

    /* ── Co-QA responsive ── */
    /* Agent header: stack info + score vertically */
    .commplify-live-demo-widget .qa-agent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    .commplify-live-demo-widget .qa-agent-info h4 {
        font-size: 0.85rem;
    }
    .commplify-live-demo-widget .qa-overall-score {
        font-size: 1.1rem;
    }

    /* Conversation list: scroll horizontally instead of wrapping */
    .commplify-live-demo-widget .qa-conversation-list {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.25rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-sizing: border-box;
    }
    .commplify-live-demo-widget .qa-conversation-list::-webkit-scrollbar {
        display: none;
    }
    .commplify-live-demo-widget .qa-convo-card {
        flex: 0 0 70%;
        min-width: 0;
        scroll-snap-align: start;
        font-size: 0.75rem;
        padding: 0.5rem;
        margin: 6px 0px;
    }
    .commplify-live-demo-widget .qa-load-more {
        flex: 0 0 auto;
        font-size: 0.65rem;
    }

    /* Detailed view: stack grid into single column */
    .commplify-live-demo-widget .qa-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .commplify-live-demo-widget .qa-detailed-view {
        gap: 0.75rem;
        padding: 0;
    }
    /* Transcription pane */
    .commplify-live-demo-widget .qa-transcription {
        padding: 0.6rem;
        max-height: 160px;
        font-size: 0.75rem;
    }
    .commplify-live-demo-widget .transcript-line {
        font-size: 0.75rem;
        padding: 0.35rem;
    }
    .commplify-live-demo-widget .transcript-line.agent {
        margin-left: 0.5rem;
    }
    .commplify-live-demo-widget .transcript-line.customer {
        margin-right: 0.5rem;
    }
    .commplify-live-demo-widget .transcript-ts {
        width: 36px;
        font-size: 0.6rem;
        margin-right: 0.3rem;
    }

    /* Coaching pane */
    .commplify-live-demo-widget .qa-suggestions {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    .commplify-live-demo-widget .qa-coaching-wide ul {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Tab Menu: Dropdown (below 575px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 575px) {

    /* Hide the default horizontal tabs */
    .commplify-live-demo-widget .orbit-tabs {
        display: none !important;
    }
    /* Show the dropdown wrapper instead */
    .commplify-live-demo-widget .orbit-tabs-dropdown {
        display: flex !important;
    }
}

/* Dropdown base (hidden on desktop) */
.commplify-live-demo-widget .orbit-tabs-dropdown {
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px 12px 0 0;
}

/* Dropdown trigger button */
.commplify-live-demo-widget .orbit-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.commplify-live-demo-widget .orbit-dropdown-trigger:hover {
    background: var(--bg-glass);
}

.commplify-live-demo-widget .orbit-dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.commplify-live-demo-widget .orbit-tabs-dropdown.open .orbit-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown list (collapsed by default) */
.commplify-live-demo-widget .orbit-dropdown-list {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.35rem;
}

.commplify-live-demo-widget .orbit-tabs-dropdown.open .orbit-dropdown-list {
    display: flex;
}

/* Dropdown option items */
.commplify-live-demo-widget .orbit-dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}

.commplify-live-demo-widget .orbit-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.commplify-live-demo-widget .orbit-dropdown-item.active {
    background: var(--primary);
    color: #fff;
}
