/* Main Widget Wrapper */
.lvov-chat-widget {
    position: fixed;
    z-index: 9999;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column-reverse;
    /* Button at bottom */
    align-items: center;
    width: 60px;
}

/* Main Button */
.lvov-chat-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Removed transform transition on parent to avoid pulse shift */
    position: relative;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}



/* Icons for Main Button */
.lvov-chat-icon-open,
.lvov-chat-icon-close {
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    transition: opacity 160ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Icon (img) - fills button circle beautifully */
img.lvov-chat-custom-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: none;
    pointer-events: none;
}

/* When custom icon is set — remove SVG background from open icon */
.lvov-custom-icon-btn img.lvov-chat-icon-open {
    background-image: none !important;
}


.lvov-chat-icon-open {
    /* Chat Bubble Icon - Improved */
    background-image: url('icons/icon-open.svg');
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.lvov-chat-icon-close {
    /* Close X Icon */
    background-image: url('icons/icon-close.svg');
    opacity: 0;
    transform: rotate(-90deg) scale(1);
}

.lvov-chat-widget.active .lvov-chat-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(1);
}

.lvov-chat-widget.active .lvov-chat-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

@media (hover:hover) and (pointer:fine) {
.lvov-chat-main-btn:hover .lvov-chat-icon-open {
    transform: rotate(0deg) scale(1.1);
}

.lvov-chat-widget.active .lvov-chat-main-btn:hover .lvov-chat-icon-close {
    transform: rotate(0deg) scale(1.1);
}

}

/* Links Container */
.lvov-chat-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 160ms ease, visibility 0s linear 180ms;
}

.lvov-chat-widget.active .lvov-chat-links {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* Individual Link Item */
.lvov-chat-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    /* Animation initial state */
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    visibility: hidden;
    transition: transform 180ms cubic-bezier(0.4, 0, 1, 1), opacity 140ms ease, box-shadow 180ms ease, visibility 0s linear 180ms;
    pointer-events: none;
}



.lvov-chat-widget.active .lvov-chat-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
    transition-duration: 320ms, 220ms, 180ms, 0s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease, ease, linear;
}

