/* Marketing site floating guide chat */
.marketing-chat {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    max-width: calc(100vw - 2rem);
}

.marketing-chat__launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    font-weight: 600;
    border: none;
}

.marketing-chat__launcher-icon {
    font-size: 1.15rem;
}

.marketing-chat__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    width: min(22rem, calc(100vw - 2rem));
    height: min(32rem, calc(100vh - 6rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem !important;
}

.marketing-chat__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    color: #fff;
    border-radius: 0 !important;
}

.marketing-chat__close {
    border-radius: 999px;
    flex-shrink: 0;
}

.marketing-chat__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    background: var(--app-bg, #f8fafc);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.marketing-chat__bubble {
    max-width: 92%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.marketing-chat__bubble--bot {
    align-self: flex-start;
    background: var(--app-card-bg, #fff);
    border: 1px solid var(--app-border-color, #e2e8f0);
    box-shadow: 0 0.15rem 0.5rem rgba(15, 23, 42, 0.05);
}

.marketing-chat__bubble--user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0f766e 0%, #11998e 100%);
    color: #fff;
}

.marketing-chat__bubble-title {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    color: var(--app-brand, #11998e);
}

.marketing-chat__bubble--user .marketing-chat__bubble-title {
    color: rgba(255, 255, 255, 0.9);
}

.marketing-chat__link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.marketing-chat__prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.marketing-chat__chip {
    border-radius: 999px;
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--app-border-color, #e2e8f0);
    background: var(--app-card-bg, #fff);
    color: inherit;
}

.marketing-chat__chip:hover {
    border-color: var(--app-brand, #11998e);
    color: var(--app-brand, #11998e);
}

.marketing-chat__typing {
    align-self: flex-start;
    font-size: 0.8rem;
    color: var(--app-muted, #64748b);
    padding: 0.25rem 0.5rem;
}

.marketing-chat__form {
    background: var(--app-card-bg, #fff);
}

[data-theme="dark"] .marketing-chat__messages {
    background: var(--app-bg);
}

@media (max-width: 575.98px) {
    .marketing-chat {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .marketing-chat__launcher-text {
        display: none;
    }

    .marketing-chat__launcher {
        width: 3.25rem;
        height: 3.25rem;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .marketing-chat__panel {
        width: calc(100vw - 1.5rem);
        right: -0.25rem;
    }
}
