/* Виджет в правом нижнем углу */
#sip-widget {
    position: fixed;
    bottom: 2rem;
    right: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
    transition: all 0.3s ease;
}

body:has([data-cookie-banner]) #sip-widget {
  bottom: calc(2rem + var(--cookie-height, 0px));
}

/* Круглая кнопка вызова */
#call-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-white_25);
    border: 1px solid var(--color-white_25);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#call-btn:hover {
    transform: scale(1.1);
    background-color: var(--color-blue);
}

#call-btn.ending {
    background-color: #f44336;
}

#call-btn.ending:hover {
    background-color: #d32f2f;
}

/* Иконка */
#call-icon {
    display: inline-flex;
}
#call-btn span svg path {
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
}
#call-btn:hover span svg path {
    fill: #fff;
}

/* Статус вызова */
#status {
    background-color: var(--color-white_25);
    border: 1px solid var(--color-white_25);
    backdrop-filter: blur(12px);
    padding: 8px 12px;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#status.show {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация звонка */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.calling {
    animation: pulse 1s infinite;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    #sip-widget {
        bottom: 1rem;
        right: 1rem;
    }

    body:has([data-cookie-banner]) #sip-widget {
        bottom: calc(1rem + var(--cookie-height, 0px));
    }
    
    #call-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    #status {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ============================
   CHAT WIDGET BUTTON (custom)
   ============================ */

.chat-widget-button {


    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-white_25);
    border: 1px solid var(--color-white_25);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;



}

.chat-widget-button:hover {
  transform: scale(1.07);
  -webkit-transform: scale(1.07);
  -moz-transform: scale(1.07);
  -ms-transform: scale(1.07);
  -o-transform: scale(1.07);
}

/* SVG внутри кнопки */
.chat-widget-button svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
    .chat-widget-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}