.sw-chat-widget {
    position: fixed;
    right: 10%;
    bottom: 88px;
    z-index: 1200;
}

.sw-chat-trigger {
    position: fixed;
    bottom: 70px;
    right: 10%;
    z-index: 2147483640;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 62px;
    padding: 10px 8px;
    border-radius: 28px;
    background: var(--green);

    cursor: pointer;
    transition:
            transform .25s ease,
            box-shadow .25s ease,
            opacity .2s ease,
            visibility .2s ease;
    box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.3),
            0 0 0 1px var(--w-border-glow),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);

    animation: swChatFloat 3.2s ease-in-out infinite;
}

.sw-chat-trigger:hover {
    transform: scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

@keyframes swChatFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

.sw-chat-trigger__icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-chat-trigger__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sw-chat-trigger__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 28, 36, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.sw-chat-modal {
    position: fixed;
    right: 10%;
    bottom: 165px;
    width: 340px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.98);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.sw-chat-widget.is-open .sw-chat-overlay,
.sw-chat-widget.is-open .sw-chat-modal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sw-chat-widget.is-open .sw-chat-modal {
    transform: translateY(0) scale(1);
}

.sw-chat-widget.is-open .sw-chat-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.92);
    animation: none;
}

.sw-chat-modal__inner {
    position: relative;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    color: var(--grey-dark);
    border: 1px solid rgba(92, 129, 127, 0.15);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.sw-chat-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(92, 129, 127, 0.08);
}

.sw-chat-close span {
    position: absolute;
    left: 8px;
    top: 14px;
    width: 14px;
    height: 2px;
    background: var(--grey-dark);
}

.sw-chat-close span:first-child {
    transform: rotate(45deg);
}

.sw-chat-close span:last-child {
    transform: rotate(-45deg);
}

.sw-chat-header {
    margin-bottom: 18px;
    padding-right: 28px;
}

.sw-chat-title {
    font-size: 1.35rem;
    line-height: 1.15;
    font-family: 'OpenSans-Bold';
    color: var(--grey-dark);
    margin-bottom: .35rem;
}

.sw-chat-subtitle {
    font-size: .95rem;
    line-height: 1.4;
    color: #5f6d6b;
}

.sw-chat-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.sw-chat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 18px;
    background: #f7fbfb;
    border: 1px solid rgba(129, 189, 187, 0.22);
    color: var(--grey-dark);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sw-chat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 189, 187, 0.55);
    box-shadow: 0 10px 20px rgba(129, 189, 187, 0.12);
}

.sw-chat-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(129, 189, 187, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sw-chat-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sw-chat-card__name {
    font-size: .82rem;
    line-height: 1.25;
    font-family: 'OpenSans-Semibold';
    text-align: center;
}

.sw-chat-contact {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.sw-chat-contact__item {
    display: block;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(129, 189, 187, 0.08);
    color: var(--grey-dark);
    border: 1px solid rgba(129, 189, 187, 0.18);
    transition: background .2s ease, border-color .2s ease;
}

.sw-chat-contact__item:hover {
    background: rgba(129, 189, 187, 0.14);
    border-color: rgba(129, 189, 187, 0.38);
}

.sw-chat-footer {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(92, 129, 127, 0.12);
}

.sw-chat-footer__item {
    font-size: .83rem;
    line-height: 1.45;
    color: #5f6d6b;
}

body.sw-chat-lock {
    overflow: hidden;
}

@media (max-width: 767px) {
    .sw-chat-widget {
        left: 12px;
        bottom: 80px;
    }

    .sw-chat-trigger {
        width: 58px;
        padding: 7px 6px;
    }

    .sw-chat-trigger__icon {
        width: 44px;
        height: 44px;
    }

    .sw-chat-trigger__icon img {
        width: 100%;
        height: 100%;
    }

    .sw-chat-modal {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 150px;
    }

    .sw-chat-modal__inner {
        padding: 18px;
    }

    .sw-chat-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .sw-chat-card {
        padding: 12px 8px;
    }

    .sw-chat-card__icon {
        width: 48px;
        height: 48px;
    }

    .sw-chat-card__icon img {
        width: 24px;
        height: 24px;
    }

    .sw-chat-card__name {
        font-size: .75rem;
    }
}