/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   WHATSAPP FLOATING BUTTON + POPUP
   Shared across all pages
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Floating button â€“ circle with WhatsApp icon */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 82px;               /* 64px nav + 18px gap */
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #273469;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    z-index: 101;
    transition: transform 0.25s ease, box-shadow 0.25s ease, left 0.3s ease, top 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
}
.whatsapp-float.is-dragging {
    cursor: grabbing;
    transition: box-shadow 0.15s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    transform: scale(1.12);
}
.whatsapp-float.is-over-dismiss {
    transform: scale(0.7) !important;
    opacity: 0.5;
}
.whatsapp-float.is-dismissed {
    transform: scale(0) !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

/* Dismiss zone — appears at bottom center while dragging */
.wa-dismiss-zone {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) scale(0.6);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.25);
    border: 2px solid rgba(140, 140, 140, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.wa-dismiss-zone.is-visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.wa-dismiss-zone.is-hover {
    background: rgba(160, 160, 160, 0.3);
    border-color: rgba(130, 130, 130, 0.8);
    transform: translateX(-50%) scale(1.15);
}
.wa-dismiss-zone::after {
    content: '\00d7';
    font-size: 28px;
    color: rgba(140, 140, 140, 0.8);
    font-weight: 300;
}

/* Popup overlay */
.wa-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9999;
}
.wa-popup.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Popup card */
.wa-popup__card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transform: translateY(20px);
    transition: transform 0.25s ease;
    position: relative;
}
.wa-popup.is-active .wa-popup__card {
    transform: translateY(0);
}

/* Close button */
.wa-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.wa-popup__header {
    background: #273469;
    color: #fff;
    padding: 10px 18px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-popup__avatar {
    display: none;
}
/* Logo replaces title in header */
.wa-popup__info h3 {
    margin: 0 0 4px;
    font-size: 0;
    line-height: 0;
    display: block;
}
.wa-popup__info h3 img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    display: block;
}
.wa-popup__info span {
    font-size: 13px;
    opacity: 0.95;
}

/* Body (chat bubble) */
.wa-popup__body {
    padding: 18px;
    padding-bottom: 120px;
    background: #efeae2;
}
.wa-message {
    display: inline-block;
    max-width: 85%;
    background: #fff;
    color: #222;
    padding: 12px 14px;
    border-radius: 0 14px 14px 14px;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Footer / CTA */
.wa-popup__footer {
    padding: 16px 18px 18px;
    background: #fff;
}
.wa-popup__cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: #273469;
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.wa-popup__cta:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* â”€â”€â”€ Mobile (â‰¤ 640px) â”€â”€â”€ */
@media (max-width: 640px) {
    .wa-popup {
        padding: 14px;
    }
    .wa-popup__card {
        max-width: 100%;
        border-radius: 18px;
    }
}

/* â”€â”€â”€ Tablet (768px+) â”€â”€â”€ */
@media (min-width: 768px) {
    .whatsapp-float {
        right: 24px;
        bottom: 90px;
        width: 62px;
        height: 62px;
        font-size: 30px;
    }
}

/* â”€â”€â”€ Desktop (1024px+) â”€â”€â”€ */
@media (min-width: 1024px) {
    .whatsapp-float {
        bottom: 24px;        /* no bottom-nav on desktop */
    }
}
