/* ChWhatsAppButton Module Styles */

.chwhatsapp-button-container {
    display: inline-block;
    margin-left: 5px;
}

.chwhatsapp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.chwhatsapp-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chwhatsapp-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.chwhatsapp-close:hover,
.chwhatsapp-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.chwhatsapp-templates-list {
    margin-top: 20px;
}

.chwhatsapp-template-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.chwhatsapp-template-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chwhatsapp-template-item h4 {
    margin-top: 0;
    color: #333;
}

.chwhatsapp-template-item p {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.chwhatsapp-message-preview {
    background: #f5f5f5;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
    border-left: 3px solid #25D366;
}

/* WhatsApp brand color */
.butAction .fa-whatsapp {
    color: #25D366;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .chwhatsapp-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
