/* MT Contact & Tracking - Floating Buttons */

.mt-contact-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Button base */
.mt-contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.mt-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
    text-decoration: none;
}

.mt-contact-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Phone button */
.mt-btn-phone {
    background-color: #0066FF;
    margin-bottom: 5px;
}

.mt-btn-phone:hover {
    background-color: #0052cc;
}

/* WhatsApp button */
.mt-btn-whatsapp {
    background-color: #25D366;
}

.mt-btn-whatsapp:hover {
    background-color: #1fb855;
}

/* Icon */
.mt-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.mt-btn-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Tooltip */
.mt-btn-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.mt-btn-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #333;
}

.mt-contact-btn:hover .mt-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Pulse animation on WhatsApp button */
.mt-btn-whatsapp::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    z-index: -1;
    animation: mt-pulse 2s ease-out infinite;
}

@keyframes mt-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mt-contact-widget {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }

    .mt-contact-btn {
        width: 48px;
        height: 48px;
    }

    .mt-btn-icon svg {
        width: 22px;
        height: 22px;
    }

    .mt-btn-tooltip {
        display: none;
    }
}

/* Hide when printing */
@media print {
    .mt-contact-widget {
        display: none;
    }
}
