.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 86px;
    z-index: 9997;
    font-family: inherit;
}

.rtlSet .floating-contact {
    right: auto;
    left: 22px;
}

.floating-contact__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.rtlSet .floating-contact__buttons {
    align-items: flex-start;
}

.floating-contact__button {
    min-width: 138px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .22);
    cursor: pointer;
    text-decoration: none;
    transform: translateY(0);
    animation: floating-contact-pulse 4s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.floating-contact__button:hover,
.floating-contact__button:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .3);
}

.floating-contact__button--whatsapp {
    background: linear-gradient(135deg, #19b967 0%, #0e8f4f 100%);
}

.floating-contact__button--chat {
    background: linear-gradient(135deg, #101827 0%, #334155 100%);
}

.floating-chat {
    position: absolute;
    right: 0;
    bottom: 116px;
    width: min(360px, calc(100vw - 32px));
    height: 500px;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 25px 80px rgba(15, 23, 42, .28);
    border: 1px solid rgba(148, 163, 184, .22);
    transform: translateY(16px) scale(.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.rtlSet .floating-chat {
    right: auto;
    left: 0;
}

.floating-chat.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-chat__header {
    padding: 18px 18px 16px;
    background: linear-gradient(135deg, #101827 0%, #263244 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.floating-chat__header strong,
.floating-chat__header small {
    display: block;
}

.floating-chat__header strong {
    font-size: 16px;
    line-height: 1.2;
}

.floating-chat__header small {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .76);
}

.floating-chat__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.floating-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.floating-chat__message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.floating-chat__message--bot {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .24);
    color: #0f172a;
    border-bottom-left-radius: 6px;
}

.floating-chat__message--user {
    margin-left: auto;
    background: #101827;
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.rtlSet .floating-chat__message--user {
    margin-left: 0;
    margin-right: auto;
}

.floating-chat__links,
.floating-chat__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.floating-chat__pill {
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 999px;
    background: #ffffff;
    color: #1e293b;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.floating-chat__pill:hover,
.floating-chat__pill:focus {
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

.floating-chat__form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.floating-chat__form input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 999px;
    padding: 0 14px;
    color: #0f172a;
    outline: none;
}

.floating-chat__form input:focus {
    border-color: #334155;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, .12);
}

.floating-chat__form button {
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    background: #101827;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.floating-chat__form button:disabled,
.floating-chat__form input:disabled {
    opacity: .65;
    cursor: wait;
}

@keyframes floating-contact-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 575.98px) {
    .floating-contact {
        right: 14px;
        bottom: 72px;
    }

    .rtlSet .floating-contact {
        right: auto;
        left: 14px;
    }

    .floating-contact__button {
        min-width: 48px;
        width: 48px;
        padding: 0;
    }

    .floating-contact__button span {
        display: none;
    }

    .floating-chat {
        bottom: 112px;
        height: min(500px, calc(100vh - 130px));
    }
}
