.asg-chatbot-root {
    position: relative;
    display: inline-block;
    vertical-align: top;
    z-index: 20;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.asg-launcher {
    position: relative;
    width: 88px;
    height: 88px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.asg-launcher:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.asg-bot-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
    border: 1px solid #86efac;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.asg-bot-icon-svg {
    width: 38px;
    height: 38px;
    display: block;
    flex-shrink: 0;
    margin: 0;
    overflow: visible;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.06));
}

.asg-try-now-ring {
    position: absolute;
    inset: -12px;
    animation: asg-spin 9s linear infinite;
    pointer-events: none;
}

.asg-ring-svg {
    width: 100%;
    height: 100%;
    fill: #0f172a;
    opacity: 0.92;
	background: white !important;
}

.asg-ring-svg text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

@keyframes asg-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.asg-chat-window {
    position: absolute;
    right: 0;
    left: auto;
    bottom: calc(100% + 12px);
    width: 420px;
    max-width: calc(100vw - 30px);
    height: 500px;
    background: linear-gradient(180deg, #f8fafc 0%, #eff3f8 100%);
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease;
    border: 1px solid #dfe5ec;
    display: flex;
    flex-direction: column;
}

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

.asg-chat-header {
    background: #f9fbfc;
    color: #111827;
    padding: 16px 18px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e1e7ef;
    letter-spacing: 0.1px;
    position: relative;
    overflow: hidden;
}

.asg-chat-header::after {
    content: "";
    position: absolute;
    left: -30%;
    top: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.22), transparent);
    animation: asg-header-glow 4.5s linear infinite;
}

.asg-header-meta {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.asg-header-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.asg-header-title-wrap strong {
    font-size: 16px;
    font-weight: 700;
}

.asg-header-title-wrap small {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.asg-header-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.asg-header-action-dot {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid #d9e1ea;
    background: #edf1f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.asg-header-action-icon {
    width: 14px;
    height: 14px;
    color: #475569;
    display: block;
}

.asg-close-btn {
    border: 1px solid #d9e1ea;
    background: #edf1f5;
    color: #334155;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.asg-close-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.asg-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    background: radial-gradient(circle at top, #f8fbff 0%, #eef2f7 60%, #ecf1f6 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asg-message {
    display: flex;
    animation: asg-message-in 0.24s ease;
}

.asg-message span {
    max-width: 84%;
    display: inline-block;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.asg-user {
    justify-content: flex-end;
}

.asg-user span {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #ffffff;
    border-bottom-right-radius: 5px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.24);
}

.asg-bot {
    justify-content: flex-start;
}

.asg-bot span {
    background: #e8edf3;
    color: #0f172a;
    border: 1px solid #d8e0e8;
    border-bottom-left-radius: 5px;
}

.asg-typing .asg-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 52px;
    padding: 11px 14px;
}

.asg-typing .asg-typing-bubble i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
    animation: asg-dot 1.2s infinite ease-in-out;
}

.asg-typing .asg-typing-bubble i:nth-child(2) {
    animation-delay: 0.15s;
}

.asg-typing .asg-typing-bubble i:nth-child(3) {
    animation-delay: 0.3s;
}

.asg-input-wrap {
    flex: 0 0 auto;
    min-height: 72px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #dee5ed;
    background: rgba(250, 252, 255, 0.95);
    backdrop-filter: blur(5px);
}

.asg-input {
    width: 100%;
    border: 1px solid #d2dbe5;
    border-radius: 14px !important;
    min-height: 3px !important;
    padding: 12px 14px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.asg-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.asg-send-btn,
.asg-mic-btn,
.asg-stop-voice-btn {
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.asg-send-btn {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 16px;
    min-width: 84px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.asg-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.24);
}

.asg-send-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: left 0.4s ease;
}

.asg-send-btn:hover::after {
    left: 120%;
}

.asg-send-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.asg-mic-btn {
    background: #eaf0f5;
    height: 43px;
    width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    position: relative;
    border: 1px solid #d9e1ea;
}

.asg-mic-icon {
    width: 28px;
    height: 28px;
    color: #334155;
    display: block;
}

.asg-mic-btn:hover {
    background: #dfe7ef;
}

.asg-stop-voice-btn,
.asg-stop-voice-icon {
    display: none !important;
}

