/* WhatsApp Widget Styles */
.wa-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wa-widget-container.wa-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wa-widget-container.wa-hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Floating Icon (Simple) */
.wa-floating-btn {
    width: 60px;
    height: 60px;
    background-color: #0a3d32;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.wa-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #c5a059;
}

.wa-floating-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Chat Popup Card (Home/Contact) */
.wa-chat-card {
    width: 90vw;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wa-card-header {
    background-color: #0a3d32;
    /* Brand Dark or similar */
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.wa-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #c5a059;
    border: 2px solid #0a3d32;
    border-radius: 50%;
}

.wa-header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.wa-header-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.wa-card-body {
    padding: 20px;
    background-color: #E5DDD5;
    /* WhatsApp BG color */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    /* Subtle pattern if possible, else solid */
    background-blend-mode: overlay;
}

.wa-message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
    position: relative;
    max-width: 85%;
}

.wa-message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid white;
    border-left: 8px solid transparent;
}

.wa-sender-name {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    display: block;
}

.wa-message-text {
    font-size: 14px;
    color: #111;
    line-height: 1.4;
}

.wa-message-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.wa-card-footer {
    padding: 12px;
    background: white;
}

.wa-start-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #0a3d32;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.wa-start-chat-btn:hover {
    background-color: #c5a059;
}

.wa-start-chat-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Close button for popup */
.wa-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    font-size: 24px;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, opacity 0.2s;
}

.wa-close-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}