.site-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.site-chat .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-chat-panel {
    width: min(380px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(11, 19, 43, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(11, 19, 43, .24);
    transform-origin: right bottom;
    animation: site-chat-in .22s ease-out both;
}

.site-chat-panel[hidden] { display: none; }

.site-chat-header {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 13px 14px;
    background: #0b132b;
    color: #fff;
}

.site-chat-avatar {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(212, 162, 76, .7);
    border-radius: 50%;
    color: #d4a24c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
}

.site-chat-heading {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.25;
}

.site-chat-heading strong { font-size: 15px; }
.site-chat-heading small { margin-top: 4px; color: rgba(255, 255, 255, .72); font-size: 12px; }
.site-chat-heading i,
.site-chat-launcher i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36c977;
    box-shadow: 0 0 0 3px rgba(54, 201, 119, .14);
}

.site-chat-close {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .76);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.site-chat-close:hover,
.site-chat-close:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }

.site-chat-messages {
    display: flex;
    height: min(315px, 42vh);
    min-height: 210px;
    overflow-y: auto;
    padding: 17px 14px 10px;
    background: #f5f7fa;
    flex-direction: column;
    gap: 10px;
    overscroll-behavior: contain;
}

.site-chat-message {
    display: flex;
    max-width: 88%;
    flex-direction: column;
    gap: 9px;
    font-size: 14px;
    line-height: 1.55;
}

.site-chat-message > span {
    padding: 10px 12px;
    border-radius: 7px;
    box-shadow: 0 5px 18px rgba(11, 19, 43, .06);
    white-space: pre-line;
}

.site-chat-message.is-bot { align-self: flex-start; }
.site-chat-message.is-bot > span { border: 1px solid #e2e7ee; background: #fff; color: #273247; }
.site-chat-message.is-user { align-self: flex-end; }
.site-chat-message.is-user > span { background: #0b132b; color: #fff; }

.site-chat-whatsapp {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #177245;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-chat-whatsapp:hover { background: #0e5c36; color: #fff; }

.site-chat-typing > span { display: flex; align-items: center; gap: 4px; min-height: 38px; }
.site-chat-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8a94a6;
    animation: site-chat-dot 1s ease-in-out infinite;
}
.site-chat-typing i:nth-child(2) { animation-delay: .14s; }
.site-chat-typing i:nth-child(3) { animation-delay: .28s; }

.site-chat-quick {
    display: flex;
    overflow-x: auto;
    padding: 10px 12px;
    border-top: 1px solid #e3e8ef;
    background: #fff;
    gap: 7px;
    scrollbar-width: none;
}

.site-chat-quick::-webkit-scrollbar { display: none; }
.site-chat-quick button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(168, 116, 37, .34);
    border-radius: 5px;
    background: #fffaf1;
    color: #72501f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}
.site-chat-quick button:hover { border-color: #d4a24c; background: #f9edda; }

.site-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    padding: 11px 12px 6px;
    border-top: 1px solid #e3e8ef;
    background: #fff;
    gap: 8px;
}

.site-chat-form input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d7dde6;
    border-radius: 6px;
    outline: none;
    color: #171b25;
    font-size: 14px;
}

.site-chat-form input:focus { border-color: #a87425; box-shadow: 0 0 0 3px rgba(212, 162, 76, .15); }
.site-chat-form button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: #d4a24c;
    color: #0b132b;
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
}
.site-chat-form button:hover { background: #e1b45f; }

.site-chat-note {
    margin: 0;
    padding: 3px 12px 10px;
    background: #fff;
    color: #7a8493;
    font-size: 10px;
    text-align: center;
}

.site-chat-launcher {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    background: #0b132b;
    color: #fff;
    box-shadow: 0 14px 34px rgba(11, 19, 43, .24);
    cursor: pointer;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.site-chat-launcher:hover { background: #17213d; transform: translateY(-2px); }
.site-chat-launcher-icon {
    position: relative;
    width: 19px;
    height: 15px;
    border: 2px solid #d4a24c;
    border-radius: 5px;
}
.site-chat-launcher-icon::after {
    position: absolute;
    bottom: -5px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid #d4a24c;
    border-left: 2px solid #d4a24c;
    background: #0b132b;
    content: "";
    transform: skewY(-35deg);
}

.site-chat-launcher[aria-expanded="true"] .site-chat-launcher-icon::before {
    position: absolute;
    top: 5px;
    left: 3px;
    width: 9px;
    height: 2px;
    background: #d4a24c;
    content: "";
}

@keyframes site-chat-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes site-chat-dot {
    0%, 60%, 100% { opacity: .38; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 520px) {
    .site-chat { right: 14px; bottom: 14px; left: 14px; }
    .site-chat-panel { width: 100%; }
    .site-chat-launcher { align-self: flex-end; }
    .site-chat-messages { height: min(315px, 40vh); }
}

@media (prefers-reduced-motion: reduce) {
    .site-chat-panel,
    .site-chat-typing i { animation: none; }
}
