.floating-call,
.floating-whatsapp {
    position: fixed;
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: auto;
    z-index: 9999;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    width: 170px;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    animation: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.floating-call {
    left: calc(50% - 180px);
    background: #ff7300;
    animation: floating-action-glow 3s ease-in-out infinite;
}

.floating-whatsapp {
    right: calc(50% - 180px);
    background: #25d366;
    animation: floating-action-glow 3s ease-in-out infinite 1.5s;
}

.floating-call:hover,
.floating-whatsapp:hover {
    color: #fff;
    filter: brightness(0.92);
    transform: translateY(-2px);
}

.call-icon,
.whatsapp-icon {
    font-size: 20px;
    line-height: 1;
}

@keyframes floating-action-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.38), 0 4px 14px rgba(0, 0, 0, 0.22);
    }
}

.call-text,
.whatsapp-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}

@media (max-width: 420px) {
    .floating-call,
    .floating-whatsapp {
        width: calc(50% - 18px);
        padding: 10px;
        font-size: 14px;
    }

    .floating-call {
        left: 12px;
    }

    .floating-whatsapp {
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-call,
    .floating-whatsapp {
        animation: none;
    }
}
