.findhouse-support-chat-fab {
    position: fixed;
    right: 22px;
    bottom: 86px;
    z-index: 1050;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
    cursor: pointer;
}

.findhouse-support-chat-fab:hover {
    background: #047857;
    color: #fff;
}

.findhouse-support-chat-panel {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 1051;
    display: flex;
    width: min(360px, calc(100vw - 32px));
    max-height: min(70vh, 520px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe4e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
    font-family: inherit;
}

.findhouse-support-chat-panel[hidden] {
    display: none !important;
}

.findhouse-support-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #064e3b;
    color: #fff;
}

.findhouse-support-chat-header p {
    margin: 3px 0 0;
    color: #d1fae5;
    font-size: 12px;
}

.findhouse-support-chat-header button {
    border: 0;
    border-radius: 8px;
    padding: 1px 8px;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.findhouse-support-chat-header button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.findhouse-support-chat-messages {
    display: flex;
    min-height: 190px;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
}

.findhouse-support-chat-bubble {
    max-width: 88%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    border-radius: 16px;
    padding: 10px 13px;
    font-size: 14px;
    line-height: 1.45;
}

.findhouse-support-chat-bubble--agent {
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    border-top-left-radius: 4px;
    background: #fff;
    color: #1e293b;
}

.findhouse-support-chat-bubble--visitor {
    align-self: flex-end;
    border-top-right-radius: 4px;
    background: #059669;
    color: #fff;
}

.findhouse-support-chat-form {
    display: grid;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    padding: 12px;
}

.findhouse-support-chat-form input,
.findhouse-support-chat-form textarea {
    width: 100%;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 9px 11px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
}

.findhouse-support-chat-form textarea {
    min-height: 42px;
    max-height: 110px;
    flex: 1;
    resize: vertical;
}

.findhouse-support-chat-form input:focus,
.findhouse-support-chat-form textarea:focus {
    outline: 2px solid #a7f3d0;
    border-color: #059669;
}

.findhouse-support-chat-compose {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.findhouse-support-chat-compose button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 9px;
    padding: 10px 14px;
    background: #059669;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.findhouse-support-chat-compose button:hover {
    background: #047857;
}

.findhouse-support-chat-compose button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.findhouse-support-chat-status {
    min-height: 16px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.findhouse-support-chat-whatsapp {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.findhouse-support-chat-whatsapp a {
    color: #047857;
    font-weight: 700;
    text-decoration: underline;
}

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

@media (max-width: 576px) {
    .findhouse-support-chat-fab {
        right: 16px;
        bottom: 78px;
    }

    .findhouse-support-chat-panel {
        right: 12px;
        bottom: 12px;
        max-height: min(72vh, 520px);
    }
}