/* Force visibility against theme button overrides */
.asg-chatbot-root .asg-mic-btn,
.asg-chatbot-root .asg-stop-voice-btn {
    -webkit-appearance: none;
    appearance: none;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 0 !important;
    flex-shrink: 0 !important;
    z-index: 2;
	padding: 0 !important;
}

.asg-chatbot-root .asg-mic-btn {
    background: #eaf0f5 !important;
    border: 1px solid #d9e1ea !important;
    color: #334155 !important;
}

.asg-chatbot-root .asg-stop-voice-btn {
    display: none !important;
}

.asg-chatbot-root .asg-mic-icon,
.asg-chatbot-root .asg-stop-voice-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.asg-mic-btn.is-listening {
    background: #ef4444;
    color: #ffffff;
    animation: asg-pulse 1s infinite;
}

.asg-footer-brand {
    flex: 0 0 auto;
    min-height: 32px;
    border-top: 1px solid #e1e7ef;
    background: #f9fbfc;
    color: #97a4b4;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

@keyframes asg-message-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes asg-dot {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes asg-header-glow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(460%);
    }
}

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

/* Tablet and small laptops */
@media (max-width: 900px) {
    .asg-chat-window {
        width: min(420px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        height: min(500px, calc(100vh - 100px));
        max-height: calc(100vh - 100px);
    }

    @supports (height: 100dvh) {
        .asg-chat-window {
            height: min(500px, calc(100dvh - 100px));
            max-height: calc(100dvh - 100px);
        }
    }
}

/* Phones — touch-friendly, no horizontal overflow, stable viewport height */
@media (max-width: 600px) {
    .asg-chatbot-root {
        display: block;
        max-width: 100%;
    }

    .asg-chatbot-root button,
    .asg-chatbot-root .asg-input {
        touch-action: manipulation;
    }

    .asg-launcher {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .asg-bot-icon {
        width: 58px;
        height: 58px;
    }

    .asg-bot-icon-svg {
        width: 34px;
        height: 34px;
    }

    .asg-try-now-ring {
        inset: -10px;
    }

    .asg-ring-svg text {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .asg-chat-window {
        left: 50%;
        right: auto;
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        bottom: calc(100% + 10px);
        height: min(500px, calc(100vh - 80px));
        max-height: calc(100vh - 24px);
        border-radius: 20px;
        transform: translateX(-50%) translateY(12px) scale(0.98);
    }

    @supports (height: 100dvh) {
        .asg-chat-window {
            height: min(500px, calc(100dvh - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px) - 24px));
            max-height: calc(100dvh - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px) - 24px);
        }
    }

    .asg-chat-window.is-open {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    .asg-chat-header {
        flex-wrap: wrap;
        padding: 12px 12px 10px;
        gap: 8px;
    }

    .asg-header-meta {
        flex: 1 1 100%;
        order: 1;
    }

    .asg-header-actions {
        order: 2;
        flex: 1;
        justify-content: flex-start;
    }

    .asg-close-btn {
        order: 3;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .asg-header-action-dot {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .asg-header-action-icon {
        width: 16px;
        height: 16px;
    }

    .asg-header-title-wrap strong {
        font-size: 15px;
    }

    .asg-header-title-wrap small {
        font-size: 12px;
    }

    .asg-messages {
        padding: 12px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .asg-message span {
        max-width: 90%;
        padding: 10px 12px;
        font-size: 15px;
    }

    .asg-input-wrap {
        height: auto;
        min-height: 64px;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    }

    .asg-input {
        font-size: 16px;
        padding: 12px 12px;
        min-height: 48px;
    }

    .asg-mic-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .asg-stop-voice-btn { display: none !important; }

    .asg-mic-icon {
        width: 24px;
        height: 24px;
    }

    .asg-send-btn {
        min-width: 72px;
        min-height: 48px;
        padding: 12px 14px;
    }

    .asg-footer-brand {
        min-height: 28px;
        height: auto;
        padding: 6px 8px;
        font-size: 10px;
    }
}

/* Very narrow phones */
@media (max-width: 380px) {
    .asg-chat-window {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        border-radius: 16px;
    }

    .asg-header-actions {
        gap: 6px;
    }

    .asg-header-action-dot {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .asg-send-btn {
        min-width: 64px;
        padding: 10px 12px;
        font-size: 13px;
    }
}

.regular-text{
	all: unset !important;
    width: 0 !important;
}