.otb-widget {
    position: fixed;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.otb-left {
    left: 20px;
}

.otb-right {
    right: 20px;
}

/* Pulsante principale */
.otb-main-button {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--otb-chat-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    overflow: hidden;
}

.otb-icon {
    position: absolute;
    fill: #ffffff;
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
}

.otb-icon-front {
    opacity: 1;
    transform: rotate(0deg);
}

.otb-icon-back {
    opacity: 0;
    transform: rotate(-180deg);
}

/* Hover Effect */
.otb-main-button:hover .otb-icon-front {
    opacity: 0;
    transform: rotate(180deg);
}

.otb-main-button:hover .otb-icon-back {
    opacity: 1;
    transform: rotate(0deg);
}

/* Contenitore dei link */
.otb-links {
    position: absolute;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

/* Mostra i link quando il mouse passa sopra */
.otb-widget:hover .otb-links {
    opacity: 1;
    transform: translateY(0);
}

/* Stili per le icone */
.otb-links a {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.otb-whatsapp svg {
    fill: var(--otb-whatsapp-icon);
    width: 30px;
    height: 30px;
}

.otb-messenger svg {
    fill: var(--otb-messenger-icon);
    width: 30px;
    height: 30px;
}

/* Bolla di testo */
.otb-chat-bubble {
    position: absolute;
    right: 80px;
    background-color: var(--otb-bubble-bg);
    color: var(--otb-bubble-text);
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s;
    white-space: nowrap;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}

/* Aggiungiamo la linguetta verso destra */
.otb-chat-bubble::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid var(--otb-bubble-bg);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

/* La bolla scompare all'hover */
.otb-widget:hover .otb-chat-bubble {
    opacity: 0;
}

@media (max-width: 768px) {
    .otb-chat-bubble {
        display: none !important;
    }
}
