/* Стили виджета */

.contact-widget {
    position: fixed;
    right: var(--cw-pos-right);
    bottom: var(--cw-pos-bottom);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 28px;
    z-index: 9999;
}

.contact-widget i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--cw-icons-color);
    font-size: 25px;
    font-family: 'FontAwesome' !important;
    transition: .4s all;
}

.contact-widget__button {
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    position: relative;
    transition: .4s all;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.contact-widget__circle {
    height: 60px;
    width: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: var(--cw-btns-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    transition: .4s all;
}

.contact-widget__text {
    padding: 0;
    white-space: nowrap;
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 0 8px rgba(34, 60, 80, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
    transition: .4s all;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    width: 100%;
    opacity: 0;
    overflow: hidden;
}

.contact-widget__button:not(.contact-widget__button--parent).active .contact-widget__text {
    padding-left: 68px;
    padding-right: 12px;
    opacity: 1;
}

.contact-widget__button--parent {
    position: relative;
}

.cw-icons__item:not(.cw-icons__item.active) {
    opacity: 0;
}

.contact-widget__subitems {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;

    opacity: 0;
    transform: scale(0.7);
    transform-origin: bottom right;
    pointer-events: none;
    transition: .3s all;
}

.contact-widget__button--parent .contact-widget__circle > i {
    opacity: 0;
}

.contact-widget__button--parent.active .contact-widget__circle > i {
    opacity: 1;
}

.contact-widget__button--parent.active .cw-icons__item {
    opacity: 0 !important;
}

.contact-widget__button--parent.active .contact-widget__subitems {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Пульсирующая волна */

.cw-pulse {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: cw-pulse 2s infinite;
}

.contact-widget__button.active .cw-pulse {
    opacity: 0 !important;
    transform: none !important;
}

.cw-pulse {
    background-color: var(--cw-btns-color);
    opacity: 0.5;
}

@keyframes cw-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
  