.chat-icon {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #25D366;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: transform 0.3s ease;
        }
        
        .chat-icon:hover {
            transform: scale(1.1);
        }
        
        .chat-window {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 320px;
            height: 540px; /* Увеличено для размещения кнопки закрытия */
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            display: none;
            flex-direction: column;
            z-index: 999;
        }

        .chat-body {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            background-color: #E5DDD5;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23bbb' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
            height: calc(100% - 220px); /* Скорректировано под новую высоту */
        }
        
        .chat-header {
            background-color: #075E54;
            color: white;
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .manager-info {
            display: flex;
            align-items: center;
        }
        
        .manager-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #fff;
            margin-right: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }

        .avatar-logo {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .manager-name {
            font-weight: bold;
        }
        
        .close-btn {
            cursor: pointer;
            font-size: 20px;
        }
        
        .message {
            max-width: 80%;
            padding: 10px 15px;
            border-radius: 10px;
            margin-bottom: 10px;
            position: relative;
        }
        
        .message::after {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            top: 0;
            transform: rotate(45deg);
        }
        
        .message-received {
            background-color: white;
            align-self: flex-start;
            border-top-left-radius: 0;
        }
        
        .message-received::after {
            left: -5px;
            background-color: white;
        }
        
        .message-sent {
            background-color: #DCF8C6;
            align-self: flex-end;
            margin-left: auto;
            border-top-right-radius: 0;
        }
        
        .message-time {
            font-size: 10px;
            color: #888;
            text-align: right;
            margin-top: 5px;
        }
        
        .chat-form {
            padding: 15px;
            background-color: #F0F0F0;
        }
        
        .form-group {
            margin-bottom: 10px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #075E54;
        }
        
        .form-group input, .form-group textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }
        
        .submit-btn {
            width: 100%;
            padding: 10px;
            background-color: #25D366;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .submit-btn:hover {
            background-color: #128C7E;
        }
        
        .message-container {
            display: flex;
            flex-direction: column;
        }
        
        .success-message {
            display: none;
            background-color: #25D366;
            color: white;
            padding: 15px;
            border-radius: 10px;
            margin-top: 10px;
            text-align: center;
        }

        /* Стили для кнопки закрытия */
        .chat-close-section {
            padding: 10px 15px;
            background-color: #F0F0F0;
            border-top: 1px solid #ddd;
        }

        .close-chat-btn {
            width: 100%;
            padding: 8px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .close-chat-btn:hover {
            background-color: #c82333;
        }
        
        @media (max-width: 480px) {
            .chat-window {
                width: 300px;
                right: 10px;
                bottom: 80px;
            }
        }
	
        .typing-cursor {
            animation: blink 0.7s infinite;
            font-weight: bold;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }	