/* Стили главного контейнера */
.ednamb-container {
    right: 0;
    bottom: 0;
    left: unset;
    z-index: 1044;
    padding: 20px;
    position: fixed;
    width: 100px;
    height: auto;
    background-color: transparent;
    border-radius: 15px 15px 0 0;
    transform: translateY(230px);
    opacity: 1;
    transition: transform 0.3s, transform-origin 0.3s, scale 0.3s, opacity 0.3s,
    bottom 0.3s, top 0.3s, left 0.3s, right 0.3s, background-color 0.3s;
}

.ednamb-container.open {
    background-color: #fff;
    transform: translateY(0);
    transition: opacity 0.5s, background-color 0.5s;
}

@media (max-width: 1023px) {
    .ednamb-container {
        z-index: 10001;
        padding: 0;
        width: 100%;
    }

    .ednamb-container.open {
        background-color: transparent;
        width: 100%;
        padding: 0;
    }
}

/* Стили главного контейнера в скрытом состоянии */
.ednamb-container.ednamb-hide {
    opacity: 0;
}

.ednamb-container-shadow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    background-color: #13353F;
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
}

@media (max-width: 1023px) {
    .ednamb-container-shadow:not(.ednamb-hide) {
        display: block;
    }
}

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

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

/* Стили кнопки из блока верхних кнопок */
.ednamb-top-button {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: rgba(255, 0, 34, 0.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, 0.8);
}

.ednamb-left-buttons {
    position: relative;
    width: 100%;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    opacity: 1;
    transition: opacity 0.3s;
}

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

.ednamb-left-buttons-head {
    display: none;
    width: 100%;
    margin-bottom: 20px;
}

.ednamb-left-buttons-head > div {
    width: calc(100% - 30px);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
}

.ednamb-left-buttons-head > svg {
    width: 30px;
    height: 30px;
}

