.kcb-chat-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.kcb-main-button {
    width: var(--main-button-size, 60px);
    height: var(--main-button-size, 60px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.kcb-main-button-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    z-index: 0;
}

.kcb-main-button img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.kcb-main-button img.kcb-button-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

.kcb-chat-icon {
    opacity: 1;
    width: calc(var(--main-button-size, 60px) * 0.53);
    height: calc(var(--main-button-size, 60px) * 0.53);
    object-fit: contain;
}

.kcb-chatclose-icon {
    opacity: 0;
    width: calc(var(--main-button-size, 60px) * 0.53);
    height: calc(var(--main-button-size, 60px) * 0.53);
    object-fit: contain;
}

.kcb-main-button.open .kcb-chat-icon {
    opacity: 0;
}

.kcb-main-button.open .kcb-chatclose-icon {
    opacity: 1;
}

.kcb-buttons {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: calc(var(--main-button-size, 60px) + 15px);
    left: 0;
}

.kcb-button {
    width: var(--button-size, 50px);
    height: var(--button-size, 50px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    position: relative;
}

.kcb-button-icon {
    width: calc(var(--button-size, 50px) * 0.56);
    height: calc(var(--button-size, 50px) * 0.56);
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.kcb-button:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.kcb-buttons.show .kcb-button {
    animation: slideIn 0.3s forwards;
    animation-delay: calc(0.1s * var(--i));
}

.kcb-whatsapp {
    background: #25D366;
}

.kcb-telegram {
    background: #0088cc;
}

.kcb-max {
    background: #ff6b6b;
}

/* Анимация появления кнопок */
@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .kcb-chat-container {
        bottom: 20px;
        left: 20px;
    }
    
    .kcb-buttons {
        bottom: calc(var(--main-button-size, 50px) + 10px);
    }
}

/* Стили для админки */
.kcb-color-picker {
    width: 80px;
    height: 40px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}