.chatbot {
    position: fixed;
    right: 25px;
    bottom: 95px;
    z-index: 80;
    font-family: Inter, Arial, sans-serif;
}
.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, #0a7a58, #103e35 72%);
    color: #fff;
    border: 2px solid #fff;
    padding: 13px 18px;
    font-weight: 800;
    box-shadow: 0 14px 36px rgba(4, 52, 41, 0.28);
    cursor: pointer;
}
.chatbot-toggle-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    fill: none;
    stroke: #008a6c;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(390px, calc(100vw - 30px));
    height: min(580px, calc(100vh - 160px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(12, 91, 71, 0.13);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(3, 43, 34, 0.28);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.97);
    transform-origin: bottom right;
    transition: 0.22s;
}
.chatbot.open .chatbot-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.chatbot-panel > header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 18px;
    background: linear-gradient(135deg, #103e35, #008a6c);
    color: #fff;
}
.chatbot-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #b7f34a;
    color: #103e35;
    font-weight: 900;
}
.chatbot-panel header b,
.chatbot-panel header small {
    display: block;
}
.chatbot-panel header small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.72);
}
.chatbot-panel header small span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b7f34a;
    margin-right: 4px;
}
.chatbot-close {
    margin-left: auto;
    border: 0;
    background: none;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}
.chatbot-messages {
    flex: 1;
    overflow: auto;
    padding: 18px;
    background: #f5faf8;
}
.chat-message {
    width: fit-content;
    max-width: 86%;
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 15px;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.5;
}
.chat-message.bot {
    background: #fff;
    color: #23483f;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(12, 75, 60, 0.07);
}
.chat-message.user {
    margin-left: auto;
    background: #00a884;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-message.typing {
    color: #69817b;
    font-style: italic;
}
.chatbot-suggestions {
    display: flex;
    gap: 6px;
    overflow: auto;
    padding: 8px 12px;
    background: #f5faf8;
}
.chatbot-suggestions button {
    white-space: nowrap;
    border: 1px solid #b8dfd4;
    background: #fff;
    color: #08785e;
    border-radius: 100px;
    padding: 7px 10px;
    font-size: 10px;
    cursor: pointer;
}
.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 13px;
    background: #fff;
    border-top: 1px solid #e5efec;
}
.chatbot-form input[name="message"] {
    min-width: 0;
    flex: 1;
    border: 1px solid #cde1db;
    border-radius: 12px;
    padding: 11px;
    font: 13px Inter;
    outline: none;
}
.chatbot-form input:focus {
    border-color: #00a884;
}
.chatbot-form button {
    width: 42px;
    border: 0;
    border-radius: 12px;
    background: #00a884;
    color: #fff;
    cursor: pointer;
}
.chatbot-form button:disabled {
    opacity: 0.5;
}
.chatbot-lead{padding:20px;display:grid;gap:12px;background:#f5faf8;flex:1}.chatbot-lead[hidden],.chatbot-conversation[hidden],.chatbot.lead-captured .chatbot-lead{display:none!important}.chatbot.lead-captured .chatbot-conversation{display:flex!important}.chatbot-lead p{margin:0;color:#23483f;line-height:1.45}.chatbot-lead label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#23483f}.chatbot-lead input{border:1px solid #cde1db;border-radius:10px;padding:11px;font:14px Inter}.chatbot-lead button{border:0;border-radius:10px;padding:12px;background:#00a884;color:#fff;font-weight:800;cursor:pointer}.chatbot-lead-error{padding:9px 10px!important;border-radius:9px;background:#fff0ef;color:#9d241b!important;font-size:12px;line-height:1.35!important}.chatbot-conversation{display:flex;flex-direction:column;flex:1;min-height:0}.whatsapp-direct{position:fixed;right:25px;bottom:25px;z-index:80;display:inline-flex;align-items:center;gap:8px;border:2px solid #25d366;border-radius:999px;padding:8px 14px 8px 8px;background:#fff;color:#087a43!important;font:800 13px Inter,Arial,sans-serif;box-shadow:0 10px 25px rgba(0,0,0,.2)}.whatsapp-icon{width:27px;height:27px;flex:0 0 auto;padding:3px;border-radius:50%;background:#25d366;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.update-video{position:relative;aspect-ratio:16/9;margin:1.5rem 0}.update-video iframe,.update-video video{width:100%;height:100%;border:0}@media(max-width:600px){.whatsapp-direct{right:14px;bottom:17px;width:54px;height:54px;justify-content:center;padding:0}.whatsapp-direct span{display:none}.whatsapp-icon{width:32px;height:32px}}
.chatbot.lead-captured .chatbot-lead { display:none !important; visibility:hidden; pointer-events:none; }
.chatbot.lead-captured .chatbot-conversation:not([hidden]) { display:flex !important; visibility:visible; opacity:1; min-height:0; }
@media (max-width: 600px) {
    .chatbot {
        right: 14px;
        bottom: 82px;
    }
    .chatbot-toggle span {
        display: none;
    }
    .chatbot-toggle {
        width: 52px;
        height: 52px;
        justify-content: center;
        padding: 0;
        font-size: 19px;
    }
    .chatbot-panel {
        position: fixed;
        inset: auto 10px 10px 10px;
        width: auto;
        height: min(620px, calc(100vh - 20px));
        border-radius: 20px;
    }
    .chatbot.open .chatbot-toggle {
        visibility: hidden;
    }
}

/* Floating contact actions: high-contrast white marks remain readable over every page image. */
.chatbot-toggle {
    border: 2px solid #fff;
    outline: 2px solid #0a5948;
    outline-offset: 2px;
}

.chatbot-toggle-icon {
    padding: 3px;
    background: transparent;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    border: 1.5px solid currentColor;
}

.whatsapp-direct {
    gap: 9px;
    padding: 9px 16px 9px 9px;
    background: linear-gradient(135deg, #128c7e, #075e54 72%);
    color: #fff !important;
    border: 2px solid #fff;
    outline: 2px solid #087a43;
    outline-offset: 2px;
    box-shadow: 0 14px 32px rgba(4, 52, 41, .28);
}

.whatsapp-icon,
.whatsapp-brand {
    width: 28px;
    height: 28px;
    padding: 3px;
    background: transparent;
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    border: 1.5px solid currentColor;
}

.whatsapp-brand {
    padding: 0;
    border: 0;
    fill: currentColor;
    stroke: none;
}

@media (max-width: 600px) {
    .chatbot {
        bottom: 91px;
    }

    .whatsapp-direct {
        width: 54px;
        height: 54px;
        bottom: 20px;
        padding: 0;
    }

    .whatsapp-icon,
    .whatsapp-brand {
        width: 32px;
        height: 32px;
    }
}

/* Final placement rules: two separate, compact actions with a deliberate gap. */
.chatbot {
    right: 24px;
    bottom: 97px;
}

.chatbot-toggle,
.whatsapp-direct {
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
}

.chatbot-toggle span,
.whatsapp-direct span {
    display: none;
}

.chatbot-toggle-icon {
    width: 29px;
    height: 29px;
}

.whatsapp-direct {
    right: 24px;
    bottom: 24px;
}

.whatsapp-brand {
    width: 30px;
    height: 30px;
}

@media (max-width: 600px) {
    .chatbot {
        right: 16px;
        bottom: 93px;
    }

    .whatsapp-direct {
        right: 16px;
        bottom: 18px;
    }
}