.ednamb-left-buttons-elements {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1023px) {
    .ednamb-left-buttons {
        position: absolute;
        bottom: 0;
        background-color: #fff;
        width: 100%;
        border-radius: 15px 15px 0 0;
        padding: 20px;
        transform: translateY(100%);
        transition: all 0.3s;
    }

    .ednamb-container.open .ednamb-left-buttons {
        transform: translateY(0);
    }

    .ednamb-left-buttons-head {
        display: flex;
        flex-direction: row;
    }

    .ednamb-left-buttons-elements {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Стили кнопки из блока нижних кнопок */
.ednamb-left-button {
    width: 60px;
    height: 0;
    margin: 0;
    background-color: transparent;
    background-size: 60px;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.ednamb-left-button-c {
    width: 60px;
    height: 0;
    margin: 0;
    margin-right: 0px;
    background-color: transparent;
    background-size: 60px;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
    .ednamb-left-buttons:not(.ednamb-hide) .ednamb-left-button:last-child {
        margin-bottom: 80px !important;
    }
}

@media (max-width: 1023px) {
    .ednamb-left-button {
        width: 60px !important;
        height: 59px !important;
        margin-bottom: 0 !important;
    }
}

.ednamb-left-button-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: auto;
    border-radius: 10px;
    background-image: url('/edna/assets/main-static.svg');
    background-color: #00A9BF;
    background-repeat: no-repeat;
    background-size: 25px 25px;
    background-position: center;
}

.ednamb-left-button-icon-c {
    display: block;
    width: 40px;
    height: 40px;
    margin: auto;
    border-radius: 10px;
    background-image: url('/edna/assets/main-static.svg');
    background-color: #00A9BF;
    background-repeat: no-repeat;
    background-size: 25px 25px;
    background-position: center;
}

.ednamb-left-button.edna-call .ednamb-left-button-icon {
    background-image: url('/edna/assets/edna-call.svg');
    background-color: #08D3B7;
}

.ednamb-left-button.edna-chat .ednamb-left-button-icon {
    background-image: url('/edna/assets/button-mini.svg');
    background-color: #FFB34D;
}

.ednamb-left-button.telegram .ednamb-left-button-icon {
    background-image: url('/edna/assets/telegram-white.svg');
    background-color: #08C3DC;
}

.ednamb-left-button.whatsapp .ednamb-left-button-icon {
    background-image: url('/edna/assets/whatsapp-white.svg');
    background-color: #65D072;
}

.ednamb-left-button.viber .ednamb-left-button-icon {
    background-image: url('/edna/assets/viber-white.svg');
    background-color: #765397;
}

.ednamb-left-button-c.telegram .ednamb-left-button-icon {
    background-image: url('/edna/assets/telegram-white.svg');
    background-color: #08C3DC;
}

.ednamb-left-button-c.whatsapp .ednamb-left-button-icon {
    background-image: url('/edna/assets/whatsapp-white.svg');
    background-color: #65D072;
}

.ednamb-left-button-c.viber .ednamb-left-button-icon {
    background-image: url('/edna/assets/viber-white.svg');
    background-color: #765397;
}

.ednamb-left-button-text {
    font-size: 12px;
    line-height: 13px;
    color: #13353F;
    text-align: center;
    margin-top: 6px;
}


/*.ednamb-left-button[href="#"] {
  background-color:#00A9BF!important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-size: 36px;
}*/

/* Стили кнопки из блока нижних кнопок при наведении */
.ednamb-left-button:hover {
    transform: scale(1.1);
}

/* Стили главной кнопки */
.ednamb-button {
    width: 60px;
    height: 60px;
    padding: 10px;
    cursor: pointer !important;
    border-radius: 60px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    background-color: white;
    background-repeat: no-repeat;
    background-size: 60px 60px;
    background-position: center;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Стили главной кнопки в активном состоянии */
.ednamb-button.start {
    background-image: url('/edna/assets/main-static.svg') !important;
    background-color: #FFB34D;
    background-size: 40px 40px;
}
.ednamb-button.disabled {
    cursor: default;
    opacity: 1;
}
.ednamb-button.ednamb-hide {
    display: none !important;
}

@media (max-width: 1023px) {
    .ednamb-button, .ednamb-button.start {
        bottom: 83px;
        right: 15px;
        width: 45px;
        height: 45px;
        background-image: url('/edna/assets/button-mini.svg') !important;
        background-color: #FFB34D;
        background-size: 25px 25px;
    }

    .ednamb-button.active {
        opacity: 0 !important;
    }
}

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

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

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

.edna-banner {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 999999999;
    background-color: #fff;
    padding: 14px 12px 8px 12px;
    display: none;
}

@media screen and (min-width: 768px) {
    .edna-banner {
        bottom: 120px;
        right: 100px;
        max-width: 320px;
    }
}

.edna-content {
    margin-top: 16px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.edna-content__card {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.edna-content__card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-width: 48px;
}

.violet_viber {
    background-color: #765497;
}

.edna-content__card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 16px;
    height: auto;
    overflow: visible;
    background-color: transparent;
    cursor: default;
}

.edna-content__card-text p.dark_grey {
    margin: 4px 0 2px 0;
    font-weight: 600;
    font-size: 11px;
    line-height: 11px;
    letter-spacing: -0.5px;
}

.edna-banner span {
    color: #13353F;
    letter-spacing: -0.5px;
    padding-top: 2px;
}

.edna-banner__close {
    position: absolute;
    right: 15px;
    top: 20px;
    cursor: pointer;
}

.edna-banner__close:hover {
    opacity: 0.3;
}

.edna-banner__close svg {
    display: block;
    fill: #000000;
}

.edna-banner__wrapper-head {
    height: auto;
    overflow: visible;
    padding: 0;
    cursor: default !important;
    background-color: transparent;
}

.edna-banner__wrapper-head:hover {
    background-color: unset !important;
}

.scroller {
    background-color: red;
}


#__threadswidget_chat__container {

    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    background-repeat: no-repeat !important;
}

#__threadswidget_chat__container * {
    background-repeat: no-repeat !important;
    display: none !important;
    color: green;
    padding: 50px;
}


@media screen and (max-width: 480px) {
    #__threadswidget_chat__container {

        width: 100vW !important;
        height: 100vH !important;
        top: 0 !important;
        right: 0 !important;
        /*min-width:360px!important;
        max-width:360px!important;
        */

    }
}

.ednamb-button .count-messages,
.ednamb-left-button[href="#"] .count-messages,
#ednaCallBtn .count-messages {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    align-items: center;
    text-align: center;
    background-color: red;
    border-radius: 50%;
    color: #fff;
    display: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(4px, -4px);
}

.ednamb-left-button .count-messages {
    right: 10px !important;
}

.ednamb-button .count-messages.non_active_mode {
    display: none !important;
}
