

/* WhatsApp Floating Button */
.wa-floating-btn {
    position: fixed;
    bottom: 12px;
    left: 10px;
    width: 54px;
    height: 54px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 31px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    animation: wa-pulse 2s infinite;
}

.wa-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* WhatsApp Popup Widget */
.wa-popup-wrapper {
    position: fixed;
    bottom: 76px;
    left: 18px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.5); /* Gold Border */
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Optional silk pattern background overlay */
.wa-popup-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(45deg, rgba(212,175,55,0.03) 0px, rgba(212,175,55,0.03) 2px, transparent 2px, transparent 4px);
    pointer-events: none;
    z-index: 0;
}

.wa-popup-wrapper.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.wa-header {
    background: var(--primary-color);
    padding: 20px 20px 15px 20px;
    color: white;
    position: relative;
    z-index: 1;
    border-radius: 25px 25px 0 0;
}

.wa-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wa-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.wa-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.wa-subtitle {
    font-size: 0.85rem;
    color: #ffd;
    opacity: 0.9;
}

.wa-online-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.wa-online-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    animation: wa-pulse 2s infinite;
}

.wa-body {
    padding: 20px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 50vh;
}

.wa-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-option-btn {
    background: white;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.wa-option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.wa-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
    border-radius: 0 0 25px 25px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
    .wa-floating-btn {
        bottom: 14px;
        left: 10px;
        width: 52px;
        height: 52px;
        font-size: 29px;
    }
    
    .wa-popup-wrapper {
        bottom: 85px;
        left: 15px;
        width: calc(100vw - 30px);
    }
    
    .wa-body {
        max-height: 45vh;
    }
    
    .wa-option-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
@media (max-width: 350px) {
    .wa-popup-wrapper {
        bottom: 80px;
        left: 10px;
        width: calc(100vw - 20px);
    }
    .wa-title {
        font-size: 1rem;
    }
}
