.snd-wa-lead-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.snd-wa-lead-card[hidden] {
    display: none !important;
}

.snd-wa-lead-card {
    width: min(372px, calc(100vw - 32px));
    max-height: calc(100vh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(7, 94, 84, 0.2);
    border-radius: 18px;
    background: #e8ddd4;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    animation: sndWaLeadCardIn 0.24s ease both;
}

.snd-wa-lead-card.is-closing {
    animation: sndWaLeadCardOut 0.2s ease both;
}

.snd-wa-lead-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #075e54;
    color: #fff;
}

.snd-wa-lead-card__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.snd-wa-lead-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    flex: 0 0 auto;
}

.snd-wa-lead-card__avatar svg {
    width: 24px;
    height: 24px;
}

.snd-wa-lead-card__identity h2 {
    margin: 0;
    font: 700 15px/1.2 "DM Sans", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snd-wa-lead-card__identity p {
    margin: 3px 0 0;
    font: 500 12px/1 "DM Sans", sans-serif;
    color: rgba(255, 255, 255, 0.82);
}

.snd-wa-lead-card__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.snd-wa-lead-card__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.snd-wa-lead-form {
    padding: 12px;
    display: grid;
    gap: 12px;
    background-color: #efe7dd;
    background-image:
        linear-gradient(45deg, rgba(7, 94, 84, 0.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(7, 94, 84, 0.035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(7, 94, 84, 0.035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(7, 94, 84, 0.035) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.snd-wa-lead-form__message,
.snd-wa-lead-form__success {
    max-width: 88%;
    padding: 12px;
    border-radius: 12px 12px 12px 4px;
    background: #fff;
    color: #334155;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    font: 500 13px/1.55 "DM Sans", sans-serif;
}

.snd-wa-lead-form__message span,
.snd-wa-lead-form__success span {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.snd-wa-lead-form__reply {
    margin-left: auto;
    width: min(100%, 92%);
    padding: 12px;
    border-radius: 12px 12px 4px 12px;
    background: #dcf8c6;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 8px;
}

.snd-wa-lead-form__trap {
    display: none !important;
}

.snd-wa-lead-form__field {
    display: grid;
    gap: 4px;
    color: #075e54;
    font: 700 12px/1.25 "DM Sans", sans-serif;
}

.snd-wa-lead-form__field input {
    height: 40px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    padding: 0 12px;
    font: 500 14px/1 "DM Sans", sans-serif;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.snd-wa-lead-form__field input::placeholder {
    color: #94a3b8;
}

.snd-wa-lead-form__field input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.snd-wa-lead-form__field input.is-invalid {
    border-color: #ef4444 !important;
    background: #fff7f7;
}

.snd-wa-lead-form__error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: #dc2626;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    font: 700 12px/1.5 "DM Sans", sans-serif;
}

.snd-wa-lead-form__legal {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    color: #64748b;
    font: 500 11px/1.6 "DM Sans", sans-serif;
}

.snd-wa-lead-form__submit {
    height: 44px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #cbd5e1;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    font: 800 15px/1 "DM Sans", sans-serif;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.snd-wa-lead-form__submit.is-ready {
    background: #25d366;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.28);
    cursor: pointer;
}

.snd-wa-lead-form__submit.is-ready:hover {
    background: #1fb85a;
    transform: translateY(-1px);
}

.snd-wa-lead-widget__button {
    position: relative;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.36);
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.snd-wa-lead-widget__button:hover {
    transform: scale(1.05);
    background: #1fb85a;
}

.snd-wa-lead-widget__button svg {
    width: 36px;
    height: 36px;
}

.snd-wa-lead-widget__badge[hidden] {
    display: none !important;
}

.snd-wa-lead-widget__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 900 12px/1 "DM Sans", sans-serif;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.snd-wa-lead-widget__button.is-bouncing {
    animation: sndWaLeadButtonBounce 0.78s cubic-bezier(0.2, 0.75, 0.3, 1.25) both;
}

.snd-wa-lead-form .field-error {
    margin-top: 2px;
    color: #b91c1c;
    font: 800 11px/1.4 "DM Sans", sans-serif;
}

@keyframes sndWaLeadCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sndWaLeadCardOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

@keyframes sndWaLeadButtonBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    24% {
        transform: translateY(-16px) scale(1.05);
    }

    48% {
        transform: translateY(0) scale(0.98);
    }

    68% {
        transform: translateY(-8px) scale(1.03);
    }

    84% {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .snd-wa-lead-widget {
        right: 16px;
        bottom: 16px;
    }

    .snd-wa-lead-card {
        width: min(372px, calc(100vw - 24px));
        max-height: calc(100vh - 92px);
    }

    .snd-wa-lead-widget__button {
        width: 56px;
        height: 56px;
    }

    .snd-wa-lead-widget__button svg {
        width: 30px;
        height: 30px;
    }
}
