/* Стили главного контейнера */
.ednamb-container {
    right: 80px;
    bottom: 80px;
    z-index: 999999999;
    position: fixed;
    transition: visibility .3s, transform .3s, transform-origin .3s, scale .3s, opacity .3s, bottom .3s, top .3s, left .3s, right .3s;
    opacity: 1;
}

/* Стили главного контейнера в скрытом состоянии */
.ednamb-container.ednamb-hide {
    visibility: hidden;
    transform: translateY(20%);
    opacity: 0;
}

/* Стили блока верхних кнопок */
.ednamb-top-buttons {
    position: absolute;
    right: 0;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: max-content;
    opacity: 1;
    transition: visibility .3s, transform .3s, transform-origin .3s, scale .3s, opacity .3s, bottom .3s, top .3s, left .3s, right .3s;
}

/* Стили блока верхних кнопок в скрытом состоянии */
.ednamb-top-buttons.ednamb-hide {
    visibility: hidden;
    transform: translateY(20%);
    opacity: 0;
}

/* Стили кнопки из блока верхних кнопок */
.ednamb-top-button {
    font-family: "Open Sans", Arial, sans-serif;
    background-color: rgba(255, 0, 34, .8);
    padding: 7px 15px;
    border-radius: 20px;
    text-transform: lowercase;
    color: white;
    margin: 5px 0;
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

/* Стили кнопки из блока верхних кнопок при наведении */
.ednamb-top-button:hover {
    background-color: rgba(225, 0, 4, .8);
}

/* Стили блока нижних кнопок */
.ednamb-left-buttons {
    height: 86px;
    position: absolute;
    right: 100px;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 1;
    transition: visibility .3s, transform .3s, transform-origin .3s, scale .3s, opacity .3s, bottom .3s, top .3s, left .3s, right .3s;
}

/* Стили блока нижних кнопок в скрытом состоянии */
.ednamb-left-buttons.ednamb-hide {
    visibility: hidden;
    transform: translateX(90px);
    opacity: 0;
}

/* Стили кнопки из блока нижних кнопок */
.ednamb-left-button {
    background-color: rgba(170, 170, 170, .9);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 30%;
    display: block;
    margin: 0 5px;
    width: 32px;
    height: 32px;
}

/* Стили кнопки из блока нижних кнопок при наведении */
.ednamb-left-button:hover {
    background-color: rgba(150, 150, 150, 1);
}

/* Стили главной кнопки */
.ednamb-button {
    width: 88px;
    height: 86px;
    cursor: pointer;
    position: absolute;
    right: 2px;
    bottom: 3px;
    background-image: url("button.png");
    filter: drop-shadow(4px 6px 2px rgba(0, 0, 0, 0.25));
    transition: all .05s;
}

/* Стили главной кнопки в активном состоянии */
.ednamb-button.ednamb-active {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
    right: 0;
    bottom: 0;
}

/* Стили мобильной версии */
@media (max-width: 1024px) and (orientation: portrait) {
    /* Стили блока верхних кнопок */
    .ednamb-top-buttons {
        bottom: 135px;
        transition-delay: 0s;
    }

    /* Стили блока верхних кнопок в скрытом состоянии */
    .ednamb-top-buttons.ednamb-hide {
        transition-delay: .2s;
    }

    /* Стили блока нижних кнопок */
    .ednamb-left-buttons {
        bottom: 95px;
        height: auto;
        right: 0;
        transition-delay: .2s;
    }

    /* Стили блока нижних кнопок в скрытом состоянии */
    .ednamb-left-buttons.ednamb-hide {
        transform: translateY(30%);
        transition-delay: 0s;
    }
}

/* custom */
/* Основная кнопка */
.ednamb-container {
    right: 40px;
    bottom: 40px;
}

.ednamb-button {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' viewBox='0 0 24 24' height='512'%3E%3Cpath d='M12 1C5.373 1 0 5.208 0 10.399c0 3.356 2.246 6.301 5.625 7.963-1.299 4.45-1.333 4.47-1.113 4.599.276.161.634-.005 5.357-3.311.692.097 1.404.148 2.131.148 6.627 0 12-4.208 12-9.399C24 5.208 18.627 1 12 1zM8.437 9.373a1.22 1.22 0 011.22 1.22 1.22 1.22 0 01-1.22 1.221 1.22 1.22 0 01-1.22-1.22 1.22 1.22 0 011.22-1.22zm3.563 0a1.22 1.22 0 011.22 1.22A1.22 1.22 0 0112 11.815a1.22 1.22 0 01-1.22-1.22A1.22 1.22 0 0112 9.374zm3.562 0a1.22 1.22 0 011.22 1.22 1.22 1.22 0 01-1.22 1.221 1.22 1.22 0 01-1.22-1.22 1.22 1.22 0 011.22-1.22z' fill='%23ffde41'/%3E%3C/svg%3E");
    background-color: white;
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center;
    border: 1px solid darkgray;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    right: 0;
    filter: none;
    bottom: 0;
}

.ednamb-active {
    position: relative;
    background-image: none;
}

.ednamb-active:after {
    display: flex;
    content: '\00D7';
    color: darkgray;
    font-size: 32px;
    font-weight: bold;
    height: 100%;
    line-height: 100%;
    align-items: center;
    justify-content: center;
}

/* Контейнер мульткнопок */
.ednamb-left-buttons {
    flex-direction: column;
    height: auto;
    right: 0;
    bottom: 55px;
}

/* Типовая мульткнопка */
.ednamb-left-button {
    flex-shrink: 0;
    background-size: 28px;
    margin: 5px 0;
    width: 50px;
    height: 50px;
}

/* WhatsApp */
.ednamb-left-button:nth-child(1) {
    background-color: #25D366;
}

/* Telegram */
.ednamb-left-button:nth-child(2) {
    background-color: #0088cc;
}

/* Viber */
.ednamb-left-button:nth-child(3) {
    background-color: #665CAC;
}

/* VK */
.ednamb-left-button:nth-child(4) {
    background-color: #2787F5;
}

/* Facebook */
.ednamb-left-button:nth-child(5) {
    background-color: #4267B2;
}

/* Chat */
.ednamb-left-button:nth-child(6) {
    background-color: #ff0000;
}

/* Анимация */
.ednamb-hide {
    transform: translateY(50px) !important;
}
