/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: calc(var(--whatsapp-bottom-offset, 90px) + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-float--right {
    right: 20px;
}

.whatsapp-float--left {
    left: 20px;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
    color: #fff;
}

.whatsapp-float__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float--left .whatsapp-float__tooltip {
    right: auto;
    left: calc(100% + 10px);
}

.whatsapp-float:hover .whatsapp-float__tooltip,
.whatsapp-float:focus-visible .whatsapp-float__tooltip {
    opacity: 1;
}

@media (min-width: 1150px) {
    .whatsapp-float {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 767px) {
    .whatsapp-float--right {
        right: 16px;
    }
    .whatsapp-float--left {
        left: 16px;
    }
    .whatsapp-float__tooltip {
        display: none;
    }
}

/* Urun detay WhatsApp siparis butonu */
.whatsapp-order-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    border: 2px solid #25d366 !important;
    color: #128c7e !important;
    background: #fff !important;
}

.whatsapp-order-btn--above {
    margin-top: 0;
    margin-bottom: 12px;
}

.whatsapp-order-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.whatsapp-order-btn:hover {
    background: #25d366 !important;
    color: #fff !important;
    border-color: #25d366 !important;
}

.whatsapp-order-btn:hover svg {
    color: #fff;
}

.tf-product-info-buy-button .whatsapp-order-btn {
    width: 100%;
}
