/* Lightweight, contextual WhatsApp support. */
.tbds-whatsapp-float,
.tbds-product-whatsapp,
.tbds-order-whatsapp a {
    --tbds-whatsapp: #25d366;
    font-family: var(--font-inter), Inter, Arial, sans-serif;
}

.tbds-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    width: 46px;
    height: 46px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit !important;
    filter: drop-shadow(0 5px 8px rgba(24, 22, 22, .22));
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tbds-whatsapp-float:hover,
.tbds-whatsapp-float:focus-visible {
    background: transparent;
    color: inherit !important;
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 7px 10px rgba(24, 22, 22, .28));
}

.tbds-whatsapp-float span { display: none; }

/* Product pages already have a contextual in-flow WhatsApp action. */
body.single-product .tbds-whatsapp-float { display: none; }

.tbds-whatsapp-icon {
    display: block;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
}

.tbds-whatsapp-float .tbds-whatsapp-icon {
    width: 46px;
    height: 46px;
}

body.single-product .tbds-product-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: -1px 0 1.1rem;
    padding: 13px 16px;
    border: 1px solid #d9d6d1;
    border-top: 3px solid #25d366;
    border-radius: 0 0 9px 9px;
    background: #fff;
    color: #181616;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}

body.single-product .tbds-product-whatsapp:hover,
body.single-product .tbds-product-whatsapp:focus-visible {
    border-color: #25d366;
    background: #f4fff8;
    color: #181616;
}

.tbds-product-whatsapp span { display: flex; flex-direction: column; gap: 2px; }
.tbds-product-whatsapp strong { font-size: 14px; line-height: 1.25; }
.tbds-product-whatsapp small { color: #6f6b67; font-size: 12px; line-height: 1.35; }
.tbds-order-whatsapp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid #ff9c0a;
    border-radius: 8px;
    background: #f7f6f3;
    color: #181616;
}

.tbds-order-whatsapp > div { display: grid; gap: 3px; }
.tbds-order-whatsapp > div span { color: #66615d; font-size: 14px; }
.tbds-order-whatsapp a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 6px;
    background: #25d366;
    color: #10251a;
    text-decoration: none;
    font-weight: 750;
}

@media (max-width: 782px) {
    .tbds-whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
        min-height: 0;
        padding: 0;
        justify-content: center;
    }
    .tbds-whatsapp-float .tbds-whatsapp-icon { width: 42px; height: 42px; }
    .tbds-order-whatsapp { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .tbds-whatsapp-float,
    .tbds-product-whatsapp { transition: none; }
}
