.material-icons-telvoip {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

.floating-button {
    padding: 0 !important;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10005;
    background-color: #F53100; /* Matching client's primary brand color from settings */
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.floating-button:hover {
    background-color: rgba(245, 49, 0, 0.85);
}

.badge-telvoip {
    padding: 0 !important;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background-color: #22c55e; /* Green badge indicating online state */
    border-radius: 50%;
}

/* Chat iframe container */
#chat-container {
    position: fixed;
    bottom: 96px; /* Offset slightly higher than button bottom to look neat */
    z-index: 10005;
    right: 24px;
    width: 350px;
    height: 500px;
    background: white;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    display: none;
    overflow: hidden;
}

#chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button */
.close-button {
    top: 15px;
    position: absolute;
    z-index: 10006;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Show chat container */
#chat-container.show {
    display: block;
}
