﻿.whatsapp-float {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 60;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 8px 18px 8px 9px;
    border: 1px solid rgba(13, 45, 27, .14);
    border-radius: 999px;
    color: #0d2d1b;
    background: #25d366;
    box-shadow: 0 16px 40px rgba(13, 45, 27, .25);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

    .whatsapp-float:hover {
        color: #0d2d1b;
        background: #39df76;
        box-shadow: 0 20px 48px rgba(13, 45, 27, .32);
        transform: translateY(-3px);
    }

    .whatsapp-float:focus-visible,
    .whatsapp-button:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 3px;
        box-shadow: 0 0 0 6px #1b873f, 0 16px 40px rgba(13, 45, 27, .25);
    }

.whatsapp-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #128c4b;
}

    .whatsapp-icon svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.whatsapp-float-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .whatsapp-float-copy strong {
        font-size: 14px;
        font-weight: 900;
    }

    .whatsapp-float-copy small {
        margin-top: 4px;
        color: #155f32;
        font-size: 10px;
        font-weight: 800;
    }

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.whatsapp-button {
    color: #0d2d1b;
    background: #25d366;
    box-shadow: 0 12px 34px rgba(18, 140, 75, .24);
}

    .whatsapp-button:hover {
        color: #0d2d1b;
        background: #39df76;
        box-shadow: 0 16px 42px rgba(18, 140, 75, .34);
    }

    .whatsapp-button .whatsapp-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

        .whatsapp-button .whatsapp-icon svg {
            width: 20px;
            height: 20px;
        }

.whatsapp-note {
    max-width: 620px !important;
    margin-top: 17px;
    color: var(--slate) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

@media (max-width: 560px) {
    .whatsapp-float {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
        min-height: 58px;
        justify-content: center;
        padding: 8px;
    }

    .whatsapp-float-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .thank-you-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .thank-you-actions .button {
            width: 100%;
        }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-button {
        transition: none;
    }
}
