.elementor-widget-ucaddon_digi_ofconnect {
    position: static;
}

#toggle-ofconnect {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #AD4FD8;
    cursor: pointer;
    transition: background 0.3s ease;
}

#toggle-ofconnect.active {
    z-index: 1001;
}

#toggle-ofconnect:hover {
    background-color: #9D48C5;
}

#toggle-ofconnect:not(.active) img:last-of-type,
#toggle-ofconnect.active img:first-of-type {
    display: none;
}

#ofconnect {
    display: none;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    top: calc(100% + 20px);
    left: 20px;
    width: calc(100% - 40px);
    border-radius: 32px;
    padding: 32px 24px;
    transition: opacity 0.6s ease;
    background: url(../jpg/bg_of_widget.jpg) no-repeat center center / cover;
}

#ofconnect.active {
    display: block;
    opacity: 1;
}

.fadeIn {
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeOut {
    animation: fadeOut 0.8s forwards;
}

#ofconnect .logo {
    display: block;
    margin: 0 auto;
}

.ofconnect-tittle {
    margin: 32px 0;
    font-size: 22px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-wrap: balance;
}

.ofconnect-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ofconnect-btns a {
    display: flex;
    align-items: center;
    padding: 12px 42px;
    gap: 16px;
    justify-content: center;
    background: #470AA7;
    border-radius: 40px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.ofconnect-btns a:hover {
    background: #370A7C;
}

.ofconnect-btns a.btn-scnd {
    background: #55CDE7;
}

.ofconnect-btns a.btn-scnd:hover {
    background: #17A4C3;
}

@media (min-width: 1024px) {
    .elementor-widget-ucaddon_digi_ofconnect  {  
        position: absolute;
        top: -88px;
        right: 24px;
    }
    #ofconnect {
        position: fixed;
        width: 1132px;
        max-width: calc(100% - 40px);
        top: auto;
        left: 50vw;
        transform: translate(-50%, 24px);
        padding: 70px 175px;
        background: url(../jpg/bg_of_widget_desktop.jpg) no-repeat center center / cover;
    }
    .ofconnect-tittle {
       font-size: 40px;
    }
    #ofconnect.active {
        box-shadow: 0 0 200vw 200vw rgba(0, 0, 0, 0.3);
    }
    .ofconnect-btns a  {
        font-size: 16px;
    }
}

@media (min-width: 1350px) {
    .elementor-widget-ucaddon_digi_ofconnect  {    
        position: fixed;
        top: calc(15vh + 168px);
        right: 20px;
    }
    #ofconnect {
        transform: translate(-50%, -64px);
    }
}

@media (max-width: 1023px) {
    #ofconnect .logo {
        width: 234px;
        aspect-ratio: 234 / 44;
    }
    .ofconnect-btns {
        flex-direction: column;
    }
    .ofconnect-btns a {
        flex-grow: 1;
    }
}