.cpm-crm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpm-crm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cpm-crm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.cpm-crm-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

.cpm-crm-modal-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.cpm-crm-modal-content input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 6px;
    box-sizing: border-box;
}

.cpm-crm-error {
    color: #d9534f;
    font-size: 13px;
    margin: 0 0 10px;
}

/* Preview del mensaje que se enviará por WhatsApp: aparece debajo del
   input (y arriba del botón) solo cuando el nombre no está vacío.
   El nombre va en <strong> (negrita), igual que en el mensaje real,
   donde WhatsApp lo pinta en negrita con *asteriscos*. */
.cpm-crm-preview {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
    word-break: break-word;
}

.cpm-crm-preview strong {
    color: #0f172a;
}

.cpm-crm-btn {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.cpm-crm-btn:hover:not(:disabled) {
    filter: brightness(0.95);
}

.cpm-crm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
