.ssm-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    font-family: "Manrope", sans-serif;
}

.ssm-chatbot__toggle {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a 0%, #172554 45%, #12a171 100%);
    color: #ffffff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ssm-chatbot__toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 56px rgba(18, 161, 113, 0.34);
}

.ssm-chatbot__pulse {
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(18, 161, 113, 0.22) 0%, rgba(18, 161, 113, 0) 72%);
    animation: ssmChatbotPulse 2.4s infinite ease-out;
}

.ssm-chatbot__toggle-core {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    position: relative;
    z-index: 1;
}

.ssm-chatbot__toggle-icon {
    font-size: 1.9rem;
    line-height: 1;
    font-variation-settings: "FILL" 1, "wght" 700, "opsz" 48;
    filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.22));
}

.ssm-chatbot__panel {
    position: absolute;
    right: 0;
    bottom: 80px;
    width: min(390px, calc(100vw - 32px));
    height: 580px;
    max-height: min(580px, calc(100vh - 120px));
    border-radius: 26px;
    overflow: hidden;
    background: #efeae2;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(12px);
}

.ssm-chatbot.is-open .ssm-chatbot__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ssm-chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #0b5c4b 0%, #0f766e 100%);
    color: #ffffff;
}

.ssm-chatbot__eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.ssm-chatbot__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.ssm-chatbot__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.ssm-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px 12px;
    background:
        linear-gradient(rgba(239, 234, 226, 0.9), rgba(239, 234, 226, 0.9)),
        radial-gradient(circle at top right, rgba(18, 161, 113, 0.06), transparent 26%),
        linear-gradient(180deg, #efeae2 0%, #ece5dd 100%);
}

.ssm-chatbot__message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.ssm-chatbot__message--user {
    align-items: flex-end;
}

.ssm-chatbot__message--bot {
    align-items: flex-start;
}

.ssm-chatbot__bubble {
    max-width: 83%;
    padding: 10px 12px 9px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    white-space: pre-line;
}

.ssm-chatbot__message--bot .ssm-chatbot__bubble {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-top-left-radius: 4px;
}

.ssm-chatbot__message--user .ssm-chatbot__bubble {
    background: #d9fdd3;
    color: #111827;
    border: 1px solid rgba(134, 239, 172, 0.55);
    border-top-right-radius: 4px;
}

.ssm-chatbot__time {
    margin-top: 3px;
    padding: 0 4px;
    font-size: 0.71rem;
    font-weight: 700;
    color: #64748b;
}

.ssm-chatbot__quick-replies {
    padding: 12px 12px 8px;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
    background: #f7f5f3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 130px;
    overflow-y: auto;
}

.ssm-chatbot__composer {
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(203, 213, 225, 0.65);
    background: #f0f2f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ssm-chatbot__input-shell {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(203, 213, 225, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ssm-chatbot__input-shell:focus-within {
    border-color: rgba(18, 161, 113, 0.75);
    box-shadow: 0 0 0 4px rgba(18, 161, 113, 0.1), 0 12px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.ssm-chatbot__input-icon {
    color: #64748b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ssm-chatbot__input {
    flex: 1;
    border: 0;
    background: transparent;
    min-height: 46px;
    padding: 0;
    font-size: 0.94rem;
    color: #0f172a;
    outline: none;
    transition: color 0.2s ease;
}

.ssm-chatbot__input::placeholder {
    color: #94a3b8;
}

.ssm-chatbot__send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e 0%, #12a171 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 161, 113, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.ssm-chatbot__send:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(18, 161, 113, 0.26);
}

.ssm-chatbot__reply {
    border: 1px solid rgba(18, 161, 113, 0.16);
    background: #ffffff;
    color: #0d5f45;
    border-radius: 18px;
    padding: 8px 12px;
    font-size: 0.81rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ssm-chatbot__reply:hover {
    transform: translateY(-1px);
    background: #ecfdf5;
    border-color: rgba(18, 161, 113, 0.34);
}

.ssm-chatbot__suggestion-title {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.ssm-chatbot__suggestion-subtitle {
    margin: 0 0 10px;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #64748b;
}

.ssm-chatbot__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ssm-chatbot__reply--loading,
.ssm-chatbot__reply:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ssm-chatbot__typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ssm-chatbot__typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #94a3b8;
    animation: ssmChatbotBlink 1.2s infinite ease-in-out;
}

.ssm-chatbot__typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.ssm-chatbot__typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ssmChatbotBlink {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ssmChatbotPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.16);
        opacity: 0;
    }
    100% {
        transform: scale(1.16);
        opacity: 0;
    }
}

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

    .ssm-chatbot__panel {
        width: min(360px, calc(100vw - 24px));
        bottom: 74px;
        height: min(560px, calc(100vh - 100px));
    }

    .ssm-chatbot__toggle {
        width: 58px;
        height: 58px;
    }
}

/* ── WhatsApp floating button ── */
.ssm-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 104px;
    z-index: 1100;
}

.ssm-whatsapp__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    text-decoration: none;
}

.ssm-whatsapp__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

.ssm-whatsapp__btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.ssm-whatsapp__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.55); opacity: 0;   }
    100% { transform: scale(1.55); opacity: 0;   }
}

@media (max-width: 640px) {
    .ssm-whatsapp {
        right: 16px;
        bottom: 90px;
    }

    .ssm-whatsapp__btn {
        width: 58px;
        height: 58px;
    }

    .ssm-whatsapp__btn svg {
        width: 28px;
        height: 28px;
    }
}



