/**
 * Green Ray Solutions - "Surya Mitra" AI Solar Assistant Chatbot Styles
 * 100% Isolated Styles under .grs-chatbot-root to prevent any CSS leaks or conflicts.
 * Brand Tokens: Solar Green (#4d9925), Tech Blue (#0e5093), Deep Ocean (#06182c).
 *
 * @package GreenRaySolutions
 */

:root {
    --grs-bot-primary: #4d9925;
    --grs-bot-primary-hover: #3f801e;
    --grs-bot-primary-light: #eaf6e5;
    --grs-bot-secondary: #0e5093;
    --grs-bot-secondary-hover: #0a3d70;
    --grs-bot-accent: #f59e0b;
    --grs-bot-dark: #06182c;
    --grs-bot-surface: #ffffff;
    --grs-bot-bg-subtle: #f8fafc;
    --grs-bot-border: #e2e8f0;
    --grs-bot-border-focus: #4d9925;
    --grs-bot-text: #0f172a;
    --grs-bot-text-muted: #64748b;
    --grs-bot-success: #10b981;
    --grs-bot-danger: #ef4444;
    --grs-bot-radius-lg: 18px;
    --grs-bot-radius-md: 12px;
    --grs-bot-radius-sm: 8px;
    --grs-bot-shadow-window: 0 20px 48px -12px rgba(6, 24, 44, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
    --grs-bot-shadow-launcher: 0 10px 30px rgba(77, 153, 37, 0.4), 0 2px 10px rgba(0, 0, 0, 0.12);
    --grs-bot-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ======================================================
   ROOT CONTAINER & RESET
====================================================== */
.grs-chatbot-root {
    font-family: var(--grs-bot-font);
    box-sizing: border-box;
    position: relative;
    z-index: 999990;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.grs-chatbot-root *,
.grs-chatbot-root *::before,
.grs-chatbot-root *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ======================================================
   1. FLOATING LAUNCHER TRIGGER BUTTON
====================================================== */
.grs-chatbot-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--grs-bot-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--grs-bot-shadow-launcher);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
    z-index: 999992;
    outline: none;
    padding: 0;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}

.grs-chatbot-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(77, 153, 37, 0.5), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.grs-chatbot-launcher:active {
    transform: scale(0.94);
}

/* Avatar inside Launcher */
.grs-launcher-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.grs-launcher-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grs-chatbot-launcher:hover .grs-launcher-avatar {
    transform: scale(1.06);
}

/* Close badge over launcher when window is active */
.grs-launcher-close-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grs-bot-danger);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grs-chatbot-root.is-open .grs-launcher-close-badge {
    opacity: 1;
    transform: scale(1);
}

/* Concentric Pulse Rings */
.grs-launcher-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--grs-bot-primary);
    box-sizing: border-box;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
    animation: grsLauncherPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.grs-launcher-pulse.delay-1 {
    animation-delay: 1.2s;
}

@keyframes grsLauncherPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }
    50% {
        opacity: 0.35;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.grs-chatbot-root.is-open .grs-launcher-pulse {
    display: none;
}

/* Unread Badge */
.grs-chatbot-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--grs-bot-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    animation: grsBadgeBounce 2s infinite ease-in-out;
}

.grs-chatbot-root.is-open .grs-chatbot-badge,
.grs-chatbot-badge.is-hidden {
    display: none !important;
}

@keyframes grsBadgeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* ======================================================
   2. PROACTIVE TEASER SPEECH BUBBLE
====================================================== */
.grs-chatbot-teaser {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 320px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--grs-bot-border);
    box-shadow: 0 12px 32px -6px rgba(6, 24, 44, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    z-index: 999991;
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grs-chatbot-teaser.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.grs-chatbot-root.is-open .grs-chatbot-teaser,
.grs-chatbot-teaser.is-dismissed {
    display: none !important;
}

.grs-teaser-avatar {
    position: relative;
    flex-shrink: 0;
}

.grs-avatar-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--grs-bot-primary);
    background: #ffffff;
}

.grs-avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grs-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #94a3b8;
}

.grs-status-dot.online {
    background: #10b981;
}

.grs-teaser-content {
    flex: 1;
    min-width: 0;
}

.grs-teaser-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--grs-bot-primary);
    display: block;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.grs-teaser-text {
    font-size: 12px;
    line-height: 1.45;
    color: var(--grs-bot-text);
    margin: 0;
}

