/* WhatsApp Widget Styles */
.wa-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 1.875rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-widget-chatbox {
    display: none;
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-quote);
    overflow: hidden;
    margin-bottom: 14px;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
}

.wa-widget-chatbox.wa-show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wa-chatbox-header {
    background: #075e54;
    color: #fff;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-chatbox-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-logo {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.wa-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.wa-header-text {
    display: flex;
    flex-direction: column;
}

.wa-header-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
}

.wa-header-text span {
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wa-header-text span::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #25d366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #25d366;
}

.wa-chatbox-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.wa-chatbox-body {
    background: #e5ddd5;
    background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
    background-repeat: repeat;
    padding: 14px;
    height: 120px;
    display: flex;
    flex-direction: column;
}

.wa-message {
    background: #ffffff;
    color: var(--blue-dark);
    padding: 10px 14px;
    border-radius: 4px 14px 14px 14px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-self: flex-start;
    max-width: 85%;
    font-weight: 500;
    line-height: 1.4;
}

.wa-chatbox-footer {
    padding: 14px;
    background: #fff;
    text-align: center;
}

.wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
}

.wa-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.4);
}

.wa-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wa-footer-text {
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}

.wa-floating-btn {
    width: 46px;
    height: 46px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(11, 31, 58, 0.12));
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}

.wa-floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-quote, 0 12px 28px rgba(11, 31, 58, 0.14));
}

.wa-floating-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Hide chatbox properly on small screens and adapt */
@media (max-width: 400px) {
    .wa-widget-chatbox {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .wa-widget-container {
        bottom: 0.8rem;
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .wa-widget-chatbox {
        width: calc(100vw - 40px);
        right: 0;
    }
}
