/* WhatsApp Contact Button Styles */

.wcb-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wcb-wrapper.wcb-bottom-right {
    bottom: 20px;
    right: 20px;
}

.wcb-wrapper.wcb-bottom-left {
    bottom: 20px;
    left: 20px;
}

.wcb-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: wcb-pulse 2s infinite;
}

.wcb-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes wcb-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

.wcb-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcb-icon svg {
    width: 100%;
    height: 100%;
}

.wcb-text {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

/* Popup Styles */
.wcb-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: wcb-slideUp 0.3s ease;
}

@keyframes wcb-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcb-wrapper.wcb-bottom-left .wcb-popup {
    left: 0;
    right: auto;
}

.wcb-popup-header {
    background-color: #25D366;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcb-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.wcb-popup-icon {
    width: 24px;
    height: 24px;
}

.wcb-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.wcb-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wcb-popup-body {
    padding: 20px;
}

.wcb-popup-body p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.wcb-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wcb-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.wcb-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wcb-action-button svg {
    flex-shrink: 0;
}

.wcb-message-button {
    background-color: #25D366;
}

.wcb-call-button {
    background-color: #34B7F1;
}

.wcb-message-box {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.wcb-message-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.wcb-message-input:focus {
    outline: none;
    border-color: #25D366;
}

.wcb-send-message {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #25D366;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wcb-send-message:hover {
    background-color: #1ebe59;
}

/* Inline Button Styles */
.wcb-inline-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #25D366;
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.wcb-inline-button:hover {
    background-color: #1ebe59;
    transform: scale(1.05);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .wcb-wrapper.wcb-hide-mobile {
        display: none;
    }
    
    .wcb-popup {
        width: 280px;
    }
    
    .wcb-text {
        display: none;
    }
    
    .wcb-button {
        padding: 14px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
    
    .wcb-wrapper.wcb-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .wcb-wrapper.wcb-bottom-left {
        bottom: 15px;
        left: 15px;
    }
}

@media (min-width: 769px) {
    .wcb-wrapper.wcb-hide-desktop {
        display: none;
    }
}

/* Animation for showing/hiding */
.wcb-popup.wcb-show {
    display: block !important;
}

.wcb-popup.wcb-hide {
    animation: wcb-slideDown 0.3s ease;
}

@keyframes wcb-slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
