
/* KLYVERO_LIVE_PREVIEW_V102 */

.chat-preview {
    transition: box-shadow .35s ease;
}

.kv-live-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 12px 12px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #5669F2;
    color: white;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(86,105,242,.22);
    transition: transform .2s, background .2s, opacity .4s;
}

.kv-live-cta:hover {
    background: #4053db;
    transform: translateY(-2px);
}

.kv-live-cta:focus-visible {
    outline: 3px solid #101525;
    outline-offset: 3px;
}

.kv-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #b8ffdb;
    box-shadow: 0 0 0 3px rgba(184,255,219,.16);
}

.kv-live-ready .chat-message {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease,
                visibility .5s;
}

.kv-live-ready .chat-message.kv-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.kv-live-ready .kv-live-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kv-live-ready .kv-live-cta.kv-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .chat-preview .chat-message,
    .chat-preview .kv-live-cta {
        transition: none !important;
        transform: none !important;
    }
}


/* KLYVERO_WIDGET_MATCH_V103 */

.hero .product-preview .chat-preview {
    width: min(380px, calc(100% - 28px));
    right: 14px;
    bottom: 14px;
    border-radius: 20px !important;
    background: #fff;
    border: 1px solid rgba(17,24,39,.08) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.22) !important;
    font-family: Inter,system-ui,sans-serif;
}

.hero .chat-preview .chat-header {
    min-height: 76px;
    padding: 16px 18px;
    background: #5669F2 !important;
    border-radius: 0;
}

.hero .chat-preview .chat-identity {
    gap: 12px;
}

.hero .chat-preview .chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff !important;
    color: #5669F2 !important;
    font-size: 13px;
    font-weight: 800;
}

.hero .chat-preview .chat-header strong {
    font-size: 16px;
    font-weight: 700;
}

.hero .chat-preview .online {
    font-size: 12px;
    color: rgba(255,255,255,.75);
}

.hero .chat-preview .close-chat {
    font-size: 27px;
    font-weight: 300;
}

.hero .chat-preview .chat-messages {
    min-height: 265px;
    padding: 20px 16px;
    background: #f7f8fa !important;
}

.hero .chat-preview .chat-message {
    max-width: 87%;
    width: fit-content;
    padding: 11px 14px;
    margin-bottom: 14px;
    border: 0;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.hero .chat-preview .ai-message {
    background: #fff;
    color: #1f2937;
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.hero .chat-preview .user-message {
    margin-left: auto;
    background: #5669F2;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.hero .chat-preview .chat-input {
    margin: 0 12px 12px;
    padding: 10px 12px;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    color: #9ca3af;
    background: #fff;
    font-size: 13px;
}

.hero .chat-preview .chat-input span {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: #5669F2;
}

.hero .chat-preview .kv-live-cta {
    min-height: 43px;
    margin: 0 12px 12px;
    border-radius: 11px;
    font-size: 13px;
}

@media(max-width:520px) {
    .hero .product-preview .chat-preview {
        width: min(350px, calc(100% - 20px));
        right: 10px;
        bottom: 10px;
    }
    .hero .chat-preview .chat-messages {
        min-height: 220px;
        padding: 12px;
    }
    .hero .chat-preview .chat-message {
        font-size: 11px;
        padding: 9px 11px;
    }
}