.grs-teaser-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    margin-top: -2px;
    margin-right: -4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.grs-teaser-close:hover {
    color: var(--grs-bot-text);
    background: #f1f5f9;
}

/* ======================================================
   3. CHATBOT WINDOW MODAL
====================================================== */
.grs-chatbot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 400px;
    height: 620px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: var(--grs-bot-surface);
    border-radius: var(--grs-bot-radius-lg);
    box-shadow: var(--grs-bot-shadow-window);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999993;
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.grs-chatbot-root.is-open .grs-chatbot-window {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ======================================================
   4. CHATBOT HEADER
====================================================== */
.grs-chatbot-header {
    background: linear-gradient(135deg, #071b34 0%, #0e5093 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #ffffff;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grs-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.grs-header-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
}

.grs-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #4d9925;
    background: #ffffff;
    display: block;
}

.grs-header-avatar .grs-status-dot {
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
}

.grs-header-text {
    min-width: 0;
}

.grs-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grs-header-subtitle {
    font-size: 11px;
    color: #a7f3d0;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grs-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Trilingual Switcher Pills */
.grs-lang-switch-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
    backdrop-filter: blur(4px);
}

.grs-lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.grs-lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.grs-lang-btn.is-active {
    background: var(--grs-bot-primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Header Buttons: Sound, Restart, Close */
.grs-control-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.grs-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.06);
}

.grs-control-btn.is-muted {
    opacity: 0.6;
    color: #fca5a5;
}

/* ======================================================
   5. PROGRESS TRACKER BAR
====================================================== */
.grs-chat-progress-wrap {
    background: #f1f5f9;
    padding: 8px 16px;
    border-bottom: 1px solid var(--grs-bot-border);
    flex-shrink: 0;
}

.grs-chat-progress-bar-bg {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.grs-chat-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--grs-bot-primary), #65a30d);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.grs-chat-step-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--grs-bot-text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ======================================================
   6. MESSAGES CONTAINER & BUBBLES
====================================================== */
.grs-chatbot-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background: var(--grs-bot-bg-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.grs-chatbot-body::-webkit-scrollbar {
    width: 5px;
}

.grs-chatbot-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.grs-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.grs-message-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    animation: grsMessageFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.grs-message-row.is-user {
    flex-direction: row-reverse;
}

.grs-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 2px;
}

.grs-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grs-message-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: var(--grs-bot-radius-md);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
}

/* Bot Message */
.grs-message-row.is-bot .grs-message-bubble {
    background: #ffffff;
    color: var(--grs-bot-text);
    border: 1px solid var(--grs-bot-border);
    border-top-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* User Message */
.grs-message-row.is-user .grs-message-bubble {
    background: var(--grs-bot-primary);
    color: #ffffff;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(77, 153, 37, 0.3);
}

.grs-msg-timestamp {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

/* Rich Cards inside Bot Bubbles */
.grs-bot-card {
    background: #ffffff;
    border-radius: var(--grs-bot-radius-md);
    border: 1px solid var(--grs-bot-border);
    padding: 14px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.grs-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--grs-bot-secondary);
    margin-bottom: 8px;
}

.grs-card-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px dashed #f1f5f9;
}

.grs-card-stat-label {
    color: var(--grs-bot-text-muted);
}

.grs-card-stat-val {
    font-weight: 600;
    color: var(--grs-bot-text);
}

.grs-card-stat-val.is-green {
    color: var(--grs-bot-primary);
    font-weight: 700;
}