/* A short cascade starts at the launcher; hover never inherits its delay. */
.lvov-chat-widget.active .lvov-chat-item { transition-delay: 0ms; }
.lvov-chat-widget.active .lvov-chat-item:nth-last-child(2) { transition-delay: 30ms; }
.lvov-chat-widget.active .lvov-chat-item:nth-last-child(3) { transition-delay: 60ms; }
.lvov-chat-widget.active .lvov-chat-item:nth-last-child(4) { transition-delay: 90ms; }
.lvov-chat-widget.active .lvov-chat-item:nth-last-child(5) { transition-delay: 120ms; }
.lvov-chat-widget.active .lvov-chat-item:nth-last-child(6) { transition-delay: 150ms; }
.lvov-chat-widget.active .lvov-chat-item:nth-last-child(7) { transition-delay: 180ms; }
.lvov-chat-widget.active .lvov-chat-item:nth-last-child(8) { transition-delay: 210ms; }
@media (hover:hover) and (pointer:fine) {
    .lvov-chat-widget.active .lvov-chat-item:hover {
        transform: translateY(-2px) scale(1.045);
        box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
        transition-duration: 180ms;
        transition-delay: 0ms;
    }
    .lvov-chat-main-btn:hover { box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2); }
}
.lvov-chat-widget.active .lvov-chat-item:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition-duration: 100ms;
    transition-delay: 0ms;
}
.lvov-chat-main-btn:active { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.lvov-chat-widget.active .lvov-chat-main-btn::before,
.lvov-chat-widget.active .lvov-chat-main-btn::after {
    animation: none !important;
    opacity: 0;
}
.lvov-chat-main-btn:active .lvov-chat-icon-open,
.lvov-chat-widget.active .lvov-chat-main-btn:active .lvov-chat-icon-close {
    transform: scale(0.92);
    transition-duration: 100ms;
}

/* Icons */
.lvov-chat-item-icon {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Colors and Specific Icons */
.lvov-chat-icon-viber {
    background-image: url('icons/icon-viber.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-viber {
    background-color: #7360f2;
}

.lvov-chat-icon-email {
    background-image: url('icons/icon-email.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-email {
    background-color: #dd4b39;
}

.lvov-chat-item[href*="mailto:"] {
    background-color: #dd4b39;
}

.lvov-chat-icon-telegram {
    background-image: url('icons/icon-telegram.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-telegram {
    background-color: #0088cc;
}

.lvov-chat-icon-phone {
    background-image: url('icons/icon-phone.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-phone {
    background-color: #34b7f1;
}

.lvov-chat-icon-max {
    background-image: url('icons/icon-max.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-max {
    background: linear-gradient(45deg, #3767f1, #8450d9);
    background-size: 200% 200%;
    /* Brand gradient stays still, avoiding a perpetual repaint loop. */
}

.lvov-chat-icon-instagram {
    background-image: url('icons/icon-instagram.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-instagram {
    background-color: #E1306C;
}

.lvov-chat-icon-whatsapp {
    background-image: url('icons/icon-whatsapp.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-whatsapp {
    background-color: #25d366;
}

.lvov-chat-icon-vk {
    background-image: url('icons/icon-vk.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-vk {
    background-color: #0077ff;
}

.lvov-chat-offline-msg {
    position: absolute;
    bottom: 70px;
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: lvov-fade-in 0.5s;
}

.lvov-chat-offline-msg::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-top: 6px solid #333;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

/* Hint Tooltip */
.lvov-chat-hint {
    position: absolute;
    right: 60px;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    margin-right: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.lvov-chat-item:hover .lvov-chat-hint {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.lvov-chat-hint::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    margin-top: -4px;
    border-left: 4px solid #333;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.lvov-chat-left .lvov-chat-hint {
    right: auto;
    left: 60px;
    margin-right: 0;
    margin-left: 10px;
}

.lvov-chat-left .lvov-chat-hint::after {
    right: auto;
    left: -4px;
    border-left: none;
    border-right: 4px solid #333;
}

/* QR Code Popup */
.lvov-chat-qr {
    position: absolute;
    right: 60px;
    bottom: 0;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
    z-index: 10001;
    border: 1px solid #eee;
}

.lvov-chat-qr canvas {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

.lvov-chat-qr span {
    font-size: 10px;
    color: #888;
}

/* Show QR only on desktop hover */
@media (min-width: 769px) {
    .lvov-chat-qr.active {
        display: flex;
    }
}

.lvov-chat-left .lvov-chat-qr {
    right: auto;
    left: 60px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lvov-chat-widget {
        bottom: 20px !important;
    }

    .lvov-chat-right {
        right: 20px !important;
    }

    .lvov-chat-left {
        left: 20px !important;
    }
}

/* Pulse Animation */
/* Pulse Animation - Radiating Circles */
/* Pulse Animation - Radiating Circles */
.lvov-chat-main-btn::before,
.lvov-chat-main-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 var(--lvov-pulse-color, rgba(0, 131, 209, 0.4));
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Fix Pulse Z-Index Context */
.lvov-chat-main-btn {
    z-index: 2147483647;
    position: relative;
    transform-style: flat;
    background-clip: padding-box;
}

/* Base keyframes - always available */
/* Base keyframes - always available */
@keyframes lvov-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 var(--lvov-pulse-color, rgba(0, 131, 209, 0.7));
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 0 10px var(--lvov-pulse-color, rgba(0, 131, 209, 0));
        opacity: 0;
    }
}

/* Mobile Pulse Logic */
@media (max-width: 768px) {
    .lvov-pulse-mobile .lvov-chat-main-btn::before {
        animation: lvov-pulse-ring 2s infinite;
    }

    .lvov-pulse-mobile .lvov-chat-main-btn::after {
        animation: lvov-pulse-ring 2s infinite 0.6s;
    }
}

/* Desktop Pulse Logic */
@media (min-width: 769px) {
    .lvov-pulse-desktop .lvov-chat-main-btn::before {
        animation: lvov-pulse-ring 2s infinite;
    }

    .lvov-pulse-desktop .lvov-chat-main-btn::after {
        animation: lvov-pulse-ring 2s infinite 0.6s;
    }
}

/* Stop animation on hover/active state */
.lvov-chat-widget.active .lvov-chat-main-btn::before,
.lvov-chat-widget.active .lvov-chat-main-btn::after,
.lvov-chat-main-btn:hover::before,
.lvov-chat-main-btn:hover::after {
    animation: none !important;
    opacity: 0 !important;
}



/* Fix for z-index issues with pseudo elements */
.lvov-chat-main-btn {
    z-index: 1;
}

/* Curtain Form Styles - Replaces Modal */
.lvov-chat-modal {
    display: none;
    /* Toggled via Js */
    position: absolute;
    bottom: 80px;
    /* Above main button */
    right: 0;
    width: 300px;
    z-index: 10000;
    animation: lvov-slide-up 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lvov-chat-left .lvov-chat-modal {
    left: 0;
    right: auto;
}

.lvov-chat-modal.active {
    display: block;
}

@keyframes lvov-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lvov-chat-modal.active {
    display: block;
}

@keyframes lvov-fade-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.lvov-chat-modal-content {
    background-color: var(--lvov-form-bg-color, #fefefe);
    margin: 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lvov-chat-modal-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.lvov-chat-modal-close:hover,
.lvov-chat-modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.lvov-chat-modal-content h3 {
    margin-top: 0;
    color: var(--lvov-form-text-color, #333);
}

.lvov-chat-modal-content p {
    color: var(--lvov-form-text-color, #666);
    font-size: 14px;
    margin-bottom: 20px;
}

.lvov-chat-input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
}

.lvov-chat-input:focus {
    border-color: var(--lvov-form-btn-color, #0083d1);
}

.lvov-chat-submit-btn {
    width: 100%;
    background-color: var(--lvov-form-btn-color, #0083d1);
    /* Main color matches default */
    color: var(--lvov-form-btn-text-color, white);
    padding: 12px 20px;
    margin: 10px 0 0 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}










.lvov-chat-icon-viber {
    background-image: url('icons/icon-viber.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lvov-chat-item.lvov-type-viber {
    background-color: #665CAC;
}


.lvov-chat-item.lvov-type-instagram {
    background-color: #E1306C;
}



/* Modal / Curtain Styles */
.lvov-chat-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    /* Desktop Default: Center */
    justify-content: center;
}

.lvov-chat-modal.active {
    display: flex;
    opacity: 1;
}

.lvov-chat-modal-content {
    background-color: var(--lvov-form-bg-color, #fefefe);
    color: var(--lvov-form-text-color, #333);
    margin: 0;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lvov-chat-modal.active .lvov-chat-modal-content {
    transform: translateY(0);
}

.lvov-chat-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    transition: color 0.2s;
}

.lvov-chat-modal-close:hover {
    color: #666;
}

.lvov-chat-modal h3 {
    margin: 0;
    gap: 15px;
    margin-top: 10px;
}

.lvov-chat-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.lvov-chat-input:focus {
    border-color: var(--lvov-form-btn-color, #0083d1);
}

.lvov-chat-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--lvov-form-btn-color, #0083d1);
    color: var(--lvov-form-btn-text-color, #fff);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.lvov-chat-submit-btn:hover {
    opacity: 1;
    filter: brightness(0.85);
}

.lvov-chat-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lvov-chat-result {
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

/* Mobile: Curtain / Bottom Sheet Style */
@media (max-width: 768px) {
    .lvov-chat-modal {
        align-items: flex-end;
        /* Align bottom */
        padding-bottom: 0;
    }

    .lvov-chat-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
        padding-bottom: 40px;
        /* Safe area for swipe bar if any */
        transform: translateY(100%);
    }

    .lvov-chat-modal.active .lvov-chat-modal-content {
        transform: translateY(0);
    }
}

/* Welcome Bubble - 44x44px left image */
/* Welcome Bubble - 44x44px left image */
.lvov-chat-welcome-bubble {
    display: none;
    position: absolute;
    bottom: 0;
    right: 75px;
    width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 15px;
    flex-direction: row;
    align-items: flex-start;
    z-index: 9999;
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.lvov-chat-welcome-bubble.active {
    display: flex;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.lvov-chat-left .lvov-chat-welcome-bubble {
    right: auto;
    left: 75px;
    transform-origin: bottom left;
    transform: translateX(20px) scale(0.9);
}

.lvov-chat-left .lvov-chat-welcome-bubble.active {
    transform: translateX(0) scale(1);
}

.lvov-chat-welcome-img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.lvov-chat-welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.lvov-chat-welcome-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.2;
}

.lvov-chat-welcome-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.lvov-chat-welcome-close {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 5px;
    line-height: 1;
}

.lvov-chat-welcome-close:hover {
    color: #333;
}

/* Mobile adjustments for welcome bubble */
@media (max-width: 768px) {
    .lvov-chat-welcome-bubble {
        width: calc(100vw - 100px);
        max-width: 280px;
        padding: 12px;
    }
    
    .lvov-chat-welcome-img {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        margin-right: 10px;
    }
    
    .lvov-chat-welcome-title {
        font-size: 14px;
    }
    
    .lvov-chat-welcome-desc {
        font-size: 12px;
    }
}
/* Interaction and viewport constraints. Keep the closed wrapper button-sized. */
.lvov-chat-widget {
    --lvov-current-bottom: var(--lvov-bottom, 40px);
    --lvov-current-side: var(--lvov-side, 40px);
    height: 60px;
    pointer-events: none;
}
.lvov-chat-widget *, .lvov-chat-modal, .lvov-chat-modal * { box-sizing: border-box; }
.lvov-chat-main-btn { border: 0; padding: 0; flex-shrink: 0; pointer-events: auto; }
.lvov-chat-main-btn:focus-visible, .lvov-chat-item:focus-visible,
.lvov-chat-modal button:focus-visible, .lvov-chat-welcome-close:focus-visible {
    outline: 3px solid #172554;
    outline-offset: 3px;
}
.lvov-chat-links {
    position: absolute;
    bottom: 70px;
    margin: 0;
    width: 70px;
    max-height: calc(100vh - var(--lvov-current-bottom) - 90px);
    max-height: calc(100dvh - var(--lvov-current-bottom) - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 5px;
    scrollbar-width: thin;
    pointer-events: none;
}
.lvov-chat-widget.active .lvov-chat-links { pointer-events: auto; }
.lvov-chat-item { flex: 0 0 50px; }
.lvov-chat-widget.lvov-modal-open .lvov-chat-main-btn { visibility: hidden; pointer-events: none; }
.lvov-chat-welcome-bubble { pointer-events: auto; width: 340px; max-width: calc(100vw - 110px - var(--lvov-current-side)); }
.lvov-chat-welcome-content { min-width: 0; overflow-wrap: anywhere; padding-right: 12px; }
.lvov-chat-welcome-close, .lvov-chat-modal-close { border: 0; background: transparent; min-width: 32px; min-height: 32px; }
.lvov-chat-modal {
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    animation: none;
    padding: 16px;
    pointer-events: auto;
}
.lvov-chat-modal-content { flex: 0 0 auto; width: 100%; max-height: 100%; overflow-y: auto; box-sizing: border-box; gap: 8px; }
.lvov-chat-modal form[hidden] { display: none !important; }
.lvov-chat-modal form label { display: block; text-align: left; font-size: 14px; }
.lvov-chat-modal-close { flex-shrink: 0; z-index: 1; }
.lvov-chat-result { overflow-wrap: anywhere; }
.lvov-chat-qr { width: 170px; pointer-events: none; }
@media (max-width: 768px) {
    .lvov-chat-widget { --lvov-current-bottom: var(--lvov-bottom-mobile, 20px); --lvov-current-side: var(--lvov-side-mobile, 20px); }
    .lvov-chat-widget .lvov-chat-welcome-bubble { bottom: 80px; right: 0; left: auto; width: 280px; max-width: calc(100vw - var(--lvov-current-side) - 12px); }
    .lvov-chat-widget.lvov-chat-left .lvov-chat-welcome-bubble { left: 0; right: auto; }
    .lvov-chat-modal { padding: 8px 0 0; }
    .lvov-chat-modal-content { max-width: 100%; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .lvov-chat-widget .lvov-chat-links,
    .lvov-chat-widget .lvov-chat-item { transform: none !important; }
    .lvov-chat-main-btn .lvov-chat-icon-open,
    .lvov-chat-main-btn .lvov-chat-icon-close { transform: none !important; }
    .lvov-chat-widget .lvov-chat-item.lvov-type-max,
    .lvov-chat-widget .lvov-chat-main-btn::before, .lvov-chat-widget .lvov-chat-main-btn::after,
    .lvov-chat-widget *, .lvov-chat-widget *::before, .lvov-chat-widget *::after,
    .lvov-chat-modal, .lvov-chat-modal * { animation: none !important; transition: none !important; }
}