.grs-card-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    margin-top: 10px;
    background: var(--grs-bot-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--grs-bot-radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.grs-card-cta-btn:hover {
    background: var(--grs-bot-primary-hover);
    color: #ffffff;
}

/* ======================================================
   7. TYPING INDICATOR
====================================================== */
.grs-typing-indicator {
    display: none;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
}

.grs-typing-indicator.is-visible {
    display: flex;
}

.grs-typing-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.grs-typing-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grs-typing-bubble {
    background: #ffffff;
    border: 1px solid var(--grs-bot-border);
    border-radius: 14px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.grs-typing-bubble span {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: grsTypingBounce 1.2s infinite ease-in-out;
}

.grs-typing-bubble span:nth-child(2) {
    animation-delay: 0.2s;
}

.grs-typing-bubble span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes grsTypingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* ======================================================
   8. QUICK REPLY OPTIONS & PILLS
====================================================== */
.grs-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
}

.grs-option-btn {
    background: #ffffff;
    border: 1px solid var(--grs-bot-border);
    color: var(--grs-bot-text);
    font-size: 12px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.grs-option-btn:hover {
    background: var(--grs-bot-primary-light);
    border-color: var(--grs-bot-primary);
    color: var(--grs-bot-primary);
    transform: translateY(-1px);
}

.grs-option-btn.is-brand {
    border-color: #cbd5e1;
    font-weight: 600;
}

.grs-option-btn.is-capacity {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
    font-weight: 600;
}

.grs-option-btn.is-capacity:hover {
    background: var(--grs-bot-primary);
    border-color: var(--grs-bot-primary);
    color: #ffffff;
}

.grs-option-back {
    background: transparent;
    border: 1px dashed #cbd5e1;
    color: var(--grs-bot-text-muted);
}

/* ======================================================
   9. INPUT FOOTER & FORM
====================================================== */
.grs-chatbot-footer {
    background: #ffffff;
    border-top: 1px solid var(--grs-bot-border);
    padding: 10px 14px;
    flex-shrink: 0;
}

.grs-chatbot-footer[style*="display: none"] {
    display: none !important;
}

.grs-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--grs-bot-bg-subtle);
    border: 1px solid var(--grs-bot-border);
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.grs-input-wrapper:focus-within {
    border-color: #cbd5e1;
    box-shadow: none;
    background: #ffffff;
}

.grs-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--grs-bot-text);
    outline: none;
    box-shadow: none;
    padding: 6px 0;
}

.grs-chat-input:focus,
.grs-chat-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.grs-chat-input::placeholder {
    color: #94a3b8;
}

/* Mic Voice Typing Button */
.grs-chat-mic-btn {
    background: none;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.grs-chat-mic-btn:hover {
    color: var(--grs-bot-primary);
    background: var(--grs-bot-primary-light);
}

.grs-chat-mic-btn.is-listening {
    color: #ffffff;
    background: var(--grs-bot-danger);
    animation: grsMicPulse 1.4s infinite;
}

@keyframes grsMicPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Send Button */
.grs-chat-send-btn {
    background: var(--grs-bot-primary);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.grs-chat-send-btn:hover {
    background: var(--grs-bot-primary-hover);
    transform: scale(1.05);
}

/* ======================================================
   10. MICROPHONE PERMISSION MODAL
====================================================== */
.grs-mic-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 24, 44, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999995;
    animation: grsModalFadeIn 0.2s ease;
}

@keyframes grsModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.grs-mic-modal-card {
    background: #ffffff;
    border-radius: var(--grs-bot-radius-lg);
    padding: 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.grs-mic-modal-icon {
    width: 52px;
    height: 52px;
    background: #fef2f2;
    color: var(--grs-bot-danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.grs-mic-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--grs-bot-text);
    margin-bottom: 6px;
}

.grs-mic-modal-desc {
    font-size: 12px;
    color: var(--grs-bot-text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.grs-mic-modal-steps {
    text-align: left;
    background: #f8fafc;
    border-radius: var(--grs-bot-radius-sm);
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 11.5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grs-mic-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.grs-step-num {
    background: var(--grs-bot-secondary);
    color: #ffffff;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 1px;
}

.grs-mic-modal-actions {
    display: flex;
    gap: 8px;
}

.grs-btn-mic-retry {
    flex: 1;
    background: var(--grs-bot-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--grs-bot-radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.grs-btn-mic-retry:hover {
    background: var(--grs-bot-primary-hover);
}

.grs-btn-mic-close {
    background: #e2e8f0;
    color: var(--grs-bot-text);
    border: none;
    border-radius: var(--grs-bot-radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.grs-btn-mic-close:hover {
    background: #cbd5e1;
}

/* ======================================================
   11. MOBILE ADAPTABILITY
====================================================== */
@media (max-width: 480px) {
    .grs-chatbot-launcher {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .grs-launcher-avatar-wrap {
        width: 46px;
        height: 46px;
    }

    .grs-chatbot-teaser {
        bottom: 84px;
        right: 16px;
        width: calc(100vw - 32px);
    }

    .grs-chatbot-window {
        bottom: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .grs-chatbot-header {
        border-radius: 0;
        padding: 12px 14px;
    }
}
